i-net-software / i-net-software/JWebAssembly
Documentation on the Gradle Task is outdated/incomplete
- Dominant language
- Java
- Stars
- 1.1k
- Forks
- 61
- PR merge metrics
- No merged PRs in 30d
Description
Greetings.
Thank you for providing this project, I have an high interest in it.
Although I have had a hard time to even follow the most basic `Getting Started` instructions. The information seems to be outdated. Below is the Gradle 7.4 configuration, which seems to work:
```gradle
plugins {
id 'java'
// Web Assembly Compiler
id "de.inetsoftware.jwebassembly" version "0.4"
}
repositories {
mavenCentral()
maven { url = uri('https://jitpack.io') }
}
dependencies {
// Web Assembly Compiler
implementation 'com.github.i-net-software:JWebAssembly:v0.4'
implementation 'com.github.i-net-software:jwebassembly-api:master-SNAPSHOT'
}
```
Putting this into `build gradle` I have been able to import the `Export` annotation and to annotate my Java Method.
```java
import de.inetsoftware.jwebassembly.api.annotation.Export;
@Export
public static String format(String sqlStr, String... options) throws Exception {
...
}
```
Contributor guide
Assessment
This issue has not been assessed yet.