38 lines
846 B
Plaintext
38 lines
846 B
Plaintext
plugins {
|
|
id("java-library")
|
|
id("java")
|
|
|
|
}
|
|
|
|
val java_version: String by project
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion.set(JavaLanguageVersion.of(java_version))
|
|
}
|
|
}
|
|
sourceSets {
|
|
main {
|
|
java { srcDirs("src") }
|
|
resources { srcDirs("resources",rootProject.rootDir.resolve("dist")) }
|
|
}
|
|
}
|
|
repositories {
|
|
maven {
|
|
name = "mingliqiye repository"
|
|
url = uri("https://gitee.com/minglipro/maven-repository-raw/raw/master")
|
|
}
|
|
}
|
|
dependencies {
|
|
implementation("io.javalin:javalin:6.7.0")
|
|
implementation("com.fasterxml.jackson.core:jackson-databind:2.19.1")
|
|
implementation("com.fasterxml.jackson.dataformat:jackson-dataformat-yaml:2.19.1")
|
|
implementation("com.mingliqiye:string-utils:1.0.4")
|
|
|
|
compileOnlyApi("org.slf4j:slf4j-api:2.0.7")
|
|
}
|
|
|
|
tasks.jar {
|
|
enabled = true
|
|
}
|