Skip to content

Commit

Permalink
gradle maintenance
Browse files Browse the repository at this point in the history
  • Loading branch information
andiwg committed Mar 20, 2024
1 parent 30ff9a7 commit 6a7cac9
Show file tree
Hide file tree
Showing 4 changed files with 14 additions and 9 deletions.
4 changes: 2 additions & 2 deletions .github/workflows/codecov.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
java-version: 8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Code coverage
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/codeql.yml
Original file line number Diff line number Diff line change
Expand Up @@ -13,11 +13,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
java-version: 8
- name: Initialize CodeQL
uses: github/codeql-action/init@v2
with:
Expand Down
4 changes: 2 additions & 2 deletions .github/workflows/gradle-build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -11,11 +11,11 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
distribution: temurin
java-version: 17
java-version: 8
- name: Grant execute permission for gradlew
run: chmod +x gradlew
- name: Gradle build
Expand Down
11 changes: 8 additions & 3 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -13,10 +13,15 @@ allprojects {
group = 'io.github.elki-project'
version = '0.8.1-SNAPSHOT'

tasks.withType(JavaCompile) {
options.release = 17
}
java.sourceCompatibility = 1.8
java.targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
// compatiblity with gradle 9+
// not compatile with java 8
// tasks.withType(JavaCompile) {
// options.release = 17
// options.encoding = 'UTF-8'
// }

ext.vendor = "ELKI Development Team"
ext.url = "https://elki-project.github.io/"
Expand Down

0 comments on commit 6a7cac9

Please sign in to comment.