-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (47 loc) · 1.14 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
group 'ARBI print'
version '2.0'
apply plugin: 'java'
sourceCompatibility = 1.8
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.github.jengelman.gradle.plugins:shadow:2.0.1"
}
}
repositories {
jcenter()
}
dependencies {
// https://mvnrepository.com/artifact/com.jcraft/jsch
compile group: 'com.jcraft', name: 'jsch', version: '0.1.54'
// https://mvnrepository.com/artifact/com.google.code.gson/gson
compile group: 'com.google.code.gson', name: 'gson', version: '2.8.2'
// https://mvnrepository.com/artifact/junit/junit
// testCompile group: 'junit', name: 'junit', version: '4.12'
}
apply plugin: "com.github.johnrengelman.shadow"
task createProperties {
doFirst {
def version = project.version.toString()
def file = new File("$projectDir/src/main/resources/VERSION.txt")
file.write(version)
}
}
jar {
manifest {
attributes 'Main-Class': 'com.haselkern.java.arbiprint.Main'
}
}
shadowJar {
dependsOn createProperties
classifier = null
}
sourceSets {
main {
java {
srcDirs 'src'
}
}
}