mirror of
https://github.com/jlengrand/kotlin.git
synced 2026-03-10 08:31:29 +00:00
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
dependencies/jcabi-aether/build.gradle.kts
vendored
Normal file
52
dependencies/jcabi-aether/build.gradle.kts
vendored
Normal file
@@ -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")
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
}
|
||||
0
dependencies/jcabi-aether/settings.gradle
vendored
Normal file
0
dependencies/jcabi-aether/settings.gradle
vendored
Normal file
4
dependencies/publishing.gradle.kts
vendored
4
dependencies/publishing.gradle.kts
vendored
@@ -30,8 +30,8 @@ configure<PublishingExtension> {
|
||||
}
|
||||
|
||||
configure<BintrayExtension> {
|
||||
user = extra["bintray.user"] as String
|
||||
key = extra["bintray.apikey"] as String
|
||||
user = findProperty("bintray.user") as String?
|
||||
key = findProperty("bintray.apikey") as String?
|
||||
|
||||
setPublications("maven")
|
||||
|
||||
|
||||
@@ -6,10 +6,6 @@ plugins {
|
||||
id("jps-compatible")
|
||||
}
|
||||
|
||||
repositories {
|
||||
maven(url = "https://oss.sonatype.org/content/repositories/snapshots") // for jcabi-aether:1.0-SNAPSHOT
|
||||
}
|
||||
|
||||
dependencies {
|
||||
compile(kotlinStdlib())
|
||||
compile(project(":kotlin-script-runtime"))
|
||||
@@ -19,7 +15,7 @@ dependencies {
|
||||
compileOnly(project(":daemon-common"))
|
||||
compileOnly(project(":kotlin-scripting-compiler"))
|
||||
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.apache.maven:maven-core:3.0.3")
|
||||
testCompileOnly(project(":compiler:cli"))
|
||||
@@ -28,7 +24,7 @@ dependencies {
|
||||
testCompile(commonDep("junit:junit"))
|
||||
testCompile(project(":kotlin-scripting-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.apache.maven:maven-core:3.0.3")
|
||||
compileOnly(intellijDep()) { includeJars("openapi", "util") }
|
||||
|
||||
Reference in New Issue
Block a user