-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
62 lines (51 loc) · 1.06 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
plugins {
id 'java'
id 'application'
id 'com.github.johnrengelman.shadow' version '8.1.1'
}
group = 'me.judge'
version = '1.0-SNAPSHOT'
application {
mainClass = 'me.judge.mcnativebuilder.Main'
}
repositories {
maven {
url = "https://repo.u-team.info"
}
mavenCentral()
}
configurations {
extraLibs
}
dependencies {
shadow(implementation("net.hycrafthd:minecraft_downloader:1.1.1"))
shadow(implementation("net.sourceforge.argparse4j:argparse4j:0.9.0"))
extraLibs(implementation(project(":mc-lib"))) {
transitive = false
}
testImplementation platform('org.junit:junit-bom:5.9.1')
testImplementation 'org.junit.jupiter:junit-jupiter'
}
def copy = tasks.register('copyDependencies', Copy) {
into "$buildDir/extraLibs"
from configurations.extraLibs
}
jar {
dependsOn(copy)
from {
"$buildDir/extraLibs"
} {
into 'extraLibs'
}
}
shadowJar {
dependsOn(copy)
from {
"$buildDir/extraLibs"
} {
into 'extraLibs'
}
}
test {
useJUnitPlatform()
}