-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
41 lines (34 loc) · 982 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
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}
}
apply plugin: 'java'
apply plugin: 'application'
apply plugin: 'com.github.johnrengelman.shadow'
group = 'com.github.vlsi.ksar'
archivesBaseName = 'ksar'
version = '5.2.3-SNAPSHOT'
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
mainClassName = 'net.atomique.ksar.Main'
repositories {
mavenCentral()
}
dependencies {
compile group: 'com.itextpdf', name: 'itextpdf', version: '5.5.10'
compile group: 'com.jcraft', name: 'jsch', version: '0.1.54'
compile group: 'org.jfree', name: 'jfreechart', version: '1.0.19'
testCompile 'junit:junit:4.12'
}
task writeVersion << {
def s = version.find(/^\d.\d.\d/)
if (s == null) {
throw new InvalidUserDataException('Invalid version format')
}
new File("build/resources/main/kSar.version").text = s
}
classes.dependsOn(writeVersion)