Skip to content

Commit 2a77ec8

Browse files
committed
Publishing fix again
1 parent 5283e9a commit 2a77ec8

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

build.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -496,8 +496,8 @@ publishing {
496496
// see https://docs.gradle.org/current/userguide/publishing_customization.html#sec:publishing_maven:conditional_publishing
497497
tasks.withType<PublishToMavenRepository>().configureEach {
498498
val predicate = provider {
499-
(publication == publications["mod"] && repository == repositories["central"]) ||
500-
(publication == publications["versionedMod"] && repository == repositories["DaPorkchop_"])
499+
(publication == publications["mod"] && repository == repositories.findByName("central")) ||
500+
(publication == publications["versionedMod"] && repository == repositories.findByName("DaPorkchop_"))
501501
}
502502
onlyIf("publishing mod to Sonatype repository, and versioned mod to DaPorkchop_ repository") {
503503
predicate.get()

0 commit comments

Comments
 (0)