Skip to content

Commit 994b914

Browse files
committed
Configured kotlin.
1 parent ca1f548 commit 994b914

File tree

3 files changed

+15
-6
lines changed

3 files changed

+15
-6
lines changed

.gitignore

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1 +1 @@
1-
/.idea
1+
/.idea

build.gradle

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,17 +1,26 @@
11
group 'mvcoding'
2-
version '1.0'
2+
version '1.0-SNAPSHOT'
33

44
buildscript {
5+
ext.kotlin_version = '1.0.2-1'
56
repositories {
67
mavenCentral()
78
}
89
dependencies {
9-
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.0.1"
10+
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
1011
}
1112
}
1213

1314
apply plugin: 'kotlin'
1415

1516
dependencies {
16-
compile "org.jetbrains.kotlin:kotlin-stdlib:1.0.1"
17+
compile "org.jetbrains.kotlin:kotlin-stdlib:$kotlin_version"
18+
}
19+
20+
repositories {
21+
mavenCentral()
22+
}
23+
24+
sourceSets {
25+
main.java.srcDirs += 'src/main/kotlin'
1726
}
Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1-
#Wed Jun 22 11:44:33 BST 2016
1+
#Wed Jun 22 12:56:17 BST 2016
22
distributionBase=GRADLE_USER_HOME
33
distributionPath=wrapper/dists
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists
6-
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-all.zip
6+
distributionUrl=https\://services.gradle.org/distributions/gradle-2.14-all.zip

0 commit comments

Comments
 (0)