mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-07 06:20:53 +03:00
gradle: use AbstractPublishToMaven instead of PublishToMavenRepository to support publishing to local Maven repo (PublishToMavenLocal)
This commit is contained in:
@@ -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'." )
|
||||
|
||||
@@ -74,7 +74,7 @@ tasks {
|
||||
exclude( "com/formdev/flatlaf/natives/**" )
|
||||
}
|
||||
|
||||
withType<PublishToMavenRepository>().configureEach {
|
||||
withType<AbstractPublishToMaven>().configureEach {
|
||||
dependsOn( "jarNoNatives" )
|
||||
}
|
||||
|
||||
|
||||
@@ -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" ) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" ) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" ) }
|
||||
}
|
||||
}
|
||||
|
||||
@@ -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" ) }
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user