Skip to content

Commit

Permalink
Fix minimum runtime version for build tools (elastic#78998)
Browse files Browse the repository at this point in the history
Resolve version from minimumRuntimeVersion file
  • Loading branch information
breskeby authored Oct 12, 2021
1 parent 843fa42 commit 29a46b5
Showing 1 changed file with 1 addition and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
import java.io.File;
import java.io.IOException;
import java.util.Properties;
import java.util.function.Function;

abstract class VersionPropertiesBuildService implements BuildService<VersionPropertiesBuildService.Params>, AutoCloseable {

Expand All @@ -42,7 +41,7 @@ public VersionPropertiesBuildService(ProviderFactory providerFactory) {

private JavaVersion resolveMinimumJavaVersion(File infoPath) {
final JavaVersion minimumJavaVersion;
File minimumJavaInfoSource = new File(infoPath, "src/main/resources/minimumCompilerVersion");
File minimumJavaInfoSource = new File(infoPath, "src/main/resources/minimumRuntimeVersion");
try {
String versionString = FileUtils.readFileToString(minimumJavaInfoSource);
minimumJavaVersion = JavaVersion.toVersion(versionString);
Expand Down

0 comments on commit 29a46b5

Please sign in to comment.