fix build

This commit is contained in:
Irmen de Jong 2024-11-29 01:01:59 +01:00
parent dcbb36a3bd
commit da03941582
3 changed files with 9 additions and 22 deletions

View File

@ -5,9 +5,17 @@ plugins {
kotlin("jvm")
}
java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}
kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}
val serverMainClassName = "prog8lsp.MainKt"
val applicationName = "prog8-beanshell"
val javaVersion: String by project
application {
mainClass.set(serverMainClassName)
@ -45,11 +53,6 @@ sourceSets.main {
resources.srcDir("resources")
}
sourceSets.test {
java.srcDir("src")
resources.srcDir("resources")
}
tasks.startScripts {
applicationName = "prog8-beanshell"
}
@ -62,13 +65,6 @@ tasks.register<Exec>("fixFilePermissions") {
commandLine("chmod", "+x", "${tasks.installDist.get().destinationDir}/bin/prog8-beanshell")
}
tasks.withType<Test>() {
testLogging {
events("failed")
exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
}
tasks.installDist {
finalizedBy("fixFilePermissions")
}
@ -76,12 +72,3 @@ tasks.installDist {
tasks.build {
finalizedBy("installDist")
}
java {
targetCompatibility = JavaVersion.VERSION_11
sourceCompatibility = JavaVersion.VERSION_11
}
kotlin {
compilerOptions.jvmTarget = JvmTarget.JVM_11
}

Binary file not shown.

Binary file not shown.