Add Java to README
This commit is contained in:
parent
8623f9558f
commit
2079fdf3f7
|
@ -57,7 +57,7 @@ jobs:
|
||||||
- name: Set up JDK
|
- name: Set up JDK
|
||||||
uses: actions/setup-java@v1
|
uses: actions/setup-java@v1
|
||||||
with:
|
with:
|
||||||
java-version: '1.8'
|
java-version: '1.7'
|
||||||
java-package: jdk
|
java-package: jdk
|
||||||
architecture: x64
|
architecture: x64
|
||||||
- name: Download Windows built library
|
- name: Download Windows built library
|
||||||
|
|
25
README.md
25
README.md
|
@ -92,6 +92,31 @@ const minified = hyperbuild.minify("<p> Hello, world! </p>");
|
||||||
|
|
||||||
</details>
|
</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
|
## Minification
|
||||||
|
|
||||||
### Whitespace
|
### Whitespace
|
||||||
|
|
|
@ -44,8 +44,8 @@
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-compiler-plugin</artifactId>
|
<artifactId>maven-compiler-plugin</artifactId>
|
||||||
<configuration>
|
<configuration>
|
||||||
<source>7</source>
|
<source>1.7</source>
|
||||||
<target>7</target>
|
<target>1.7</target>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
</plugins>
|
</plugins>
|
||||||
|
|
Loading…
Reference in New Issue