Skip to content

Commit

Permalink
Fix version retrieval from quarkus-artifact.properties
Browse files Browse the repository at this point in the history
The parseable version is in `metadata.graalvm.version.full` not in
`metadata.graalvm.version.version`.
  • Loading branch information
zakkak committed Nov 14, 2023
1 parent 115059d commit ee6f566
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext con
Properties quarkusArtifactProperties = readQuarkusArtifactProperties(context);
try {
GraalVM.Version version = GraalVM.Version
.of(quarkusArtifactProperties.getProperty("metadata.graalvm.version.version").lines());
.of(quarkusArtifactProperties.getProperty("metadata.graalvm.version.full").lines());
int comparison = annotationValue.getVersion().compareTo(version);
if (comparison < 0) {
return ConditionEvaluationResult.disabled("Native binary was built with GraalVM{version=" + version.toString()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -36,7 +36,7 @@ public ConditionEvaluationResult evaluateExecutionCondition(ExtensionContext con
Properties quarkusArtifactProperties = readQuarkusArtifactProperties(context);
try {
GraalVM.Version version = GraalVM.Version
.of(quarkusArtifactProperties.getProperty("metadata.graalvm.version.version").lines());
.of(quarkusArtifactProperties.getProperty("metadata.graalvm.version.full").lines());
int comparison = annotationValue.getVersion().compareTo(version);
if (comparison > 0) {
return ConditionEvaluationResult.disabled("Native binary was built with GraalVM{version=" + version.toString()
Expand Down

0 comments on commit ee6f566

Please sign in to comment.