i-net-software / i-net-software/JWebAssembly

Documentation on the Gradle Task is outdated/incomplete

Open
#42 6 comments 0 reactions 0 assignees View on GitHub
bug
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

Open the contributing guide

Assessment

This issue has not been assessed yet.

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.