-
Notifications
You must be signed in to change notification settings - Fork 22
/
Copy pathbuild.gradle
80 lines (66 loc) · 1.98 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
allprojects {
group 'dev.xdark'
version '2.0.0'
}
subprojects {
apply plugin: 'java-library'
apply plugin: 'java-test-fixtures'
apply plugin: 'maven-publish'
repositories {
mavenCentral()
repositories {
maven { url 'https://jitpack.io' }
}
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
tasks.withType(JavaCompile) {
options.compilerArgs.addAll(['-parameters', '-g:lines,source,vars'])
}
java {
withSourcesJar()
}
configurations {
testFixturesAnnotationProcessor.extendsFrom testAnnotationProcessor
testFixturesCompileOnly.extendsFrom testCompileOnly
}
dependencies {
def junitVersion = '5.8.2'
testImplementation "org.junit.jupiter:junit-jupiter-api:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
testImplementation "org.junit.jupiter:junit-jupiter-params:$junitVersion"
def lombok = 'org.projectlombok:lombok:1.18.24'
compileOnly lombok
annotationProcessor lombok
testCompileOnly lombok
testAnnotationProcessor lombok
compileOnly 'org.jetbrains:annotations:23.0.0'
testCompileOnly 'org.jetbrains:annotations:23.0.0'
}
test {
useJUnitPlatform()
jvmArgs+= ['-Djava.file.encoding=UTF-8']
}
publishing {
repositories {
mavenLocal()
maven {
name = 'sources-repo'
url = 'file:///tmp/sources-repo'
}
}
publications {
maven(MavenPublication) {
from components.java
}
}
}
ext {
asm = 'org.ow2.asm:asm:9.5'
asm_commons = 'org.ow2.asm:asm-commons:9.5'
asm_tree = 'org.ow2.asm:asm-tree:9.5'
cafedude = 'com.github.Col-E:CAFED00D:1.10.2'
slf4j_api = 'org.slf4j:slf4j-api:1.7.36'
jlinker = 'com.github.xxDark:jlinker:1.0.7'
}
}