Build: Publish jcabi-aether-1.0-SNAPSHOT to kotlin-dependencies as 1.0-dev-3
This allows to remove dependency on snapshot repository https://oss.sonatype.org/content/repositories/snapshots
This commit is contained in:
+52
@@ -0,0 +1,52 @@
|
|||||||
|
plugins {
|
||||||
|
`java-library`
|
||||||
|
`maven-publish`
|
||||||
|
id("com.jfrog.bintray") version "1.8.4"
|
||||||
|
}
|
||||||
|
|
||||||
|
group = "org.jetbrains.kotlin"
|
||||||
|
version = "1.0-dev-3"
|
||||||
|
|
||||||
|
repositories {
|
||||||
|
mavenCentral()
|
||||||
|
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
|
||||||
|
}
|
||||||
|
|
||||||
|
val aether by configurations.creating
|
||||||
|
dependencies {
|
||||||
|
aether("com.jcabi:jcabi-aether:1.0-SNAPSHOT")
|
||||||
|
}
|
||||||
|
|
||||||
|
val jar = tasks.named<Jar>("jar") {
|
||||||
|
from(provider {
|
||||||
|
provider {
|
||||||
|
zipTree(
|
||||||
|
aether.resolvedConfiguration
|
||||||
|
.firstLevelModuleDependencies
|
||||||
|
.single()
|
||||||
|
.moduleArtifacts
|
||||||
|
.single()
|
||||||
|
.file
|
||||||
|
)
|
||||||
|
}
|
||||||
|
})
|
||||||
|
}
|
||||||
|
|
||||||
|
apply(from="../publishing.gradle.kts")
|
||||||
|
|
||||||
|
configure<PublishingExtension> {
|
||||||
|
publications.getByName<MavenPublication>("maven") {
|
||||||
|
pom.withXml {
|
||||||
|
asNode().appendNode("dependencies").apply {
|
||||||
|
aether.resolvedConfiguration.firstLevelModuleDependencies.single().children.forEach {
|
||||||
|
appendNode("dependency").apply {
|
||||||
|
appendNode("groupId", it.moduleGroup)
|
||||||
|
appendNode("artifactId", it.moduleName)
|
||||||
|
appendNode("version", it.moduleVersion)
|
||||||
|
appendNode("scope", "compile")
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
Vendored
+2
-2
@@ -30,8 +30,8 @@ configure<PublishingExtension> {
|
|||||||
}
|
}
|
||||||
|
|
||||||
configure<BintrayExtension> {
|
configure<BintrayExtension> {
|
||||||
user = extra["bintray.user"] as String
|
user = findProperty("bintray.user") as String?
|
||||||
key = extra["bintray.apikey"] as String
|
key = findProperty("bintray.apikey") as String?
|
||||||
|
|
||||||
setPublications("maven")
|
setPublications("maven")
|
||||||
|
|
||||||
|
|||||||
@@ -6,10 +6,6 @@ plugins {
|
|||||||
id("jps-compatible")
|
id("jps-compatible")
|
||||||
}
|
}
|
||||||
|
|
||||||
repositories {
|
|
||||||
maven(url = "https://oss.sonatype.org/content/repositories/snapshots") // for jcabi-aether:1.0-SNAPSHOT
|
|
||||||
}
|
|
||||||
|
|
||||||
dependencies {
|
dependencies {
|
||||||
compile(kotlinStdlib())
|
compile(kotlinStdlib())
|
||||||
compile(project(":kotlin-script-runtime"))
|
compile(project(":kotlin-script-runtime"))
|
||||||
@@ -19,7 +15,7 @@ dependencies {
|
|||||||
compileOnly(project(":daemon-common"))
|
compileOnly(project(":daemon-common"))
|
||||||
compileOnly(project(":kotlin-scripting-compiler"))
|
compileOnly(project(":kotlin-scripting-compiler"))
|
||||||
compile(projectRuntimeJar(":kotlin-daemon-client"))
|
compile(projectRuntimeJar(":kotlin-daemon-client"))
|
||||||
compileOnly("com.jcabi:jcabi-aether:1.0-SNAPSHOT")
|
compileOnly("org.jetbrains.kotlin:jcabi-aether:1.0-dev-3")
|
||||||
compileOnly("org.sonatype.aether:aether-api:1.13.1")
|
compileOnly("org.sonatype.aether:aether-api:1.13.1")
|
||||||
compileOnly("org.apache.maven:maven-core:3.0.3")
|
compileOnly("org.apache.maven:maven-core:3.0.3")
|
||||||
testCompileOnly(project(":compiler:cli"))
|
testCompileOnly(project(":compiler:cli"))
|
||||||
@@ -28,7 +24,7 @@ dependencies {
|
|||||||
testCompile(commonDep("junit:junit"))
|
testCompile(commonDep("junit:junit"))
|
||||||
testCompile(project(":kotlin-scripting-compiler"))
|
testCompile(project(":kotlin-scripting-compiler"))
|
||||||
testRuntimeOnly(projectRuntimeJar(":kotlin-compiler"))
|
testRuntimeOnly(projectRuntimeJar(":kotlin-compiler"))
|
||||||
testRuntime("com.jcabi:jcabi-aether:1.0-SNAPSHOT")
|
testRuntime("org.jetbrains.kotlin:jcabi-aether:1.0-dev-3")
|
||||||
testRuntime("org.sonatype.aether:aether-api:1.13.1")
|
testRuntime("org.sonatype.aether:aether-api:1.13.1")
|
||||||
testRuntime("org.apache.maven:maven-core:3.0.3")
|
testRuntime("org.apache.maven:maven-core:3.0.3")
|
||||||
compileOnly(intellijDep()) { includeJars("openapi", "util") }
|
compileOnly(intellijDep()) { includeJars("openapi", "util") }
|
||||||
|
|||||||
Reference in New Issue
Block a user