Skip to content

Commit 14fefa2

Browse files
committed
added sourceCompatibility and targetCompatibility to compile a Java 17 compatible plugin
1 parent 5865a2e commit 14fefa2

File tree

2 files changed

+7
-2
lines changed

2 files changed

+7
-2
lines changed

.github/workflows/deploy.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,7 @@ jobs:
1414
- name: Set up Java
1515
uses: actions/setup-java@v4
1616
with:
17-
java-version: '21'
17+
java-version: '17'
1818
distribution: 'corretto'
1919

2020
- name: Setup Gradle

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,7 +14,12 @@ gradlePlugin {
1414
}
1515

1616
group 'org.hyperskill'
17-
version '1.6'
17+
version '1.7'
18+
19+
java {
20+
sourceCompatibility = JavaVersion.VERSION_17
21+
targetCompatibility = JavaVersion.VERSION_17
22+
}
1823

1924
publishing {
2025
publications {

0 commit comments

Comments
 (0)