74 lines
1.6 KiB
Plaintext
74 lines
1.6 KiB
Plaintext
buildscript {
|
|
repositories {
|
|
mavenLocal()
|
|
}
|
|
|
|
dependencies {
|
|
classpath("io.izzel.taboolib:taboolib-gradle-plugin:1.41")
|
|
}
|
|
}
|
|
|
|
plugins {
|
|
`java-library`
|
|
`maven-publish`
|
|
id("io.izzel.taboolib") version "1.40"
|
|
id("org.jetbrains.kotlin.jvm") version "1.7.10"
|
|
}
|
|
|
|
taboolib {
|
|
install("common")
|
|
install("common-5")
|
|
install("module-chat")
|
|
install("module-configuration")
|
|
install("module-database")
|
|
install("module-lang")
|
|
install("module-ui")
|
|
install("module-nms")
|
|
install("module-nms-util")
|
|
install("platform-bukkit")
|
|
classifier = null
|
|
version = "6.0.9-31"
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
compileOnly("ink.ptms:nms-all:1.0.0")
|
|
implementation("ink.ptms.core:v11200:11200")
|
|
compileOnly(kotlin("stdlib"))
|
|
compileOnly(fileTree("libs"))
|
|
implementation("org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4")
|
|
}
|
|
|
|
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("https://repo.tabooproject.org/repository/releases") {
|
|
name = "taboolib"
|
|
credentials(PasswordCredentials::class.java)
|
|
}
|
|
}
|
|
publications {
|
|
create<MavenPublication>("library") {
|
|
from(components["java"])
|
|
groupId = project.group.toString()
|
|
}
|
|
}
|
|
} |