-
Notifications
You must be signed in to change notification settings - Fork 64
Build JWebAssembly
Volker Berlin edited this page Mar 9, 2021
·
1 revision
If you want contribute to JWebAssembly, analyse the functionality or want add additional debug code then you must build the JWebAssembly library locally.
- Clone or checkout the JWebAssmenbly project (https://github.com/i-net-software/JWebAssembly)
- Java 8 (or higher)
- Install Gradle https://gradle.org/install/
- Go into the JWebAssembly project root folder. (The folder with the file build.gradle)
Run the command line gradle clean jar
The library can be found in the folder ./build/libs/jwebassembly-compiler-*.jar
Run the command line gradle clean test
Run the command line gradle clean build
Run the command line gradle clean publishToMavenLocal
to compile to the local maven 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
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
}
repositories {
maven {
url uri('../repo') // change to the directory of your repository
}
... other repositories for other needed libraries of your project
}