forked from TabooLib/zaphkiel
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
55 lines (51 loc) · 1.49 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
plugins {
id("org.gradle.java")
id("org.gradle.maven-publish")
id("org.jetbrains.kotlin.jvm") version "1.5.31" apply false
}
subprojects {
apply<JavaPlugin>()
apply(plugin = "org.jetbrains.kotlin.jvm")
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly("org.apache.commons:commons-lang3:3.12.0")
compileOnly("com.google.guava:guava:30.1.1-jre")
compileOnly("com.google.code.gson:gson:2.8.8")
compileOnly("ink.ptms.core:v11904:11904:mapped")
compileOnly("ink.ptms.core:v11200:11200")
compileOnly(kotlin("stdlib"))
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
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()
}
}
}
gradle.buildFinished {
buildDir.deleteRecursively()
}