build.gradle.kts: flatlaf-extras and flatlaf-swingx are now Java modules

flatlaf-jide-oss is not a Java module because jide-oss.jar does not run on the module path (tries to access private Windows LaF classes)
This commit is contained in:
Karl Tauber
2020-05-09 15:32:25 +02:00
parent 2656c2dc40
commit db933fee4f
4 changed files with 72 additions and 0 deletions

View File

@@ -16,6 +16,7 @@
plugins {
`java-library`
`flatlaf-module-info`
`flatlaf-publish`
}
@@ -24,6 +25,10 @@ dependencies {
implementation( "com.formdev:svgSalamander:1.1.2.1" )
}
flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}
java {
withSourcesJar()
withJavadocJar()

View File

@@ -0,0 +1,26 @@
/*
* Copyright 2020 FormDev Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Karl Tauber
*/
module com.formdev.flatlaf.extras {
requires java.desktop;
requires static com.kitfox.svg; // optional at runtime
requires com.formdev.flatlaf;
exports com.formdev.flatlaf.extras;
}

View File

@@ -16,6 +16,7 @@
plugins {
`java-library`
`flatlaf-module-info`
`flatlaf-publish`
}
@@ -24,6 +25,10 @@ dependencies {
implementation( "org.swinglabs.swingx:swingx-all:1.6.5-1" )
}
flatlafModuleInfo {
dependsOn( ":flatlaf-core:jar" )
}
java {
withSourcesJar()
withJavadocJar()

View File

@@ -0,0 +1,36 @@
/*
* Copyright 2020 FormDev Software GmbH
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* https://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
/**
* @author Karl Tauber
*/
module com.formdev.flatlaf.swingx {
requires java.desktop;
requires swingx.all;
requires com.formdev.flatlaf;
exports com.formdev.flatlaf.swingx;
exports com.formdev.flatlaf.swingx.ui;
// this allows com.formdev.flatlaf.FlatDefaultsAddon to read .properties files
opens com.formdev.flatlaf.swingx
to com.formdev.flatlaf;
provides com.formdev.flatlaf.FlatDefaultsAddon
with com.formdev.flatlaf.swingx.FlatSwingXDefaultsAddon;
provides org.jdesktop.swingx.plaf.LookAndFeelAddons
with com.formdev.flatlaf.swingx.FlatLookAndFeelAddons;
}