-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
70 lines (58 loc) · 1.94 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
69
70
allprojects {
group = "com.thecrownstudios.box"
version = "0.1-SNAPSHOT"
description = "A library with many tools"
}
subprojects {
apply(plugin = "java")
apply(plugin = "maven-publish")
repositories {
mavenCentral()
maven {
name = "JitPack"
url = uri("https://jitpack.io")
}
}
configure<JavaPluginExtension> {
sourceCompatibility = JavaVersion.VERSION_21
targetCompatibility = JavaVersion.VERSION_21
tasks.withType<ProcessResources> {
filteringCharset = "UTF-8"
}
tasks.withType<JavaCompile> {
options.encoding = "UTF-8"
}
tasks.withType<Javadoc> {
options.encoding = "UTF-8"
}
}
configure<PublishingExtension> {
publications {
create<MavenPublication>("maven") {
groupId = project.group as String?
artifactId = project.name
version = project.version as String?
from(components["java"])
pom {
name.set(project.name)
description.set("A library with many tools")
url.set("https://github.com/The-Crown-Studios/Box")
licenses {
license {
name.set("GNU General Public License v3.0")
url.set("https://www.gnu.org/licenses/gpl-3.0.html")
}
}
developers {
developer {
id.set("The-Crown-Studios")
name.set("The Crown Studios")
email.set("business@thecrownstudios.it")
url.set("https://github.com/The-Crown-Studios")
}
}
}
}
}
}
}