diff --git a/buildSrc/src/main/kotlin/flatlaf-publish.gradle.kts b/buildSrc/src/main/kotlin/flatlaf-publish.gradle.kts index 7e405434..97afb4f1 100644 --- a/buildSrc/src/main/kotlin/flatlaf-publish.gradle.kts +++ b/buildSrc/src/main/kotlin/flatlaf-publish.gradle.kts @@ -124,7 +124,7 @@ tasks.withType().configureEach { } // check whether parallel build is enabled -tasks.withType().configureEach { +tasks.withType().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'." ) diff --git a/flatlaf-core/build.gradle.kts b/flatlaf-core/build.gradle.kts index da5c7ecc..987851dc 100644 --- a/flatlaf-core/build.gradle.kts +++ b/flatlaf-core/build.gradle.kts @@ -74,7 +74,7 @@ tasks { exclude( "com/formdev/flatlaf/natives/**" ) } - withType().configureEach { + withType().configureEach { dependsOn( "jarNoNatives" ) } diff --git a/flatlaf-fonts/flatlaf-fonts-inter/build.gradle.kts b/flatlaf-fonts/flatlaf-fonts-inter/build.gradle.kts index 5649087e..9cc431f3 100644 --- a/flatlaf-fonts/flatlaf-fonts-inter/build.gradle.kts +++ b/flatlaf-fonts/flatlaf-fonts-inter/build.gradle.kts @@ -56,7 +56,7 @@ tasks { testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL } - withType().configureEach { + withType().configureEach { onlyIf { !rootProject.hasProperty( "skipFonts" ) } } } diff --git a/flatlaf-fonts/flatlaf-fonts-jetbrains-mono/build.gradle.kts b/flatlaf-fonts/flatlaf-fonts-jetbrains-mono/build.gradle.kts index 1f80860a..7fbfb1f9 100644 --- a/flatlaf-fonts/flatlaf-fonts-jetbrains-mono/build.gradle.kts +++ b/flatlaf-fonts/flatlaf-fonts-jetbrains-mono/build.gradle.kts @@ -56,7 +56,7 @@ tasks { testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL } - withType().configureEach { + withType().configureEach { onlyIf { !rootProject.hasProperty( "skipFonts" ) } } } diff --git a/flatlaf-fonts/flatlaf-fonts-roboto-mono/build.gradle.kts b/flatlaf-fonts/flatlaf-fonts-roboto-mono/build.gradle.kts index b4a30080..b0fc7853 100644 --- a/flatlaf-fonts/flatlaf-fonts-roboto-mono/build.gradle.kts +++ b/flatlaf-fonts/flatlaf-fonts-roboto-mono/build.gradle.kts @@ -56,7 +56,7 @@ tasks { testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL } - withType().configureEach { + withType().configureEach { onlyIf { !rootProject.hasProperty( "skipFonts" ) } } } diff --git a/flatlaf-fonts/flatlaf-fonts-roboto/build.gradle.kts b/flatlaf-fonts/flatlaf-fonts-roboto/build.gradle.kts index 83b1402d..739bc357 100644 --- a/flatlaf-fonts/flatlaf-fonts-roboto/build.gradle.kts +++ b/flatlaf-fonts/flatlaf-fonts-roboto/build.gradle.kts @@ -56,7 +56,7 @@ tasks { testLogging.exceptionFormat = org.gradle.api.tasks.testing.logging.TestExceptionFormat.FULL } - withType().configureEach { + withType().configureEach { onlyIf { !rootProject.hasProperty( "skipFonts" ) } } }