-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
98 lines (81 loc) · 2.58 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
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
plugins {
id("java-library")
id("maven-publish")
}
tasks.jar {
enabled = false
}
subprojects {
apply(plugin = "java-library")
apply(plugin = "maven-publish")
group = "org.allaymc.allay"
java {
toolchain {
languageVersion = JavaLanguageVersion.of(21)
}
}
repositories {
mavenCentral()
maven("https://repo.opencollab.dev/maven-releases/")
maven("https://repo.opencollab.dev/maven-snapshots/")
maven("https://storehouse.okaeri.eu/repository/maven-public/")
maven("https://www.jitpack.io/")
}
dependencies {
compileOnly(rootProject.libs.lombok)
annotationProcessor(rootProject.libs.lombok)
testCompileOnly(rootProject.libs.lombok)
testAnnotationProcessor(rootProject.libs.lombok)
}
publishing {
repositories {
// Jitpack requires us to publish artifacts to local maven repo
mavenLocal()
}
java {
withSourcesJar()
}
publications {
create<MavenPublication>("maven") {
from(components["java"])
groupId = project.group.toString()
artifactId = project.name
version = project.version.toString()
pom {
inceptionYear.set("2023")
packaging = "jar"
url.set("https://github.com/AllayMC/Allay")
scm {
connection.set("scm:git:git://github.com/AllayMC/Allay.git")
developerConnection.set("scm:git:ssh://github.com/AllayMC/Allay.git")
url.set("https://github.com/AllayMC/Allay")
}
licenses {
license {
name.set("LGPL 3.0")
url.set("https://www.gnu.org/licenses/lgpl-3.0.en.html")
}
}
developers {
developer {
name.set("AllayMC Team")
organization.set("AllayMC")
organizationUrl.set("https://github.com/AllayMC")
}
}
}
}
}
}
tasks {
withType<JavaCompile> {
options.encoding = "UTF-8"
configureEach {
options.isFork = true
}
}
withType<Copy> {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
}
}