初始提交
This commit is contained in:
@@ -0,0 +1,80 @@
|
||||
plugins {
|
||||
`java-library`
|
||||
`maven-publish`
|
||||
id("io.izzel.taboolib") version "1.42"
|
||||
id("org.jetbrains.kotlin.jvm") version "1.5.10"
|
||||
}
|
||||
|
||||
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("platform-bukkit")
|
||||
install("expansion-command-helper")
|
||||
classifier = null
|
||||
version = "6.0.9-84"
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven("https://repo.xbaimiao.com/nexus/content/repositories/releases/")
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compileOnly("ink.ptms:nms-all:1.0.0")
|
||||
compileOnly("public:papi:1.0.0")
|
||||
compileOnly("public:vault:1.0.0")
|
||||
compileOnly("ink.ptms.core:v11902:11902-minimize:mapped")
|
||||
compileOnly("ink.ptms.core:v11902:11902-minimize:universal")
|
||||
compileOnly(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()
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user