mirror of
https://github.com/JFormDesigner/FlatLaf.git
synced 2025-12-06 22:10:54 +03:00
Gradle: use System.getProperty( "org.gradle.parallel" ) instead of rootProject.property( "org.gradle.parallel" ) because this did not work with VM command-line option -Dorg.gradle.parallel=false
This commit is contained in:
@@ -126,7 +126,7 @@ tasks.withType<Sign>().configureEach {
|
|||||||
// check whether parallel build is enabled
|
// check whether parallel build is enabled
|
||||||
tasks.withType<PublishToMavenRepository>().configureEach {
|
tasks.withType<PublishToMavenRepository>().configureEach {
|
||||||
doFirst {
|
doFirst {
|
||||||
if( rootProject.hasProperty( "org.gradle.parallel" ) && rootProject.property( "org.gradle.parallel" ) == "true" )
|
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'." )
|
throw RuntimeException( "Publishing does not work correctly with enabled parallel build. Disable parallel build with VM option '-Dorg.gradle.parallel=false'." )
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user