Skip to content

Commit 9ed9c20

Browse files
committed
fix nmcp
1 parent 2746316 commit 9ed9c20

File tree

1 file changed

+6
-6
lines changed

1 file changed

+6
-6
lines changed

build.gradle.kts

Lines changed: 6 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -115,18 +115,18 @@ dependencies {
115115
nmcpAggregation(project)
116116
}
117117

118-
tasks.publishAggregationToCentralPortal {
118+
tasks.nmcpPublishAggregationToCentralPortal {
119119
val isReleaseVersion = mavenPublishing.isReleaseVersion
120-
onlyIf("is release version") { isReleaseVersion.get() }
120+
onlyIf("is release version") { _ -> isReleaseVersion.get() }
121121
}
122122

123-
tasks.publishAggregationToCentralPortalSnapshots {
123+
tasks.nmcpPublishAggregationToCentralPortalSnapshots {
124124
val isReleaseVersion = mavenPublishing.isReleaseVersion
125-
onlyIf("is snapshot version") { !isReleaseVersion.get() }
125+
onlyIf("is snapshot version") { _ -> !isReleaseVersion.get() }
126126
}
127127

128128
tasks.register("nmcpPublish") {
129129
group = PublishingPlugin.PUBLISH_TASK_GROUP
130-
dependsOn(tasks.publishAggregationToCentralPortal)
131-
dependsOn(tasks.publishAggregationToCentralPortalSnapshots)
130+
dependsOn(tasks.nmcpPublishAggregationToCentralPortal)
131+
dependsOn(tasks.nmcpPublishAggregationToCentralPortalSnapshots)
132132
}

0 commit comments

Comments
 (0)