-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
58 lines (47 loc) · 1.12 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
group 'ru.mail.im'
version '0.0.1'
buildscript {
ext {
kotlinVersion = '1.2.51'
shadowVersion = '4.0.4'
gsonVersion = '2.8.4'
junitVersion = '4.12'
appName = 'motli-sketch-palette'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlinVersion}"
classpath "com.github.jengelman.gradle.plugins:shadow:$shadowVersion"
}
}
apply plugin: 'kotlin'
apply plugin: 'com.github.johnrengelman.shadow'
apply plugin: 'application'
mainClassName = 'ru.mail.im.motli.palette.sketch.AppKt'
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
repositories {
mavenCentral()
}
shadowJar {
baseName = appName
classifier = null
version = version
}
run {
if (project.hasProperty('args')) {
args project.args.split('\\s+')
}
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlinVersion"
compile "com.google.code.gson:gson:$gsonVersion"
testCompile "junit:junit:${junitVersion}"
}