px32-bot/px32-bot-core/build.gradle.kts

48 lines
1,022 B
Text
Raw Normal View History

2024-09-19 00:49:45 +00:00
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
id("com.gradleup.shadow") version "8.3.0"
}
2024-09-19 07:27:42 +00:00
group = rootProject.group
version = rootProject.version
2024-09-19 00:49:45 +00:00
repositories {
mavenCentral()
}
dependencies {
2024-09-19 07:27:42 +00:00
implementation(project(":${rootProject.name}-api"))
2024-09-21 16:57:20 +00:00
implementation(project(":px32-bot-module"))
2024-09-19 00:49:45 +00:00
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks {
withType<KotlinCompile> {
compilerOptions {
jvmTarget.set(JvmTarget.JVM_21)
}
}
processResources {
filesMatching("*.properties") {
expand(project.properties)
}
}
shadowJar {
2024-09-21 14:13:23 +00:00
archiveBaseName.set(rootProject.name)
2024-09-19 00:49:45 +00:00
archiveClassifier.set("")
archiveVersion.set("")
manifest {
attributes["Main-Class"] = "net.projecttl.p.x32.Px32Kt"
}
}
test {
useJUnitPlatform()
}
}