Skip to content

Commit 0101278

Browse files
committed
Add staging nexus plugin #3
1 parent fab8c12 commit 0101278

File tree

2 files changed

+3
-2
lines changed

2 files changed

+3
-2
lines changed

build.gradle.kts

+2
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,8 @@ plugins {
1414
id("org.jetbrains.kotlinx.jupyter.doc")
1515
}
1616

17+
extra["isMainProject"] = true
18+
1719
val kotlinxSerializationVersion: String by project
1820
val ktlintVersion: String by project
1921
val junitVersion: String by project

kotlin-jupyter-publish/src/main/kotlin/org/jetbrains/kotlinx/jupyter/publishing/publication.kt

+1-2
Original file line numberDiff line numberDiff line change
@@ -165,9 +165,8 @@ fun Project.addPublication(configuration: ArtifactPublication.() -> Unit) {
165165
}
166166

167167
val thisProjectName = project.name
168-
println("Root project for $thisProjectName is ${rootProject.name}")
169168

170-
if (rootProject.name == "kotlin-jupyter") {
169+
if (rootProject.findProperty("isMainProject") == true) {
171170
rootProject.tasks {
172171
named("publishLocal") {
173172
dependsOn(":$thisProjectName:publishAllPublicationsToLocalBuildRepository")

0 commit comments

Comments
 (0)