gradle: use AbstractPublishToMaven instead of PublishToMavenRepository to support publishing to local Maven repo (PublishToMavenLocal)

This commit is contained in:
Karl Tauber
2024-02-19 18:47:48 +01:00
parent d7a76081e3
commit a8e71895ee
6 changed files with 6 additions and 6 deletions

View File

@@ -124,7 +124,7 @@ tasks.withType<Sign>().configureEach {
}
// check whether parallel build is enabled
tasks.withType<PublishToMavenRepository>().configureEach {
tasks.withType<AbstractPublishToMaven>().configureEach {
doFirst {
if( System.getProperty( "org.gradle.parallel" ) == "true" )
throw RuntimeException( "Publishing does not work correctly with enabled parallel build. Disable parallel build with VM option '-Dorg.gradle.parallel=false'." )

View File

@@ -74,7 +74,7 @@ tasks {
exclude( "com/formdev/flatlaf/natives/**" )
}
withType<PublishToMavenRepository>().configureEach {
withType<AbstractPublishToMaven>().configureEach {
dependsOn( "jarNoNatives" )
}

View File

@@ -56,7 +56,7 @@ tasks {
testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
withType<PublishToMavenRepository>().configureEach {
withType<AbstractPublishToMaven>().configureEach {
onlyIf { !rootProject.hasProperty( "skipFonts" ) }
}
}

View File

@@ -56,7 +56,7 @@ tasks {
testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
withType<PublishToMavenRepository>().configureEach {
withType<AbstractPublishToMaven>().configureEach {
onlyIf { !rootProject.hasProperty( "skipFonts" ) }
}
}

View File

@@ -56,7 +56,7 @@ tasks {
testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
withType<PublishToMavenRepository>().configureEach {
withType<AbstractPublishToMaven>().configureEach {
onlyIf { !rootProject.hasProperty( "skipFonts" ) }
}
}

View File

@@ -56,7 +56,7 @@ tasks {
testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL
}
withType<PublishToMavenRepository>().configureEach {
withType<AbstractPublishToMaven>().configureEach {
onlyIf { !rootProject.hasProperty( "skipFonts" ) }
}
}