samples: clean-up local .m2 repo on :clean (#2344)

This commit is contained in:
Dmitriy Dolovov
2018-11-19 11:31:54 +07:00
committed by GitHub
parent ca32454ba8
commit 17c0dae0e4
3 changed files with 10 additions and 2 deletions
+8
View File
@@ -18,6 +18,14 @@ allprojects {
} }
} }
def localRepo = rootProject.file('build/.m2-local')
task clean {
doLast {
delete(localRepo)
}
}
task buildSh(type: Exec) { task buildSh(type: Exec) {
errorOutput = System.out errorOutput = System.out
ignoreExitValue = true ignoreExitValue = true
+1 -1
View File
@@ -2,7 +2,7 @@ plugins {
id 'kotlin-multiplatform' id 'kotlin-multiplatform'
} }
def localRepo = rootProject.file('build/.m2-repo') def localRepo = rootProject.file('build/.m2-local')
repositories { repositories {
maven { url = "file://$localRepo" } maven { url = "file://$localRepo" }
+1 -1
View File
@@ -8,7 +8,7 @@ plugins {
group 'org.jetbrains.kotlin.sample.native' group 'org.jetbrains.kotlin.sample.native'
version '1.0' version '1.0'
def localRepo = rootProject.file('build/.m2-repo') def localRepo = rootProject.file('build/.m2-local')
publishing { publishing {
repositories { repositories {