Skip to content

Commit af0316c

Browse files
committed
Fix: use project extensions instead of task ones
1 parent e72d29a commit af0316c

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

main/src/kotlinx/team/infra/Publishing.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -255,7 +255,7 @@ private fun Project.createVersionPrepareTask(publishing: PublishingConfiguration
255255
return task<DefaultTask>("publishPrepareVersion") {
256256
group = PublishingPlugin.PUBLISH_TASK_GROUP
257257
doFirst {
258-
val ext = extensions.getByType(ExtraPropertiesExtension::class.java)
258+
val ext = project.extensions.getByType(ExtraPropertiesExtension::class.java)
259259
if (publishing.sonatype.isSelected && ext.get("infra.release") != true) {
260260
throw KotlinInfrastructureException("Cannot publish development version to Sonatype.")
261261
}

0 commit comments

Comments
 (0)