osfans / trime

同文安卓輸入法平臺3.x/Android-rime/Rime Input Method Engine for Android
http://osfans.github.io/trime/
GNU General Public License v3.0
3.09k stars 372 forks source link

F-Droid build failed #1006

Closed linsui closed 1 year ago

linsui commented 1 year ago

Describe the bug https://gitlab.com/linsui/fdroiddata/-/jobs/4226710791 I guess this is caused by https://github.com/osfans/trime/pull/971/commits/b34c40ab1534b0c4a106c2ae006cf585865a4347. Does this mean we need to have both jdk 8 and jdk 17 installed?

wxyzh commented 1 year ago

@linsui It will use JDK 8 to compile the codegen module. Can you please try to recompile using the following configuration? codegen/build.gradle.kts

plugins {
    id("java-library")
    kotlin("jvm")
}

java {
    sourceCompatibility = JavaVersion.VERSION_17
    targetCompatibility = JavaVersion.VERSION_17
}

kotlin {
    jvmToolchain(17)
}

dependencies {
    implementation("com.squareup:kotlinpoet-ksp:1.12.0")
    implementation("com.google.devtools.ksp:symbol-processing-api:1.8.0-1.0.8")
}
linsui commented 1 year ago

It works! https://gitlab.com/linsui/fdroiddata/-/jobs/4403428991