Skip to content

Commit baaabd8

Browse files
author
Abduqodiri Qurbonzoda
committed
Publish :plugin and :runtime to Space besides GPP and Sonatype
1 parent e8e0158 commit baaabd8

File tree

3 files changed

+38
-1
lines changed

3 files changed

+38
-1
lines changed

.teamcity/additionalConfiguration.kt

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,11 @@ fun Project.additionalConfiguration() {
1313
platforms.forEach { platform ->
1414
val gradleBuild = knownBuilds.buildOn(platform).steps.items.single() as GradleBuildStep
1515
gradleBuild.tasks += " " + fastBenchmarkTasks(platform)
16+
17+
knownBuilds.deployOn(platform).params {
18+
param("system.space.user", "abduqodiri.qurbonzoda")
19+
password("system.space.token", "credentialsJSON:7aa03210-1f86-452e-b786-920f8a321b7d")
20+
}
1621
}
1722

1823
deployPlugin()
@@ -24,6 +29,9 @@ fun fastBenchmarkTasks(platform: Platform): String {
2429
).joinToString(separator = " ", transform = { "${it}FastBenchmark" })
2530
}
2631

32+
33+
// deploy plugin to Gradle Plugin Portal
34+
2735
const val gradlePublishKey = "gradle.publish.key"
2836
const val gradlePublishSecret = "gradle.publish.secret"
2937

@@ -57,4 +65,4 @@ fun Project.deployPlugin() = BuildType {
5765
gradleWrapperPath = ""
5866
}
5967
}
60-
}.also { buildType(it) }
68+
}.also { buildType(it) }

plugin/build.gradle

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -113,3 +113,18 @@ task createClasspathManifest {
113113
file("$outputDir/plugin-classpath.txt").text = (sourceSets.main.runtimeClasspath + configurations.testPluginClasspath).join("\n")
114114
}
115115
}
116+
117+
118+
// publish to Space repository
119+
publishing {
120+
repositories {
121+
maven {
122+
name = "space"
123+
url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlinx/dev"
124+
credentials {
125+
username = project.findProperty("space.user")
126+
password = project.findProperty("space.token")
127+
}
128+
}
129+
}
130+
}

runtime/build.gradle

Lines changed: 14 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -71,3 +71,17 @@ kotlin {
7171
}
7272
}
7373

74+
75+
// publish to Space repository
76+
publishing {
77+
repositories {
78+
maven {
79+
name = "space"
80+
url = "https://maven.pkg.jetbrains.space/kotlin/p/kotlinx/dev"
81+
credentials {
82+
username = project.findProperty("space.user")
83+
password = project.findProperty("space.token")
84+
}
85+
}
86+
}
87+
}

0 commit comments

Comments
 (0)