forked from fabianonline/telegram_backup
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
57 lines (47 loc) · 1.17 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
apply plugin: 'java'
apply plugin: 'application'
mainClassName= 'de.fabianonline.telegram_backup.CommandLineRunner'
repositories {
mavenCentral()
maven {
url "https://jitpack.io"
}
}
dependencies {
compile('com.github.badoualy:kotlogram:666a81ef9d6707f117a3fecc2d21c91d51c7d075') {
exclude module: 'slf4j-simple'
}
compile 'org.xerial:sqlite-jdbc:3.16.1'
compile 'com.github.spullara.mustache.java:compiler:0.8.18'
compile 'org.slf4j:slf4j-api:1.7.21'
compile 'ch.qos.logback:logback-classic:1.1.7'
compile 'com.google.code.gson:gson:2.5'
testCompile 'junit:junit:4.12'
}
run {
standardInput = System.in
}
def getVersionName= { ->
def stdout = new ByteArrayOutputStream()
exec {
commandLine 'git', 'describe', '--tags', '--dirty'
standardOutput = stdout
}
def version = stdout.toString().trim()
logger.lifecycle("Version $version")
return version
}
ant.propertyfile(file: "$project.rootDir/build/resources/main/build.properties") {
entry(key: "version", value: getVersionName())
}
jar {
manifest {
attributes "Main-Class": "$mainClassName"
}
from {
configurations.compile.collect { it.isDirectory() ? it : zipTree(it) }
}
includes [
"*.mustache"
]
}