85 lines
2.2 KiB
Kotlin
85 lines
2.2 KiB
Kotlin
plugins {
|
|
`java-library`
|
|
`maven-publish`
|
|
id("io.izzel.taboolib") version "1.54"
|
|
id("org.jetbrains.kotlin.jvm") version "1.8.0"
|
|
}
|
|
|
|
taboolib {
|
|
description {
|
|
dependencies {
|
|
name("PlaceholderAPI").optional(true)
|
|
name("Vault").optional(true)
|
|
}
|
|
}
|
|
install("common")
|
|
install("common-5")
|
|
install("module-chat")
|
|
install("module-configuration")
|
|
install("module-database")
|
|
install("module-lang")
|
|
install("module-ui")
|
|
install("module-nms-util")
|
|
install("module-nms")
|
|
install("module-kether")
|
|
install("platform-bukkit")
|
|
install("expansion-command-helper")
|
|
classifier = null
|
|
version = "6.0.11-13"
|
|
options("skit-kotlin")
|
|
relocate("kotlin","libs.kotlin180")
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
maven("https://maven.xbaimiao.com/repository/maven-public/")
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("ink.ptms:nms-all:1.0.0")
|
|
compileOnly("public:papi:1.0.0")
|
|
compileOnly("public:vault:1.0.0")
|
|
compileOnly("public:points:1.0.0")
|
|
compileOnly("ink.ptms.core:v11902:11902-minimize:mapped")
|
|
compileOnly("ink.ptms.core:v11902:11902-minimize:universal")
|
|
compileOnly("public:Zaphkiel:1.0.0")
|
|
taboo(kotlin("stdlib"))
|
|
compileOnly(fileTree("libs"))
|
|
}
|
|
|
|
tasks.withType<JavaCompile> {
|
|
options.encoding = "UTF-8"
|
|
}
|
|
|
|
tasks.withType<org.jetbrains.kotlin.gradle.tasks.KotlinCompile> {
|
|
kotlinOptions {
|
|
jvmTarget = "1.8"
|
|
freeCompilerArgs = listOf("-Xjvm-default=all")
|
|
}
|
|
}
|
|
|
|
configure<JavaPluginConvention> {
|
|
sourceCompatibility = JavaVersion.VERSION_1_8
|
|
targetCompatibility = JavaVersion.VERSION_1_8
|
|
}
|
|
|
|
publishing {
|
|
repositories {
|
|
maven {
|
|
url = uri("https://repo.tabooproject.org/repository/releases")
|
|
credentials {
|
|
username = project.findProperty("taboolibUsername").toString()
|
|
password = project.findProperty("taboolibPassword").toString()
|
|
}
|
|
authentication {
|
|
create<BasicAuthentication>("basic")
|
|
}
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("library") {
|
|
from(components["java"])
|
|
groupId = project.group.toString()
|
|
}
|
|
}
|
|
} |