AdyBubbles/build.gradle.kts
2024-11-08 18:38:44 +08:00

61 lines
1.4 KiB
Plaintext

import io.izzel.taboolib.gradle.*
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
java
id("io.izzel.taboolib") version "2.0.18"
id("org.jetbrains.kotlin.jvm") version "1.8.22"
}
taboolib {
env {
// 安装模块
install(Basic)
install(Bukkit)
install(BukkitUtil)
install(BukkitNMS)
install(BukkitNMSUtil)
}
description {
name("AdyBubbles")
desc("为Ady实体显示气泡")
contributors {
name("俗手")
}
dependencies {
name("Adyeshach")
}
load("POSTWORLD")
}
version { taboolib = "6.2.0-beta33" }
}
repositories {
mavenCentral()
maven { url = uri("https://repo.tabooproject.org/repository/releases/") }
}
dependencies {
compileOnly("ink.ptms.core:v12004:12004:mapped")
compileOnly("ink.ptms.core:v12004:12004:universal")
compileOnly(kotlin("stdlib"))
compileOnly(fileTree("libs"))
compileOnly("ink.ptms.adyeshach:all:2.0.0-snapshot-36")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
jvmTarget = "1.8"
freeCompilerArgs = listOf("-Xjvm-default=all")
}
}
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}