Skip to content

Commit

Permalink
JDK17 support (#24)
Browse files Browse the repository at this point in the history
Co-authored-by: Anton K <[email protected]>
  • Loading branch information
AntonKtrue and Anton K authored Mar 11, 2022
1 parent 61d3e3a commit d86bd7d
Show file tree
Hide file tree
Showing 9 changed files with 11 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.1.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
Original file line number Diff line number Diff line change
Expand Up @@ -251,6 +251,7 @@ class DockerPlugin implements Plugin<Project> {
case 14:
case 15:
case 16:
case 17:
flags << "-XX:MaxRAMPercentage=70"
flags << "-XX:MinRAMPercentage=50"
flags << "-XX:InitialRAMPercentage=50"
Expand All @@ -269,6 +270,8 @@ class DockerPlugin implements Plugin<Project> {
return 'openjdk:12-jdk-oracle'
} else if (javaVersion == 13) {
return 'openjdk:13'
} else if (javaVersion == 17) {
return 'openjdk:17-jdk-slim'
} else {
// default fallback version
return 'openjdk:8-jre-alpine'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import spock.lang.TempDir
import java.nio.file.Path

class BaseIntegrationTest extends Specification {
private static final String defaultGradleVersion = '7.1.1'
private static final String defaultGradleVersion = '7.4'

@TempDir
Path testProjectDir
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,7 +12,7 @@ class GradleProjectExecutor {

Logger logger = LoggerFactory.getLogger(GradleProjectExecutor.class)

private static final String defaultGradleVersion = '7.1.1'
private static final String defaultGradleVersion = '7.4'

File projectDir
protected File buildFile
Expand Down

0 comments on commit d86bd7d

Please sign in to comment.