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-22 17:18:29 +00:00
|
|
|
implementation(project(":${rootProject.name}-module"))
|
2024-09-19 00:49:45 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
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()
|
|
|
|
}
|
|
|
|
}
|