forked from aterai/kotlin-swing-tips
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
44 lines (34 loc) · 924 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
42
43
44
buildscript {
ext.kotlin_version = 'latest.release'
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}
apply plugin: 'kotlin'
apply plugin: 'application'
// group 'KotlinSwingTips'
// version '1.0-SNAPSHOT'
mainClassName = 'example.AppKt'
defaultTasks 'run'
repositories {
mavenCentral()
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
testImplementation 'junit:junit:4.11'
testImplementation "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}
sourceCompatibility = 1.8
compileKotlin {
kotlinOptions.jvmTarget = "$sourceCompatibility"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "$sourceCompatibility"
}
jar {
manifest { attributes 'Main-Class': "$mainClassName" }
from { configurations.compileClasspath.collect { it.isDirectory() ? it : zipTree(it) } }
}