-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
68 lines (57 loc) · 1.54 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
66
67
68
val javaVersion = 17
plugins {
kotlin("jvm") version "1.7.10"
`maven-publish`
id("org.jlleitschuh.gradle.ktlint") version "10.3.0"
}
group = "de.l4zs"
version = "0.0.1"
repositories {
mavenCentral()
maven("https://repo.papermc.io/repository/maven-public/")
}
dependencies {
compileOnly("io.papermc.paper", "paper-api", "1.19.1-R0.1-SNAPSHOT")
}
tasks {
compileKotlin {
kotlinOptions {
freeCompilerArgs = listOf(
"-Xjdk-release=$javaVersion",
)
jvmTarget = "$javaVersion"
}
}
compileJava {
options.encoding = "UTF-8"
options.release.set(javaVersion)
}
publishToMavenLocal {
}
}
publishing {
publications {
create<MavenPublication>("maven") {
from(components["java"])
groupId = project.group.toString()
artifactId = project.name.toLowerCase()
version = project.version.toString()
pom {
name.set(project.name)
description.set(project.description)
developers {
developer {
name.set("l4zs")
}
}
licenses {
license {
name.set("GNU General Public License, Version 3")
url.set("https://www.gnu.org/licenses/gpl-3.0.en.html")
}
}
url.set("https://github.com/l4zs/translations")
}
}
}
}