-
Notifications
You must be signed in to change notification settings - Fork 9
/
Copy pathbuild.gradle
99 lines (81 loc) · 2.94 KB
/
build.gradle
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
plugins {
id "de.undercouch.download" version "5.1.0"
}
subprojects {
apply plugin: 'java-library'
tasks.withType(JavaCompile) {
sourceCompatibility = "17"
targetCompatibility = "17"
}
compileJava.options.encoding = compileTestJava.options.encoding = 'UTF-8'
repositories {
mavenCentral()
mavenLocal()
maven {
url 'https://jitpack.io'
}
maven {
url = "https://repo.aikar.co/content/groups/aikar/"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
test {
dependsOn jar
useJUnitPlatform()
}
compileJava {
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
compileTestJava {
options.compilerArgs += ["-parameters"]
options.fork = true
options.forkOptions.executable = 'javac'
}
jar {
from {
configurations.runtimeClasspath.findAll { it.name.endsWith('jar') }.collect { zipTree(it) }
}
exclude("**/*.DSA", "**/*.SF", "**/*pom.xml", "**/*pom.properties", '**/module-info.class', "**/*.php",)
}
dependencies {
compileOnly 'com.google.auto.service:auto-service:1.0'
annotationProcessor 'com.google.auto.service:auto-service:1.0'
compileOnly 'it.unimi.dsi:fastutil:8.2.1'
compileOnly 'com.google.code.gson:gson:2.8.5'
compileOnly 'com.electronwill.night-config:hocon:3.6.6'
compileOnly 'com.electronwill.night-config:json:3.6.6'
compileOnly 'com.electronwill.night-config:core:3.6.6'
compileOnly('com.google.inject:guice:5.0.1')
compileOnly 'com.scireum:parsii:4.0'
compileOnly 'net.bytebuddy:byte-buddy:1.12.1'
compileOnly 'org.antlr:antlr4-runtime:4.9.2'
// {
// exclude group: "com.google.guava", module: "guava"
// exclude group: 'aopalliance', module: "aopalliance"
// exclude group: "javax.inject", module: "javax.inject"
// }
// compileOnly 'aopalliance:aopalliance:1.0'
// compileOnly 'javax.inject:javax.inject:1'
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.9.0'
testImplementation 'org.junit.jupiter:junit-jupiter-params:5.9.0'
testImplementation 'com.github.JeffreyFalgout:junit5-extensions:junit5-extensions-1.2.1'
testImplementation 'it.unimi.dsi:fastutil:8.2.1'
//// https://mvnrepository.com/artifact/com.google.code.gson/gson
testImplementation 'com.google.code.gson:gson:2.8.5'
}
tasks.named("jar") {
duplicatesStrategy(DuplicatesStrategy.INCLUDE)
}
configurations {
testImplementation.extendsFrom compileOnly
}
}