Giter VIP home page Giter VIP logo

vavr-gwt's Introduction

Maven Central Build Status Gitter Chat

GWT support for Vavr

Using Vavr in GWT maven projects

  • Add the following maven dependency to your project:
<dependency>
    <groupId>io.vavr</groupId>
    <artifactId>vavr-gwt</artifactId>
    <version>{vavr-current-version}</version>
</dependency>
  • Inherit the Vavr module in your GWT module's descriptor file:
<module>
    <!-- ... -->
    <inherits name="Vavr"/>
    <!-- ... -->
</module>
  • Use the Vavr APIs in your code.

vavr-gwt's People

Contributors

danieldietrich avatar nfekete avatar ruslansennov avatar

Stargazers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

Watchers

 avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar  avatar

vavr-gwt's Issues

Add a pre-build step in order to mark certain core Vavr methods as @GwtIncompatible

Hi,

with modularization, I want to get rid of the @GwtIncompatible annotations of the core Vavr lib.

Goal/Acceptance Criteria:

Let the GWT compiler know which methods are not compatible without using the @GwtIncompatible annotation(s) within the core Vavr library. For example this could be achieved by adding a pre-build step to the vavr-gwt Maven build.

See this Twitter conversation about how to use ByteBuddy to solve this issue.

In detail, I would suggest to explode the dependencies of vavr-gwt into the file system in a pre-build step. Furthermore we are able to rewrite/enhance the classes of our dependencies by dynamically annotating the according methods with vavr-gwt's own @GwtIncompatible annotation. After that, the GWT compiler is expected to work as desired.

I will add the list of methods later here.

Finish project setup

  • Connect to Travis-CI
  • Create a more mature README.md with badges etc.
  • Javaslang core build: Trigger javaslang-gwt when core build succeeded
  • split javaslang-gwt and javaslang-gwt-example into two repos
  • travis: after_success: mvn clean deploy -DskipTests --settings .travis/maven-settings.xml

Note: Moved the last steps to #4

Last steps making javaslang-gwt deployable

Hi Ruslan,

could you please create a ticket at sonatype (same as for javaslang-jackson)? See OSSRH Guide.

Then the last todo is to add your credentials to our .travis.yml (see Travis Encryption Keys):

$ travis encrypt --org -r javaslang/javaslang 'SONATYPE_USER=<secret>' --add
$ travis encrypt --org -r javaslang/javaslang 'SONATYPE_PASS=<secret>' --add

Alright?

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    ๐Ÿ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. ๐Ÿ“Š๐Ÿ“ˆ๐ŸŽ‰

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google โค๏ธ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.