Module-Shop/build.gradle.kts

72 lines
1.6 KiB
Plaintext
Raw Normal View History

2022-06-18 05:23:22 +00:00
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
2022-06-11 03:16:29 +00:00
plugins {
java
`maven-publish`
2023-03-08 19:39:34 +00:00
kotlin("jvm") version "1.8.20-RC"
2022-06-11 03:16:29 +00:00
}
repositories {
maven {
2023-03-08 19:39:34 +00:00
url = uri("https://repo.papermc.io/repository/maven-public/")
2022-06-11 03:16:29 +00:00
}
maven {
url = uri("https://nexus.telesphoreo.me/repository/plex/")
}
mavenCentral()
}
dependencies {
2023-07-23 04:09:36 +00:00
compileOnly("org.projectlombok:lombok:1.18.28")
annotationProcessor("org.projectlombok:lombok:1.18.28")
compileOnly("io.papermc.paper:paper-api:1.20.1-R0.1-SNAPSHOT")
compileOnly("dev.plex:server:1.3")
2022-06-18 05:23:22 +00:00
implementation(kotlin("stdlib-jdk8"))
2022-06-11 03:16:29 +00:00
}
group = "dev.plex"
2023-07-23 04:09:36 +00:00
version = "1.3"
description = "ShopModule"
2022-06-11 03:16:29 +00:00
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
}
}
}
tasks.getByName<Jar>("jar") {
archiveBaseName.set("Plex-Shop")
2022-06-11 03:16:29 +00:00
archiveVersion.set("")
duplicatesStrategy = org.gradle.api.file.DuplicatesStrategy.EXCLUDE
from({
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) }
})
2022-06-11 03:16:29 +00:00
}
tasks {
compileJava {
options.encoding = Charsets.UTF_8.name()
}
javadoc {
options.encoding = Charsets.UTF_8.name()
}
processResources {
filteringCharset = Charsets.UTF_8.name()
}
2022-06-18 05:23:22 +00:00
}
val compileKotlin: KotlinCompile by tasks
compileKotlin.kotlinOptions {
jvmTarget = "17"
}
val compileTestKotlin: KotlinCompile by tasks
compileTestKotlin.kotlinOptions {
jvmTarget = "17"
2022-06-11 03:16:29 +00:00
}