Add Java to README

This commit is contained in:
Wilson Lin 2020-01-19 00:21:58 +11:00
parent 8623f9558f
commit 2079fdf3f7
3 changed files with 28 additions and 3 deletions

View File

@ -57,7 +57,7 @@ jobs:
- name: Set up JDK
uses: actions/setup-java@v1
with:
java-version: '1.8'
java-version: '1.7'
java-package: jdk
architecture: x64
- name: Download Windows built library

View File

@ -92,6 +92,31 @@ const minified = hyperbuild.minify("<p> Hello, world! </p>");
</details>
<details>
<summary><strong>Java</strong></summary>
hyperbuild is available via JNI, and supports Java versions 7 and higher.
##### Get
Download the [JAR](https://wilsonl.in/hyperbuild/bin/0.0.18.jar) file.
##### Use
Make sure to add the JAR file to the class path.
```java
import in.wilsonl.hyperbuild.Hyperbuild;
class Main {
public static void main(String[] args) {
String minified = Hyperbuild.minify("<p> Hello, world! </p>");
}
}
```
</details>
## Minification
### Whitespace

View File

@ -44,8 +44,8 @@
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<configuration>
<source>7</source>
<target>7</target>
<source>1.7</source>
<target>1.7</target>
</configuration>
</plugin>
</plugins>