From 61c2fd8794cae44edd5a380e6126ecf97d8ac0fd Mon Sep 17 00:00:00 2001 From: Karl Tauber Date: Sat, 9 May 2020 15:42:18 +0200 Subject: [PATCH] build.gradle.kts: use MigLayout 5.3-SNAPSHOT for better scaling Demo: exclude module-info.class from fat JAR --- flatlaf-demo/build.gradle.kts | 10 +++++++++- flatlaf-testing/build.gradle.kts | 9 ++++++++- 2 files changed, 17 insertions(+), 2 deletions(-) diff --git a/flatlaf-demo/build.gradle.kts b/flatlaf-demo/build.gradle.kts index 86674d04..589ef5dc 100644 --- a/flatlaf-demo/build.gradle.kts +++ b/flatlaf-demo/build.gradle.kts @@ -27,11 +27,18 @@ plugins { id( "com.jfrog.artifactory" ) } +repositories { + maven { + // for using MigLayout snapshot + url = uri( "https://oss.sonatype.org/content/repositories/snapshots/" ) + } +} + dependencies { implementation( project( ":flatlaf-core" ) ) implementation( project( ":flatlaf-extras" ) ) implementation( project( ":flatlaf-intellij-themes" ) ) - implementation( "com.miglayout:miglayout-swing:5.2" ) + implementation( "com.miglayout:miglayout-swing:5.3-SNAPSHOT" ) implementation( "com.jgoodies:jgoodies-forms:1.9.0" ) } @@ -49,6 +56,7 @@ tasks { } exclude( "module-info.class" ) + exclude( "META-INF/versions/*/module-info.class" ) // include all dependencies in jar from( { diff --git a/flatlaf-testing/build.gradle.kts b/flatlaf-testing/build.gradle.kts index a820e7cf..b17d94ab 100644 --- a/flatlaf-testing/build.gradle.kts +++ b/flatlaf-testing/build.gradle.kts @@ -18,6 +18,13 @@ plugins { `java-library` } +repositories { + maven { + // for using MigLayout snapshot + url = uri( "https://oss.sonatype.org/content/repositories/snapshots/" ) + } +} + dependencies { implementation( project( ":flatlaf-core" ) ) implementation( project( ":flatlaf-extras" ) ) @@ -26,7 +33,7 @@ dependencies { implementation( project( ":flatlaf-intellij-themes" ) ) implementation( project( ":flatlaf-demo" ) ) - implementation( "com.miglayout:miglayout-swing:5.2" ) + implementation( "com.miglayout:miglayout-swing:5.3-SNAPSHOT" ) implementation( "com.jgoodies:jgoodies-forms:1.9.0" ) implementation( "org.swinglabs.swingx:swingx-all:1.6.5-1" ) implementation( "org.swinglabs.swingx:swingx-beaninfo:1.6.5-1" )