Add Java to README
This commit is contained in:
parent
8623f9558f
commit
2079fdf3f7
|
@ -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
|
||||
|
|
25
README.md
25
README.md
|
@ -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
|
||||
|
|
|
@ -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>
|
||||
|
|
Loading…
Reference in New Issue