-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle.kts
74 lines (63 loc) · 2.37 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
@Suppress("PropertyName")
var VERSION = "3.6.1.9"
plugins { // needed for the allprojects section to work
id("java")
id("java-library")
id("maven-publish")
id("com.gradleup.shadow") version "8.3.5" apply false
}
ext {
// reduced is just a re-zipped version of the original, without some conflicting libraries
// gson, org.json, com.yaml.snakeyaml
set("lowestSpigotDep", "net.techcable.tacospigot:server:1.8.8-R0.2-REDUCED") // luxious nexus (public)
}
allprojects {
group = "com.kamikazejam.kamicommon"
version = VERSION
description = "KamikazeJAM's common library for Spigot and Standalone projects."
apply(plugin = "java")
apply(plugin = "java-library")
apply(plugin = "maven-publish")
// Provision Java 17 all projects (Java 21 required for spigot-utils and spigot-jar)
java {
toolchain.languageVersion.set(JavaLanguageVersion.of(17))
}
repositories {
mavenLocal()
mavenCentral()
// PaperMC & SpigotMC
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
// Luxious Nexus
maven("https://repo.luxiouslabs.net/repository/maven-public/")
// Spigot Plugin Repos
maven("https://repo.codemc.org/repository/maven-public/")
maven("https://maven.citizensnpcs.co/repo")
maven("https://mvn.lumine.io/repository/maven-public/") {
content {
includeGroup("io.lumine")
excludeGroup("org.jetbrains")
}
}
maven("https://repo.extendedclip.com/content/repositories/placeholderapi/")
// Misc repos
maven("https://jitpack.io")
gradlePluginPortal()
}
dependencies {
// Lombok
compileOnly("org.projectlombok:lombok:1.18.36")
annotationProcessor("org.projectlombok:lombok:1.18.36")
testImplementation("org.projectlombok:lombok:1.18.36")
testAnnotationProcessor("org.projectlombok:lombok:1.18.36")
// IntelliJ annotations
compileOnly("org.jetbrains:annotations:26.0.1")
testImplementation("org.jetbrains:annotations:26.0.1")
}
// We want UTF-8 for everything
tasks.withType<JavaCompile> {
options.encoding = Charsets.UTF_8.name()
}
}
// Disable root project build
tasks.jar.get().enabled = false