-
-
Notifications
You must be signed in to change notification settings - Fork 3.3k
Expand file tree
/
Copy pathorg.jabref.gradle.feature.compile.gradle.kts
More file actions
32 lines (30 loc) · 1.49 KB
/
org.jabref.gradle.feature.compile.gradle.kts
File metadata and controls
32 lines (30 loc) · 1.49 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
plugins {
id("java")
}
java {
toolchain {
// If this is updated, also update
// - build.gradle -> jacoco -> toolVersion (because JaCoCo does not support newest JDK out of the box. Check versions at https://www.jacoco.org/jacoco/trunk/doc/changes.html)
// - jitpack.yml
// - .sdkmanrc
// - .devcontainer/devcontainer.json#L34 - there, also check if the gradleVersion matches the one of gradle/wrapper/gradle-wrapper.properties
// - .github/actions/setup-gradle/action.yml
// - .github/workflows/test-code.yml
// - .jbang/Jab*.java
// - .moderne/moderne.yml
// - build-support/src/main/java/*.java
// - docs/getting-into-the-code/guidelines-for-setting-up-a-local-workspace/intellij-12-build.md
// - jablib-examples/jbang/*.java
// - jablib-examples/maven3/*/pom.xml
languageVersion = JavaLanguageVersion.of(25)
// See https://docs.gradle.org/current/javadoc/org/gradle/jvm/toolchain/JvmVendorSpec.html for a full list
// Temurin does not ship jmods, thus we need to use another JDK -- see https://github.com/actions/setup-java/issues/804
// We also need a JDK without JavaFX, because we patch JavaFX due to modularity issues
vendor = JvmVendorSpec.AMAZON
}
}
tasks.withType<JavaCompile>().configureEach {
options.release = 25
// See https://docs.gradle.org/current/userguide/performance.html#a_run_the_compiler_as_a_separate_process
options.isFork = true
}