-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
99 lines (84 loc) · 2.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
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
plugins {
base
idea
id("com.github.johnrengelman.shadow")
id("maven-publish")
id("checkstyle")
id("java")
}
group = "com.github.r3back"
version = "3.8.0"
ext.set("mojangUnmappedVersions", setOf("1_21_R2", "1_21_R1", "v1_20_R4", "v1_20_R3","v1_20_R2", "v1_20_R1", "v1_19_R1", "v1_19_R2", "v1_18_R1", "v1_18_R2", "v1_17_R1"))
subprojects {
group = rootProject.group
version = rootProject.version
plugins.apply("java")
plugins.apply("checkstyle")
plugins.apply("maven-publish")
val regex = """v\d_[0-9]+_R\d""".toRegex()
if (regex.containsMatchIn(this.name)) {
plugins.apply("the-assistant-mapping")
}
repositories {
mavenCentral()
maven("https://repo.rosewooddev.io/repository/public/") {
name = "RosewoodDev"
}
maven("https://libraries.minecraft.net/") {
name = "Minecraft versions"
}
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/") {
name = "Spigot API"
}
maven("https://papermc.io/repo/repository/maven-public/") {
name = "Paper API"
}
maven("https://repo.papermc.io/repository/maven-public/") {
name = "papermc"
}
maven("https://storehouse.okaeri.eu/repository/maven-public/") {
name = "Okaeri"
}
maven("https://repo.codemc.org/repository/maven-public/") {
name = "CodeMC NBT API"
}
maven("https://jitpack.io") {
name = "Jitpack"
}
maven("https://repo.rapture.pw/repository/maven-snapshots/") {
name = "SlimeWorld"
}
maven("https://repo.rapture.pw/repository/maven-releases/") {
name = "Rapture"
}
maven("https://nexus.lucko.me/repository/all/") {
name = "Lucko"
}
maven("https://repo.papermc.io/repository/maven-public/") {
name = "PaperReleases"
}
}
dependencies {
implementation("org.jetbrains:annotations:22.0.0")
compileOnly("org.projectlombok:lombok:1.18.30")
// Enable lombok annotation processing
annotationProcessor("org.projectlombok:lombok:1.18.30")
}
val projectSourceSets = sourceSets
val checkStyleFile = "${rootProject.projectDir.absolutePath}/config/checkstyle/checkstyle.xml"
checkstyle {
toolVersion = "8.20"
configFile = file(checkStyleFile)
config = resources.text.fromFile(checkStyleFile)
isIgnoreFailures = false
isShowViolations = true
isShowViolations = true
maxWarnings = 0
sourceSets = mutableListOf(projectSourceSets.main.get())
}
tasks {
build {
dependsOn(checkstyleMain)
}
}
}