-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
executable file
·44 lines (37 loc) · 1.1 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
apply plugin: 'java'
apply plugin: 'application'
version = '1.0'
repositories {
mavenCentral()
}
sourceSets {
main {
java {
srcDirs 'src/main/java'
}
}
}
dependencies {
// https://mvnrepository.com/artifact/commons-io/commons-io
compile group: 'commons-io', name: 'commons-io', version: '2.4'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.0'
// https://mvnrepository.com/artifact/org.apache.commons/commons-math3
compile group: 'org.apache.commons', name: 'commons-math3', version: '3.6.1'
}
mainClassName = "me.danielschaefer.digitrecognition.Test"
jar {
manifest {
attributes 'Main-Class': mainClassName
}
}
task fatJar(type: Jar) {
manifest {
attributes 'Implementation-Title': 'DigitRecognition',
'Implementation-Version': version,
'Main-Class': 'me.danielschaefer.digitrecognition.Test'
}
baseName = project.name
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
with jar
}