From 2079fdf3f79ddf4c8a1a2b05c5dcac9b70b15862 Mon Sep 17 00:00:00 2001 From: Wilson Lin Date: Sun, 19 Jan 2020 00:21:58 +1100 Subject: [PATCH] Add Java to README --- .github/workflows/java.yml | 2 +- README.md | 25 +++++++++++++++++++++++++ java/pom.xml | 4 ++-- 3 files changed, 28 insertions(+), 3 deletions(-) diff --git a/.github/workflows/java.yml b/.github/workflows/java.yml index 107971f..b6dcf24 100644 --- a/.github/workflows/java.yml +++ b/.github/workflows/java.yml @@ -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 diff --git a/README.md b/README.md index 70258c3..86dcaf1 100644 --- a/README.md +++ b/README.md @@ -92,6 +92,31 @@ const minified = hyperbuild.minify("

Hello, world!

"); +
+Java + +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("

Hello, world!

"); + } +} +``` + +
+ ## Minification ### Whitespace diff --git a/java/pom.xml b/java/pom.xml index 94232d6..321c9ea 100644 --- a/java/pom.xml +++ b/java/pom.xml @@ -44,8 +44,8 @@ org.apache.maven.plugins maven-compiler-plugin - 7 - 7 + 1.7 + 1.7