Skip to content

Commit

Permalink
Fixes for native image compilation
Browse files Browse the repository at this point in the history
  • Loading branch information
juanmuscaria committed Sep 3, 2021
1 parent 253a38f commit 665209f
Show file tree
Hide file tree
Showing 4 changed files with 5 additions and 4 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
plugins {
id("com.github.johnrengelman.shadow") version "7.0.0"
id("io.micronaut.application") version "1.5.4"
id("io.micronaut.application") version "2.0.3"
}

version = "0.1"
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
micronautVersion=2.5.12
micronautVersion=3.0.0
5 changes: 3 additions & 2 deletions src/main/java/com/juanmuscaria/api/jvm/JavaInstallation.java
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ public class JavaInstallation {

// Creates the probe to detect more information about the java installation
static {
InputStream probeClass = JavaInstallation.class.getResourceAsStream("/probe/JavaProbe.class");
InputStream probeClass = JavaInstallation.class.getResourceAsStream("/probe/JavaProbe.bin");
if (probeClass == null)
throw new IllegalStateException("Unable to extract java probe");

Expand All @@ -29,7 +29,8 @@ public class JavaInstallation {
probeClass.close();
out.close();
} catch (IOException e) {
throw new IllegalStateException("Unable to extract java probe", e);
e.printStackTrace();
throw new IllegalStateException("Unable to extract java probe");
}
probe = tmp;

Expand Down
File renamed without changes.

0 comments on commit 665209f

Please sign in to comment.