-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (45 loc) · 1.26 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
plugins {
id 'java'
id 'application'
}
group 'com.solarisskunkwerks'
version '1.0'
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenCentral()
mavenLocal()
maven { url 'https://jitpack.io' } // SerialKiller from MM
}
dependencies {
compile 'org.apache.httpcomponents:httpclient:4.5.12'
compile 'org.jsoup:jsoup:1.13.1'
compile 'info.picocli:picocli:4.5.1'
compile 'com.solarisskunkwerks:sswlib:0.7.5'
compile 'org.megamek:megamek-HEAD:0.47.14'
implementation 'org.apache.commons:commons-csv:1.8'
annotationProcessor 'info.picocli:picocli-codegen:4.5.1'
testCompile group: 'junit', name: 'junit', version: '4.12'
}
application {
mainClassName = 'MULEditor'
}
compileJava.finalizedBy('copyArtifact')
task copyDeps(dependsOn: build, type: Copy) {
from configurations.runtime
from "external"
into "$buildDir/output/lib"
}
task copyArtifact(dependsOn: copyDeps, type: Copy) {
from jar
into "$buildDir/output"
}
jar {
manifest {
attributes(
'Main-Class': 'MULEditor',
'Class-Path' : configurations.runtimeClasspath.files
.findAll { it.name.endsWith(".jar") }.collect { "lib/${it.name}" }.join(' '),
)
}
}