Skip to content

Commit

Permalink
revert compatibility changes
Browse files Browse the repository at this point in the history
  • Loading branch information
munishchouhan committed May 27, 2024
1 parent 99225fd commit 28c6278
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 3 deletions.
5 changes: 4 additions & 1 deletion .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ jobs:
strategy:
fail-fast: false
matrix:
java_version: [17]
java_version: [11, 17]

steps:
- name: Environment
Expand All @@ -44,6 +44,9 @@ jobs:
architecture: x64
cache: gradle

- name: Set JAVA_VERSION environment variable
run: echo "JAVA_VERSION=${{ matrix.java-version }}" >> $GITHUB_ENV

- name: Compile
run: |
./gradlew compileJava
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,13 @@ compileJava {
options.release.set(11)
}

// Read the javaVersion from environment variable or Gradle property
def javaVersion = System.getenv('JAVA_VERSION') ?: project.findProperty('javaVersion') ?: '17'

// Configure the Groovy compile tasks using the javaVersion
tasks.withType(GroovyCompile) {
sourceCompatibility = '17'
targetCompatibility = '17'
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
}

group = 'io.seqera'

0 comments on commit 28c6278

Please sign in to comment.