Skip to content

Build JWebAssembly

Volker Berlin edited this page Mar 9, 2021 · 1 revision

Build JWebAssembly

If you want contribute to JWebAssembly, analyse the functionality or want add additional debug code then you must build the JWebAssembly library locally.

Prerequiments

Create the library

Run the command line gradle clean jar The library can be found in the folder ./build/libs/jwebassembly-compiler-*.jar

Run only the tests of JWebAssembly

Run the command line gradle clean test

Create the library and run the test

Run the command line gradle clean build

Deploy to a local repository

Run the command line gradle clean publishToMavenLocal to compile to the local maven repository.

Deploy to a file repository

In the file build.gradle in the block publishing define the file location (folder) of the repository:

publishing {
    repositories {
        maven {
            url = '../repo' // change to the directory of your repository
        }
    }
    ...
}

Run the command line gradle clean publish

Use a compiled version of the compiler from the local maven repository

First deploy your modified JWebAssembly compiler to the local maven repository. Then add mavenLocal() as first repository to your gradle build script.

repositories {
    mavenLocal()
    ... other repositories for other needed libraries of your project
}

Use a compiled version of the compiler from a file repository

repositories {
    maven {
         url uri('../repo') // change to the directory of your repository
    }
    ... other repositories for other needed libraries of your project
}