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) {
|
task buildSh(type: Exec) {
|
||||||
errorOutput = System.out
|
errorOutput = System.out
|
||||||
ignoreExitValue = true
|
ignoreExitValue = true
|
||||||
|
|||||||
@@ -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" }
|
||||||
|
|||||||
@@ -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 {
|
||||||
|
|||||||
Reference in New Issue
Block a user