Native: fix curl sample test
Don't publish libcurl to a local Maven repo, but consume it directly as a project dependency. Publishing appears to be fragile here, and the intention of the test does not involve checking Gradle anyway.
This commit is contained in:
committed by
Space Team
parent
dd7a1a8c1c
commit
72f9cdf49b
@@ -1,21 +1,5 @@
|
||||
plugins {
|
||||
kotlin("multiplatform")
|
||||
`maven-publish`
|
||||
}
|
||||
|
||||
group = "org.jetbrains.kotlin.sample.native"
|
||||
version = "1.0"
|
||||
|
||||
val localRepo = rootProject.file("build/.m2-local")
|
||||
|
||||
publishing {
|
||||
repositories {
|
||||
maven("file://$localRepo")
|
||||
}
|
||||
}
|
||||
|
||||
val cleanLocalRepo by tasks.creating(Delete::class) {
|
||||
delete(localRepo)
|
||||
}
|
||||
|
||||
val mingwPath = File(System.getenv("MINGW64_DIR") ?: "C:/msys64/mingw64")
|
||||
@@ -43,16 +27,6 @@ kotlin {
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
mavenPublication {
|
||||
pom {
|
||||
withXml {
|
||||
val root = asNode()
|
||||
root.appendNode("name", "libcurl interop library")
|
||||
root.appendNode("description", "A library providing interoperability with host libcurl")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
// Enable experimental stdlib API used by the sample.
|
||||
|
||||
Reference in New Issue
Block a user