mirror of
https://github.com/devproje/px32-bot.git
synced 2025-03-21 20:19:52 +09:00
46 lines
909 B
Text
46 lines
909 B
Text
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
||
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
||
|
|
||
|
plugins {
|
||
|
id("com.gradleup.shadow") version "8.3.0"
|
||
|
}
|
||
|
|
||
|
group = "net.projecttl"
|
||
|
version = "0.1.0-SNAPSHOT"
|
||
|
|
||
|
repositories {
|
||
|
mavenCentral()
|
||
|
}
|
||
|
|
||
|
dependencies {
|
||
|
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 {
|
||
|
archiveBaseName.set(project.name)
|
||
|
archiveClassifier.set("")
|
||
|
archiveVersion.set("")
|
||
|
|
||
|
manifest {
|
||
|
attributes["Main-Class"] = "net.projecttl.p.x32.Px32Kt"
|
||
|
}
|
||
|
}
|
||
|
|
||
|
test {
|
||
|
useJUnitPlatform()
|
||
|
}
|
||
|
}
|