2024-09-01 14:25:09 +00:00
|
|
|
import org.jetbrains.kotlin.gradle.dsl.JvmTarget
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
plugins {
|
|
|
|
id("java")
|
|
|
|
kotlin("jvm") version "2.0.20"
|
|
|
|
id("com.gradleup.shadow") version "8.3.0"
|
|
|
|
}
|
|
|
|
|
|
|
|
group = "net.wh64"
|
|
|
|
version = "1.0-SNAPSHOT"
|
|
|
|
|
|
|
|
val log4j_version: String by project
|
|
|
|
val exposed_version: String by project
|
|
|
|
|
|
|
|
java {
|
|
|
|
toolchain {
|
|
|
|
languageVersion.set(JavaLanguageVersion.of(21))
|
|
|
|
}
|
|
|
|
|
|
|
|
sourceCompatibility = JavaVersion.VERSION_21
|
|
|
|
targetCompatibility = JavaVersion.VERSION_21
|
|
|
|
}
|
|
|
|
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
}
|
|
|
|
|
|
|
|
dependencies {
|
|
|
|
implementation(kotlin("stdlib"))
|
|
|
|
implementation(kotlin("reflect"))
|
|
|
|
implementation("net.dv8tion:JDA:5.1.0")
|
|
|
|
implementation("org.apache.logging.log4j:log4j-api:$log4j_version")
|
|
|
|
implementation("org.apache.logging.log4j:log4j-core:$log4j_version")
|
|
|
|
implementation("org.apache.logging.log4j:log4j-slf4j2-impl:$log4j_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-core:$exposed_version")
|
|
|
|
implementation("org.jetbrains.exposed:exposed-jdbc:$exposed_version")
|
2024-09-02 08:50:54 +00:00
|
|
|
// testImplementation(platform("org.junit:junit-bom:5.10.0"))
|
|
|
|
// testImplementation("org.junit.jupiter:junit-jupiter")
|
2024-09-01 14:25:09 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks {
|
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
|
|
|
|
|
|
|
withType<JavaCompile> {
|
|
|
|
options.encoding = "UTF-8"
|
|
|
|
}
|
|
|
|
|
|
|
|
withType<KotlinCompile> {
|
|
|
|
compilerOptions {
|
|
|
|
jvmTarget.set(JvmTarget.JVM_21)
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
shadowJar {
|
|
|
|
archiveBaseName.set(project.name)
|
|
|
|
archiveClassifier.set("")
|
|
|
|
archiveVersion.set("")
|
|
|
|
|
|
|
|
manifest {
|
2024-09-01 15:13:58 +00:00
|
|
|
attributes["Main-Class"] = "net.projecttl.p.x32.Px32"
|
2024-09-01 14:25:09 +00:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|