-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
61 lines (53 loc) · 1.32 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
buildscript {
// Platform-dependent paths, adjust for proguard execution
ext {
proguardPath = "C:\\proguard\\lib"
rtJarPath = "C:\\Program Files\\Java\\jdk1.8.0_192\\jre\\lib\\rt.jar"
}
repositories {
mavenCentral()
flatDir dirs: proguardPath
}
dependencies {
classpath ":proguard:"
}
}
plugins {
id "org.jetbrains.kotlin.jvm" version "1.3.0"
id "com.github.breadmoirai.github-release" version "2.2.0"
}
group 'de.milux.ppcolor'
version '1.1.0'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
jar {
manifest {
attributes 'Main-Class': 'de.milux.ppcolor.MainKt'
}
from { configurations.compile.collect { it.isDirectory() ? it : zipTree(it) } }
}
task proguard(type: proguard.gradle.ProGuardTask) {
configuration file('proguard.txt')
libraryjars rtJarPath
injars "build/libs/de.milux.ppcolor-${version}.jar"
outjars "releases/ppcolor-${version}.jar"
}
proguard.dependsOn jar
githubRelease {
token getProperty('github.token')
owner "milux"
repo "ppcolor"
tagName "${version}"
releaseAssets "releases/ppcolor-${version}.jar"
overwrite true
}