-
Notifications
You must be signed in to change notification settings - Fork 79
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
91 lines (78 loc) · 2.49 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
91 lines (78 loc) · 2.49 KB
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
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
plugins {
`maven-publish`
signing
id("com.vanniktech.maven.publish") version "0.34.0"
}
repositories {
mavenCentral()
maven("https://libraries.minecraft.net/")
}
dependencies {
compileOnly("com.mojang:authlib:1.5.25")
compileOnly("org.spigotmc:spigot-api:1.20.2-R0.1-SNAPSHOT")
compileOnly("org.jetbrains:annotations:21.0.1")
val adventureVersion = "4.26.1"
api("net.kyori:adventure-api:$adventureVersion")
api("net.kyori:adventure-text-serializer-legacy:$adventureVersion")
api("net.kyori:adventure-text-serializer-gson:$adventureVersion")
api("net.kyori:adventure-platform-bukkit:4.4.1")
}
license {
header = rootProject.file("LICENSE")
encoding = "UTF-8"
mapping("java", "JAVADOC_STYLE")
include("**/*.java")
}
val javaComponent: SoftwareComponent = components["java"]
java {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
}
publishing {
repositories {
maven {
name = "triumph"
credentials {
username = providers.gradleProperty("triumph.repo.user").orNull
password = providers.gradleProperty("triumph.repo.token").orNull
}
url = uri("https://repo.triumphteam.dev/snapshots/")
}
// more repositories can go here
}
}
mavenPublishing {
// publishToMavenCentral()
// signAllPublications()
pom {
name.set("Triumph GUI")
description.set("Library for easy creation of GUIs for Bukkit plugins.")
url.set("https://github.com/TriumphTeam/triumph-gui")
licenses {
license {
name.set("MIT License")
url.set("http://www.opensource.org/licenses/mit-license.php")
}
}
developers {
developer {
id.set("matt")
name.set("Mateus Moreira")
organization.set("TriumphTeam")
organizationUrl.set("https://github.com/TriumphTeam")
}
}
scm {
connection.set("scm:git:git://github.com/TriumphTeam/triumph-gui.git")
developerConnection.set("scm:git:ssh://github.com:TriumphTeam/triumph-gui.git")
url.set("https://github.com/TriumphTeam/triumph-gui")
}
}
}
tasks {
withType<JavaCompile> {
sourceCompatibility = JavaVersion.VERSION_1_8.toString()
targetCompatibility = JavaVersion.VERSION_1_8.toString()
options.encoding = "UTF-8"
}
}