Skip to content

Commit ebd2113

Browse files
authored
SDKAJAVA-408: Update Gradle Resolver plugin to compile with Java 17 (#5)
SDKAJAVA-408: Update Gradle Resolver plugin to compile with Java 17 (#5) --------- Signed-off-by: Maksym Leshchyshyn <32952453+maxxless@users.noreply.github.com>
1 parent f7e86ca commit ebd2113

3 files changed

Lines changed: 9 additions & 9 deletions

File tree

.github/workflows/release.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ jobs:
1313
with:
1414
ref: master
1515
fetch-depth: 0
16-
- name: Set up JDK 8
16+
- name: Set up JDK 17
1717
uses: actions/setup-java@v2
1818
with:
19-
java-version: '8'
19+
java-version: '17'
2020
distribution: 'adopt'
2121
- name: Test
2222
run: ./gradlew test
@@ -29,4 +29,4 @@ jobs:
2929
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }}
3030
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }}
3131
GPG_PRIVATE_KEY: ${{ secrets.GPG_KEY }}
32-
run: .github/scripts/deploy.sh
32+
run: .github/scripts/deploy.sh

.github/workflows/test.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -16,12 +16,12 @@ jobs:
1616
with:
1717
ref: ${{ github.event.pull_request.head.sha }}
1818
fetch-depth: 0
19-
- name: Set up JDK 8
19+
- name: Set up JDK 17
2020
uses: actions/setup-java@v2
2121
with:
22-
java-version: '8'
22+
java-version: '17'
2323
distribution: 'adopt'
2424
- name: Validate
2525
run: ./gradlew spotlessCheck
2626
- name: Test
27-
run: ./gradlew test
27+
run: ./gradlew test

build.gradle

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -24,8 +24,8 @@ if (project.hasProperty('projVersion')) {
2424
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
2525

2626
java {
27-
sourceCompatibility = JavaVersion.VERSION_1_8
28-
targetCompatibility = JavaVersion.VERSION_1_8
27+
sourceCompatibility = JavaVersion.VERSION_17
28+
targetCompatibility = JavaVersion.VERSION_17
2929
withJavadocJar()
3030
withSourcesJar()
3131
}
@@ -115,4 +115,4 @@ nexusPublishing {
115115
password.set(project.properties["sonatypePassword"].toString())
116116
}
117117
}
118-
}
118+
}

0 commit comments

Comments
 (0)