Skip to content

Commit 907802e

Browse files
committed
kotlin gradle script
1 parent 66841c1 commit 907802e

File tree

2 files changed

+10
-4
lines changed

2 files changed

+10
-4
lines changed

build.gradle.kts

Lines changed: 9 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,14 @@
1+
import org.gradle.api.JavaVersion
2+
13
group = "groupId"
24
version = "1.0-SNAPSHOT"
35

46
buildscript {
57

68
repositories {
9+
gradleScriptKotlin()
710
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.1") }
811
mavenCentral()
9-
gradleScriptKotlin()
1012
}
1113

1214
dependencies {
@@ -26,9 +28,14 @@ apply {
2628
// mainClassName = "samples.HelloWorldKt"
2729
//}
2830

31+
//configure<JavaPluginConvention> {
32+
// sourceCompatibility = JavaVersion.VERSION_1_7
33+
// targetCompatibility = JavaVersion.VERSION_1_7
34+
//}
35+
2936
repositories {
30-
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.1") }
3137
gradleScriptKotlin()
38+
maven { setUrl("http://dl.bintray.com/kotlin/kotlin-eap-1.1") }
3239
}
3340

3441
dependencies {

settings.gradle

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,2 +1 @@
1-
rootProject.buildFileName = 'build.gradle.kts'
2-
1+
rootProject.buildFileName = 'build.gradle.kts'

0 commit comments

Comments
 (0)