samples: clean-up local .m2 repo on :clean (#2344)
This commit is contained in:
@@ -18,6 +18,14 @@ allprojects {
|
||||
}
|
||||
}
|
||||
|
||||
def localRepo = rootProject.file('build/.m2-local')
|
||||
|
||||
task clean {
|
||||
doLast {
|
||||
delete(localRepo)
|
||||
}
|
||||
}
|
||||
|
||||
task buildSh(type: Exec) {
|
||||
errorOutput = System.out
|
||||
ignoreExitValue = true
|
||||
|
||||
@@ -2,7 +2,7 @@ plugins {
|
||||
id 'kotlin-multiplatform'
|
||||
}
|
||||
|
||||
def localRepo = rootProject.file('build/.m2-repo')
|
||||
def localRepo = rootProject.file('build/.m2-local')
|
||||
|
||||
repositories {
|
||||
maven { url = "file://$localRepo" }
|
||||
|
||||
@@ -8,7 +8,7 @@ plugins {
|
||||
group 'org.jetbrains.kotlin.sample.native'
|
||||
version '1.0'
|
||||
|
||||
def localRepo = rootProject.file('build/.m2-repo')
|
||||
def localRepo = rootProject.file('build/.m2-local')
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
|
||||
Reference in New Issue
Block a user