Skip to content

Commit

Permalink
Fix exception when trying to launch with Java 15
Browse files Browse the repository at this point in the history
  • Loading branch information
ChachyDev committed May 20, 2021
1 parent 2c72246 commit ed8c475
Show file tree
Hide file tree
Showing 3 changed files with 7 additions and 7 deletions.
6 changes: 3 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ buildscript {
}
dependencies {
classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
classpath 'com.github.jengelman.gradle.plugins:shadow:6.1.0'
}
}

Expand Down Expand Up @@ -43,8 +43,8 @@ ext.renamedPackageRoot = new File("build/renamed-packages/")
ext.doSignJar = project.hasProperty("keyStorePath")

// Minimum version of Java required
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
sourceCompatibility = "1.8"
targetCompatibility = "1.8"

// Project repositories
repositories {
Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-2.11-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.8.3-all.zip
Original file line number Diff line number Diff line change
Expand Up @@ -312,9 +312,9 @@ public byte[] getClassBytes(String name, String transformedName) throws IOExcept
if (classBytes != null) {
return classBytes;
}
URLClassLoader appClassLoader = (URLClassLoader)Launch.class.getClassLoader();

ClassLoader appClassLoader = Launch.class.getClassLoader();

InputStream classStream = null;
try {
final String resourcePath = transformedName.replace('.', '/').concat(".class");
Expand Down

0 comments on commit ed8c475

Please sign in to comment.