-
Notifications
You must be signed in to change notification settings - Fork 6
Expand file tree
/
Copy pathbuild.gradle
More file actions
122 lines (111 loc) · 4.55 KB
/
build.gradle
File metadata and controls
122 lines (111 loc) · 4.55 KB
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
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
plugins {
id 'java-library'
id 'com.github.johnrengelman.shadow' version '7.1.2'
id 'org.cadixdev.licenser' version '0.6.1'
id 'eclipse'
id 'idea'
id 'maven-publish'
}
def projectGroup = 'com.clubobsidian'
def projectVersion = '6.3.0'
allprojects {
group projectGroup
version projectVersion
ext {
junitVersion = '5.9.1'
cloudVersion = '2.0.0-rc.2'
wrappyVersion = "3.0.1"
langVersion = "3.12.0"
guiceVersion = "5.1.0"
}
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'org.cadixdev.licenser'
apply plugin: 'maven-publish'
java {
toolchain {
languageVersion = JavaLanguageVersion.of(11)
}
withJavadocJar()
withSourcesJar()
}
javadoc {
if(JavaVersion.current().isJava9Compatible()) {
options.addBooleanOption('html5', true)
}
}
publishing {
publications {
mavenJava(MavenPublication) {
groupId projectGroup
artifactId project.name
version projectVersion
artifact jar
artifact javadocJar
artifact sourcesJar
}
}
}
license {
header = project.rootProject.file('HEADER.txt')
include '**/*.java'
}
test {
useJUnitPlatform()
}
shadowJar {
archiveClassifier.set('')
/*minimize() {
exclude(project(":core"))
}*/
relocate 'org.spongepowered.configurate', 'com.clubobsidian.dynamicgui.shaded.configurate'
relocate 'com.google.common', 'com.clubobsidian.dynamicgui.shaded.guava'
relocate 'com.google.gson', 'com.clubobsidian.dynamicgui.shaded.gson'
relocate 'org.yaml.snakeyaml', 'com.clubobsidian.dynamicgui.shaded.snakeyaml'
relocate 'com.clubobsidian.trident', 'com.clubobsidian.dynamicgui.shaded.trident'
relocate 'com.clubobsidian.wrappy', 'com.clubobsidian.dynamicgui.shaded.wrappy'
relocate 'net.kyori', 'com.clubobsidian.dynamicgui.shaded.kyori'
relocate 'com.clubobsidian.fuzzutil', 'com.clubobsidian.dynamicgui.shaded.fuzzutil'
relocate 'io.leangen', 'com.clubobsidian.dynamicgui.shaded.leangen'
relocate 'org.codehaus.mojo', 'com.clubobsidian.dynamicgui.shaded.mojo'
relocate 'org.checkerframework.framework', 'com.clubobsidian.dynamicgui.shaded.checkerframework.framework'
relocate 'org.checkerframework.common', 'com.clubobsidian.dynamicgui.shaded.checkerframework.common'
relocate 'org.checkerframework.checker', 'com.clubobsidian.dynamicgui.shaded.checkerframework.checker'
relocate 'org.checkerframework.dataflow', 'com.clubobsidian.dynamicgui.shaded.checkerframework.dataflow'
relocate 'org.apache.commons', 'com.clubobsidian.dynamicgui.shaded.apachecommons'
relocate 'org.aopalliance.intercept', 'com.clubobsidian.dynamicgui.shaded.aopalliance.intercept'
relocate 'org.aopalliance.aop', 'com.clubobsidian.dynamicgui.shaded.aopalliance.aop'
relocate 'javax.inject', 'com.clubobsidian.dynamicgui.shaded.javax.inject'
relocate 'com.ezylang.evalex', 'com.clubobsidian.dynamicgui.shaded.evalex'
relocate 'com.typesafe.config', 'com.clubobsidian.dynamicgui.shaded.typesafeconfig'
relocate 'com.google.j2objc', 'com.clubobsidian.dynamicgui.shaded.j2objc'
relocate 'com.google.inject', 'com.clubobsidian.dynamicgui.shaded.guice'
relocate 'javax.annotation', 'com.clubobsidian.dynamicgui.shaded.javaxannotation'
relocate 'com.google.errorprone', 'com.clubobsidian.dynamicgui.shaded.errorprone'
relocate 'com.fasterxml.jackson', 'com.clubobsidian.dynamicgui.shaded.jackson'
relocate 'com.github.benmanes.caffeine', 'com.clubobsidian.dynamicgui.shaded.caffeine'
relocate 'org.incendo.cloud', 'com.clubobsidian.dynamicgui.shaded.cloud'
relocate 'com.google.thirdparty', 'com.clubobsidian.dynamicgui.shaded.google.thirdparty'
relocate 'io.github.classgraph', 'com.clubobsidian.dynamicgui.shaded.classgraph'
relocate 'nonapi.io.github.classgraph', 'com.clubobsidian.dynamicgui.shaded.nonapi.io.github.classgraph'
relocate 'javassist', 'com.clubobsidian.dynamicgui.shaded.javassist'
}
repositories {
maven { url = "https://hub.spigotmc.org/nexus/content/repositories/snapshots" }
maven { url = "https://oss.sonatype.org/content/repositories/snapshots" }
mavenCentral()
maven { url = "https://jitpack.io" }
}
dependencies {
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation 'org.mockito:mockito-core:4.8.0'
compileOnly("org.incendo:cloud-core:$cloudVersion")
testRuntimeOnly("org.incendo:cloud-core:$cloudVersion")
compileOnly("org.jetbrains:annotations:23.0.0")
compileOnly("org.apache.commons:commons-lang3:$langVersion")
testImplementation("org.apache.commons:commons-lang3:$langVersion")
}
}