HeliBoard/tools/make-emoji-keys/build.gradle
Deltadroid 3eba91e55c
Update targets to java 17 (#186)
The newly upgraded dependencies (gradle 8.3) now require java 17
and the java and jvm targets must both match or there will be a build
failure due to lint.
2023-10-15 16:33:51 +02:00

36 lines
810 B
Groovy

apply plugin: 'java'
apply plugin: 'kotlin'
version 'unspecified'
jar {
manifest {
attributes["Main-Class"] = 'com/majeur/inputmethod/tools/emoji/MakeEmojiKeys'
}
from {
configurations.runtimeClasspath.collect {
it.isDirectory() ? it : zipTree(it)
}
}
from("src/main/ressources")
}
task makeEmoji(type: JavaExec, dependsOn: ['jar']) {
main = '-jar'
args jar.archiveFile.get()
args '-res'
args project.rootProject.project('app').projectDir.path + File.separator + 'src' +
File.separator + 'main' + File.separator + 'res'
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
}
java {
sourceCompatibility = JavaVersion.VERSION_17
targetCompatibility = JavaVersion.VERSION_17
}