-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
42 lines (34 loc) · 901 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
plugins {
id 'java'
id 'application'
}
version '1.0-SNAPSHOT'
sourceCompatibility = 1.11
repositories {
mavenCentral()
}
dependencies {
compile fileTree(dir: 'lib', include: ['commons-lang3-3.0.jar'])
compile fileTree(dir: 'lib', include: ['commons-io-2.4.jar'])
compile fileTree(dir: 'lib', include: ['picocli-3.9.2.jar'])
compile fileTree(dir: 'lib', include: ['java_cup.jar'])
compile fileTree(dir: 'lib', include: ['guava-27.1-jre.jar'])
testCompile group: 'junit', name: 'junit', version: '4.12'
}
application {
mainClassName = 'kc875.cli.CLI'
}
distributions {
main {
contents {
}
}
}
task customFatJar(type: Jar) {
manifest {
attributes 'Main-Class': 'kc875.cli.CLI'
}
archiveBaseName = 'all-in-one-jar'
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}