Skip to content

Commit

Permalink
ci: correct vendor
Browse files Browse the repository at this point in the history
  • Loading branch information
nmammeri committed Jul 3, 2024
1 parent 2a48b71 commit c77306f
Showing 1 changed file with 12 additions and 4 deletions.
16 changes: 12 additions & 4 deletions extract-core/tika-native/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -46,21 +46,29 @@ dependencies {
implementation "org.apache.tika:tika-parser-webarchive-module:$tikaVersion"
}

// We use java BellSoft 22 build because it supports awt on macos.
def graalVmVersion = "22"
def graalVmVendor = if (OperatingSystem.current().isMacOsX) {
"BellSoft"
} else {
//"Oracle Corporation"
"GraalVM Community"
}

graalvmNative {
// This enables using separate GraalVM version thant the one used by gradle
// However, this will only work properly if you only have only GraalVM JDKs installed on the machine.
// Gradle will not be able to reliably detect GraalVM JDKs, nor detect GraalVM distributions from different vendors.
toolchainDetection = false
toolchainDetection = true

// Set to false to disable to run the tests in native mode.
testSupport = true

binaries {
main {
// We use java BellSoft 22 build because it supports awt on mac.
javaLauncher = javaToolchains.launcherFor {
languageVersion = JavaLanguageVersion.of(22)
vendor = JvmVendorSpec.matching("BellSoft")
languageVersion = JavaLanguageVersion.of(graalVmVersion)
vendor = JvmVendorSpec.matching(graalVmVendor)
}

imageName = 'libtika_native'
Expand Down

0 comments on commit c77306f

Please sign in to comment.