mirror of
https://github.com/Helium314/HeliBoard.git
synced 2025-04-23 15:49:09 +00:00
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.
22 lines
545 B
Groovy
22 lines
545 B
Groovy
apply plugin: 'java'
|
|
|
|
version 'unspecified'
|
|
|
|
jar {
|
|
manifest {
|
|
attributes["Main-Class"] = 'com.android.inputmethod.keyboard.tools.MakeKeyboardText'
|
|
}
|
|
}
|
|
|
|
task makeText(type: JavaExec, dependsOn: ['jar']) {
|
|
main = '-jar'
|
|
args jar.archiveFile.get()
|
|
args '-java'
|
|
args project.rootProject.project('app').projectDir.path + File.separator + 'src' +
|
|
File.separator + 'main' + File.separator + 'java'
|
|
}
|
|
|
|
java {
|
|
sourceCompatibility = JavaVersion.VERSION_17
|
|
targetCompatibility = JavaVersion.VERSION_17
|
|
}
|