Skip to content

Commit

Permalink
build(gradle): Build with Java 21
Browse files Browse the repository at this point in the history
As fcfab20 decoupled the Java version to use for analysis of Gradle
projects from the Java version running ORT, finally update the Java
version from 11 / 17 to 21. See [1] for context.

[1]: #8249

Signed-off-by: Sebastian Schuberth <sebastian@doubleopen.org>
  • Loading branch information
sschuberth committed Sep 13, 2024
1 parent c725523 commit b66620f
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 3 deletions.
2 changes: 1 addition & 1 deletion docker/versions.dockerfile
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ ARG DART_VERSION=2.18.4
ARG DOTNET_VERSION=6.0
ARG GO_VERSION=1.23.0
ARG HASKELL_STACK_VERSION=2.13.1
ARG JAVA_VERSION=17
ARG JAVA_VERSION=21
ARG LICENSEE_VERSION=9.15.3
ARG NODEJS_VERSION=20.14.0
ARG NPM_VERSION=10.8.3
Expand Down
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,7 @@ org.gradle.parallel = true
kotlin.code.style = official

# The version of the JDK to use for building ORT.
javaLanguageVersion = 11
javaLanguageVersion = 21

# The version of the SPDX license list which is used to import license texts and generate SPDX enums. Must be a valid
# tag, see https://github.com/spdx/license-list-data/tags.
Expand Down
2 changes: 1 addition & 1 deletion plugins/scanners/scanoss/src/main/kotlin/ScanOss.kt
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ class ScanOss internal constructor(
val result = service.scan(
wfpString,
context.labels["scanOssContext"],
context.labels["scanOssId"]?.toIntOrNull() ?: Thread.currentThread().id.toInt()
context.labels["scanOssId"]?.toIntOrNull() ?: Thread.currentThread().threadId().toInt()
)

// Replace the anonymized UUIDs by their file paths.
Expand Down

0 comments on commit b66620f

Please sign in to comment.