Skip to content

Commit

Permalink
Merge branch 'release/1.1.0'
Browse files Browse the repository at this point in the history
  • Loading branch information
cbeach47 committed Mar 10, 2020
2 parents e563270 + 3cacc30 commit c46a0fc
Show file tree
Hide file tree
Showing 6 changed files with 15 additions and 15 deletions.
16 changes: 8 additions & 8 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,7 +19,7 @@ repositories {

dependencies {
implementation 'org.slf4j:slf4j-api:1.7.26'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.9.8'
implementation 'com.fasterxml.jackson.core:jackson-databind:2.10.2'
implementation 'org.jasypt:jasypt:1.9.2'
runtimeOnly 'org.slf4j:slf4j-simple:1.6.4'
testImplementation "junit:junit:$junitVersion"
Expand Down Expand Up @@ -59,20 +59,20 @@ final launcherScripts = [
class JreProperties {
String hash
String fileName
String getDownloadUrl() {"https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u212-b03/${fileName}"}
String getDownloadUrl() {"https://github.com/AdoptOpenJDK/openjdk8-binaries/releases/download/jdk8u242-b08/${fileName}"}
File getJre() {new File("build/jre-downloads/${fileName}")}
}

final jreProperties = [
windows: new JreProperties(
hash: 'c09bab89cd82483c371597c5c364094a145c1fbba43a1d3d7c3e350b89dedc89',
fileName: 'OpenJDK8U-jre_x64_windows_hotspot_8u212b03.zip'),
hash: 'b00c361e6ce022c6dc63b7c747cfdd9d28c17943e50bc1855adf36854ce46898',
fileName: 'OpenJDK8U-jre_x64_windows_hotspot_8u242b08.zip'),
linux: new JreProperties(
hash: '74daf0b77a7fd679cbb3a6228e0efa8c4a90b7664aa057f211e34bbfb38640fb',
fileName: 'OpenJDK8U-jre_x64_linux_hotspot_8u212b03.tar.gz'),
hash: '5edfaefdbb0469d8b24d61c8aef80c076611053b1738029c0232b9a632fe2708',
fileName: 'OpenJDK8U-jre_x64_linux_hotspot_8u242b08.tar.gz'),
mac: new JreProperties(
hash: '80855320c42a3b06617c6e466c64df67731542a805972185b075ca6cb1222c7f',
fileName: 'OpenJDK8U-jre_x64_mac_hotspot_8u212b03.tar.gz')
hash: 'fae3777e3441dc7384c339a9054aa7efc40cd2c501625a535c2d4648367ccca3',
fileName: 'OpenJDK8U-jre_x64_mac_hotspot_8u242b08.tar.gz')
]

task copyDependencies(type: Copy, description: 'Copy dependencies to /build/libs') {
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
junitVersion=4.12
artifactVersion=1.0.3
artifactVersion=1.1.0
4 changes: 2 additions & 2 deletions launcher-scripts/Linux-launcher.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/bash
OLD_JAVA_HOME=$JAVA_HOME
SCRIPT_DIRECTORY=`readlink -f "$(dirname "$0")"`
export JAVA_HOME=$SCRIPT_DIRECTORY/jdk8u212-b03-jre
export JAVA_HOME=$SCRIPT_DIRECTORY/jdk8u242-b08-jre
"$JAVA_HOME/bin/java" -DLAUNCHER_JAVA_PATH="$JAVA_HOME/bin/java" -jar "$SCRIPT_DIRECTORY/libs/admin.jar"
export JAVA_HOME=$OLD_JAVA_HOME
export JAVA_HOME=$OLD_JAVA_HOME
2 changes: 1 addition & 1 deletion launcher-scripts/Mac-launcher.sh
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
#!/bin/zsh
OLD_JAVA_HOME=$JAVA_HOME
SCRIPT_DIRECTORY=${0:A:h}
export JAVA_HOME=$SCRIPT_DIRECTORY/jdk8u212-b03-jre/Contents/Home
export JAVA_HOME=$SCRIPT_DIRECTORY/jdk8u242-b08-jre/Contents/Home
"$JAVA_HOME/bin/java" -DLAUNCHER_JAVA_PATH="$JAVA_HOME/bin/java" -jar "$SCRIPT_DIRECTORY/libs/admin.jar"
export JAVA_HOME=$OLD_JAVA_HOME
4 changes: 2 additions & 2 deletions launcher-scripts/Windows-launcher.bat
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
@echo off
set OLD_JAVA_HOME=%JAVA_HOME%
set BAT_DIRECTORY=%~dp0
set JAVA_HOME=%BAT_DIRECTORY%jdk8u212-b03-jre
set JAVA_HOME=%BAT_DIRECTORY%jdk8u242-b08-jre
start "Admin console launcher" /D "%BAT_DIRECTORY%\libs" "%JAVA_HOME%\bin\javaw" -DLAUNCHER_JAVA_PATH="%JAVA_HOME%\bin\java" -jar admin.jar
set JAVA_HOME=%OLD_JAVA_HOME%
set OLD_JAVA_HOME=
set OLD_JAVA_HOME=
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@
public class JsonService {

private static final ObjectMapper jsonMapper = new ObjectMapper();

public static <T> T readFile(File file, Class<T> type){
try (final InputStream fis = new FileInputStream(file)) {
final T obj = jsonMapper.readValue(fis, type);
Expand Down

0 comments on commit c46a0fc

Please sign in to comment.