-
Notifications
You must be signed in to change notification settings - Fork 16
/
Copy pathbuild.gradle.kts
68 lines (56 loc) · 1.75 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
plugins {
java
`maven-publish`
id("io.github.goooler.shadow") version "8.1.8"
}
group = "com.iridium"
version = "2.0.8.8"
description = "IridiumCore"
allprojects {
apply(plugin = "java")
java.sourceCompatibility = JavaVersion.VERSION_1_8
repositories {
mavenCentral()
mavenLocal()
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://repo.rosewooddev.io/repository/public/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://nexus.iridiumdevelopment.net/repository/maven-releases/")
maven("https://libraries.minecraft.net")
}
dependencies {
// Dependencies that we want to shade in
implementation("com.github.cryptomorin:XSeries:13.0.0")
// Other dependencies that are not required or already available at runtime
compileOnly("org.jetbrains:annotations:26.0.2")
compileOnly("org.projectlombok:lombok:1.18.36")
// This is needed for XSkin, but isnt added to the XSeries jar, potentially a bug that will be fixed in a later release
compileOnly("com.mojang:authlib:1.5.25")
// Enable lombok annotation processing
annotationProcessor("org.projectlombok:lombok:1.18.36")
}
}
dependencies {
// Shade all the subprojects into the jar
subprojects.forEach { implementation(it) }
}
tasks {
jar {
dependsOn(shadowJar)
enabled = false
}
shadowJar {
archiveClassifier.set("")
}
compileJava {
options.encoding = "UTF-8"
}
}
publishing {
publications.create<MavenPublication>("maven") {
groupId = "com.iridium"
artifactId = "IridiumCore"
version = version
artifact(tasks["shadowJar"])
}
}