-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
65 lines (58 loc) · 2 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
`java-library`
`maven-publish`
kotlin("jvm") version "1.5.31"
}
repositories {
mavenCentral()
maven("https://repo.tabooproject.org/repository/releases")
}
val taboolibVersion: String by project
dependencies {
compileOnly("ink.ptms:nms-all:1.0.0")
compileOnly("ink.ptms.core:v11200:11200")
compileOnly("ink.ptms.core:v11701:11701-minimize:mapped")
compileOnly(kotlin("stdlib"))
compileOnly(fileTree("libs"))
implementation("io.izzel.taboolib:common:${taboolibVersion}")
implementation("io.izzel.taboolib:common-5:${taboolibVersion}")
implementation("io.izzel.taboolib:module-kether:${taboolibVersion}")
implementation("io.izzel.taboolib:module-configuration:${taboolibVersion}")
implementation("io.izzel.taboolib:module-database:${taboolibVersion}")
implementation("io.izzel.taboolib:module-ui:${taboolibVersion}")
implementation("io.izzel.taboolib:module-chat:${taboolibVersion}")
implementation("io.izzel.taboolib:module-lang:${taboolibVersion}")
implementation("io.izzel.taboolib:platform-bukkit:${taboolibVersion}")
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<KotlinCompile> {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xjvm-default=all",
// "-opt-in=kotlin.RequiresOptIn",
// "-Xuse-experimental=kotlin.contracts.ExperimentalContracts"
)
}
}
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"])
}
}
}