Skip to content

Commit

Permalink
Cleanup scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
importre committed May 23, 2017
1 parent 8dbc65d commit b0dda9d
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 20 deletions.
21 changes: 21 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,3 +28,24 @@ dependencies {
testCompile "junit:junit:$junit_version"
testCompile "org.jetbrains.kotlin:kotlin-test-junit:$kotlin_version"
}

subprojects { sub ->
sub.buildscript {
ext {
kotlin_version = rootProject.ext.kotlin_version
junit_version = rootProject.ext.junit_version
}

repositories {
jcenter()
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

repositories {
jcenter()
}
}
21 changes: 1 addition & 20 deletions example/build.gradle
Original file line number Diff line number Diff line change
@@ -1,27 +1,8 @@
group 'com.importre'
version '0.0.0'

buildscript {
ext.kotlin_version = '1.1.2-2'

repositories {
jcenter()
}

dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
}
}

apply plugin: 'application'
apply plugin: 'java'
apply plugin: 'kotlin'

repositories {
jcenter()
}

mainClassName = "${group}.example.Main"
mainClassName = "${rootProject.group}.example.Main"

dependencies {
compile rootProject
Expand Down

0 comments on commit b0dda9d

Please sign in to comment.