forked from Jarhead20/RRPathGen
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
52 lines (42 loc) · 1013 Bytes
/
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
plugins {
id 'java'
}
group 'jarhead'
version '1.4.4'
repositories {
mavenCentral()
maven { url = 'https://maven.brott.dev/' }
}
dependencies {
testImplementation 'org.junit.jupiter:junit-jupiter-api:5.6.0'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
implementation 'com.acmerobotics.roadrunner:core:0.5.5'
implementation 'com.formdev:flatlaf:2.5'
}
tasks.withType(Copy).all { duplicatesStrategy 'exclude' }
jar {
sourceSets {
main {
resources {
srcDirs "src/main/resources"
}
}
}
manifest {
attributes(
"Main-Class" : "jarhead.Main"
)
}
}
task customFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'jarhead.Main'
}
baseName = 'RRPathGen'
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from { configurations.runtimeClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}
test {
useJUnitPlatform()
}