diff --git a/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md b/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md index 61d337913c..fb909862f4 100644 --- a/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md +++ b/content/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry.md @@ -117,7 +117,7 @@ publishing { } } publications { - register("gpr") { + register<MavenPublication>("gpr") { from(components["java"]) } } @@ -132,7 +132,7 @@ plugins { } subprojects { apply(plugin = "maven-publish") - configure { + configure<PublishingExtension> { repositories { maven { name = "GitHubPackages" @@ -144,7 +144,7 @@ subprojects { } } publications { - register("gpr") { + register<MavenPublication>("gpr") { from(components["java"]) } }