mirror of https://github.com/weisJ/darklaf.git
Browse Source
We add a custom task to compile the module-info with a newer java version. To ensure the module-info is correct we need to compile it together with all other project sources.modulesv2
weisj
3 years ago
25 changed files with 520 additions and 17 deletions
@ -0,0 +1,28 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.annotations.processor { |
||||||
|
requires java.compiler; |
||||||
|
requires darklaf.annotations; |
||||||
|
} |
@ -1,3 +1,4 @@ |
|||||||
plugins { |
plugins { |
||||||
`java-library` |
`java-library` |
||||||
|
`module-info-compile` |
||||||
} |
} |
||||||
|
@ -0,0 +1,27 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.annotations { |
||||||
|
exports com.github.weisj.darklaf.annotations; |
||||||
|
} |
@ -0,0 +1,56 @@ |
|||||||
|
import org.gradle.api.JavaVersion |
||||||
|
import org.gradle.api.Plugin |
||||||
|
import org.gradle.api.Project |
||||||
|
import org.gradle.api.tasks.Copy |
||||||
|
import org.gradle.api.tasks.compile.JavaCompile |
||||||
|
import org.gradle.kotlin.dsl.getValue |
||||||
|
import org.gradle.kotlin.dsl.named |
||||||
|
import org.gradle.kotlin.dsl.provideDelegate |
||||||
|
import org.gradle.kotlin.dsl.registering |
||||||
|
|
||||||
|
open class ModuleInfoExtension { |
||||||
|
var version: JavaVersion = JavaVersion.VERSION_1_9 |
||||||
|
var extraArgs: List<String> = emptyList() |
||||||
|
} |
||||||
|
|
||||||
|
class ModuleInfoCompilePlugin : Plugin<Project> { |
||||||
|
|
||||||
|
override fun apply(target: Project) = target.run { |
||||||
|
val moduleInfoFile = file("src/main/module/module-info.java") |
||||||
|
if (moduleInfoFile.exists()) { |
||||||
|
val infoExtension = target.extensions.create("moduleInfo", ModuleInfoExtension::class.java) |
||||||
|
|
||||||
|
val compileJava = tasks.named<JavaCompile>("compileJava") |
||||||
|
val compileModuleInfoJava by tasks.registering(JavaCompile::class) { |
||||||
|
val javaCompile = compileJava.get() |
||||||
|
classpath = files() |
||||||
|
source("src/main/module/module-info.java") |
||||||
|
source(javaCompile.source) |
||||||
|
destinationDir = buildDir.resolve("classes/module") |
||||||
|
check(infoExtension.version.isJava9Compatible) |
||||||
|
options.compilerArgs.addAll(listOf("--module-path", javaCompile.classpath.asPath)) |
||||||
|
if (infoExtension.extraArgs.isNotEmpty()) { |
||||||
|
options.compilerArgs.addAll(infoExtension.extraArgs) |
||||||
|
sourceCompatibility = infoExtension.version.majorVersion |
||||||
|
targetCompatibility = infoExtension.version.majorVersion |
||||||
|
} else { |
||||||
|
options.compilerArgs.addAll(listOf("--release", infoExtension.version.majorVersion)) |
||||||
|
} |
||||||
|
} |
||||||
|
val copyModuleInfo by tasks.registering(Copy::class) { |
||||||
|
dependsOn(compileModuleInfoJava) |
||||||
|
from(buildDir.resolve("classes/module/module-info.class")) |
||||||
|
into(buildDir.resolve("classes/java/main")) |
||||||
|
} |
||||||
|
compileJava.configure { |
||||||
|
dependsOn(copyModuleInfo) |
||||||
|
taskDependencies.getDependencies(this).forEach { |
||||||
|
if (it.project != this@run || it.name != "copyModuleInfo") { |
||||||
|
compileModuleInfoJava.get().dependsOn(it) |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
} |
||||||
|
|
||||||
|
} |
@ -0,0 +1,135 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.core { |
||||||
|
requires transitive java.desktop; |
||||||
|
requires transitive darklaf.theme; |
||||||
|
requires transitive darklaf.properties; |
||||||
|
requires transitive darklaf.utils; |
||||||
|
|
||||||
|
requires darklaf.compatibility; |
||||||
|
requires darklaf.iconset; |
||||||
|
requires darklaf.nativeutil; |
||||||
|
requires darklaf.platform.base; |
||||||
|
requires darklaf.platform.windows; |
||||||
|
requires darklaf.platform.macos; |
||||||
|
requires swingdsl.laf; |
||||||
|
requires swingdsl.visualPadding; |
||||||
|
|
||||||
|
requires static annotations; |
||||||
|
requires static com.google.auto.service; |
||||||
|
requires static swingx; |
||||||
|
|
||||||
|
uses com.github.weisj.darklaf.theme.Theme; |
||||||
|
|
||||||
|
// Open resource bundles for java.desktop
|
||||||
|
opens com.github.weisj.darklaf.task; |
||||||
|
|
||||||
|
// Open properties to PropertyLoader
|
||||||
|
opens com.github.weisj.darklaf to darklaf.properties; |
||||||
|
opens com.github.weisj.darklaf.platform to darklaf.properties; |
||||||
|
opens com.github.weisj.darklaf.ui to darklaf.properties; |
||||||
|
|
||||||
|
provides com.github.weisj.darklaf.theme.laf.SynthesisedThemedLaf.ThemedLafProvider with |
||||||
|
com.github.weisj.darklaf.synthesised.ThemedDarkLafProvider; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf; |
||||||
|
exports com.github.weisj.darklaf.components; |
||||||
|
exports com.github.weisj.darklaf.components.alignment; |
||||||
|
exports com.github.weisj.darklaf.components.border; |
||||||
|
exports com.github.weisj.darklaf.components.button; |
||||||
|
exports com.github.weisj.darklaf.components.chooser; |
||||||
|
exports com.github.weisj.darklaf.components.color; |
||||||
|
exports com.github.weisj.darklaf.components.help; |
||||||
|
exports com.github.weisj.darklaf.components.iconeditor; |
||||||
|
exports com.github.weisj.darklaf.components.loading; |
||||||
|
exports com.github.weisj.darklaf.components.popup; |
||||||
|
exports com.github.weisj.darklaf.components.renderer; |
||||||
|
exports com.github.weisj.darklaf.components.tabframe; |
||||||
|
exports com.github.weisj.darklaf.components.text; |
||||||
|
exports com.github.weisj.darklaf.components.togglebuttonlist; |
||||||
|
exports com.github.weisj.darklaf.components.tooltip; |
||||||
|
exports com.github.weisj.darklaf.components.tree; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.focus; |
||||||
|
exports com.github.weisj.darklaf.graphics; |
||||||
|
exports com.github.weisj.darklaf.listener; |
||||||
|
exports com.github.weisj.darklaf.settings; |
||||||
|
exports com.github.weisj.darklaf.task; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.ui; |
||||||
|
exports com.github.weisj.darklaf.ui.button; |
||||||
|
exports com.github.weisj.darklaf.ui.colorchooser; |
||||||
|
exports com.github.weisj.darklaf.ui.combobox; |
||||||
|
exports com.github.weisj.darklaf.ui.list; |
||||||
|
exports com.github.weisj.darklaf.ui.progressbar; |
||||||
|
exports com.github.weisj.darklaf.ui.rootpane; |
||||||
|
exports com.github.weisj.darklaf.ui.scrollpane; |
||||||
|
exports com.github.weisj.darklaf.ui.slider; |
||||||
|
exports com.github.weisj.darklaf.ui.spinner; |
||||||
|
exports com.github.weisj.darklaf.ui.splitpane; |
||||||
|
exports com.github.weisj.darklaf.ui.table; |
||||||
|
exports com.github.weisj.darklaf.ui.text; |
||||||
|
exports com.github.weisj.darklaf.ui.togglebutton; |
||||||
|
exports com.github.weisj.darklaf.ui.toolbar; |
||||||
|
exports com.github.weisj.darklaf.ui.tooltip; |
||||||
|
exports com.github.weisj.darklaf.ui.tree; |
||||||
|
|
||||||
|
opens com.github.weisj.darklaf.ui.button; |
||||||
|
opens com.github.weisj.darklaf.ui.cell; |
||||||
|
opens com.github.weisj.darklaf.ui.colorchooser; |
||||||
|
opens com.github.weisj.darklaf.ui.combobox; |
||||||
|
opens com.github.weisj.darklaf.ui.filechooser; |
||||||
|
opens com.github.weisj.darklaf.ui.internalframe; |
||||||
|
opens com.github.weisj.darklaf.ui.label; |
||||||
|
opens com.github.weisj.darklaf.ui.list; |
||||||
|
opens com.github.weisj.darklaf.ui.menu; |
||||||
|
opens com.github.weisj.darklaf.ui.numberingpane; |
||||||
|
opens com.github.weisj.darklaf.ui.optionpane; |
||||||
|
opens com.github.weisj.darklaf.ui.panel; |
||||||
|
opens com.github.weisj.darklaf.ui.popupmenu; |
||||||
|
opens com.github.weisj.darklaf.ui.progressbar; |
||||||
|
opens com.github.weisj.darklaf.ui.rootpane; |
||||||
|
opens com.github.weisj.darklaf.ui.scrollpane; |
||||||
|
opens com.github.weisj.darklaf.ui.separator; |
||||||
|
opens com.github.weisj.darklaf.ui.slider; |
||||||
|
opens com.github.weisj.darklaf.ui.spinner; |
||||||
|
opens com.github.weisj.darklaf.ui.splitbutton; |
||||||
|
opens com.github.weisj.darklaf.ui.splitpane; |
||||||
|
opens com.github.weisj.darklaf.ui.statusbar; |
||||||
|
opens com.github.weisj.darklaf.ui.tabbedpane; |
||||||
|
opens com.github.weisj.darklaf.ui.tabframe; |
||||||
|
opens com.github.weisj.darklaf.ui.table; |
||||||
|
opens com.github.weisj.darklaf.ui.table.header; |
||||||
|
opens com.github.weisj.darklaf.ui.taskpane; |
||||||
|
opens com.github.weisj.darklaf.ui.text; |
||||||
|
opens com.github.weisj.darklaf.ui.titledborder; |
||||||
|
opens com.github.weisj.darklaf.ui.togglebutton; |
||||||
|
opens com.github.weisj.darklaf.ui.togglebutton.checkbox; |
||||||
|
opens com.github.weisj.darklaf.ui.togglebutton.radiobutton; |
||||||
|
opens com.github.weisj.darklaf.ui.togglebutton.tristate; |
||||||
|
opens com.github.weisj.darklaf.ui.toolbar; |
||||||
|
opens com.github.weisj.darklaf.ui.tooltip; |
||||||
|
opens com.github.weisj.darklaf.ui.tree; |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.platform.macos { |
||||||
|
requires transitive darklaf.platform.base; |
||||||
|
requires transitive darklaf.theme; |
||||||
|
|
||||||
|
requires darklaf.nativeutil; |
||||||
|
requires darklaf.utils; |
||||||
|
requires darklaf.properties; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.platform.macos; |
||||||
|
exports com.github.weisj.darklaf.platform.macos.theme; |
||||||
|
} |
@ -0,0 +1,3 @@ |
|||||||
|
jar { |
||||||
|
moduleInfoPath = "src/main/module/module-info.java" |
||||||
|
} |
@ -0,0 +1,30 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.nativeutil { |
||||||
|
requires transitive java.desktop; |
||||||
|
requires transitive java.logging; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.nativeutil; |
||||||
|
} |
@ -1,3 +1,4 @@ |
|||||||
plugins { |
plugins { |
||||||
`java-library` |
`java-library` |
||||||
|
`module-info-compile` |
||||||
} |
} |
||||||
|
@ -0,0 +1,30 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.platform.base { |
||||||
|
requires transitive java.desktop; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.platform.decorations; |
||||||
|
|
||||||
|
} |
@ -0,0 +1,38 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.properties { |
||||||
|
requires transitive java.desktop; |
||||||
|
requires transitive darklaf.utils; |
||||||
|
requires swingdsl.visualPadding; |
||||||
|
requires com.kitfox.svg; |
||||||
|
|
||||||
|
requires static annotations; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.properties; |
||||||
|
exports com.github.weisj.darklaf.properties.parser; |
||||||
|
exports com.github.weisj.darklaf.properties.uiresource; |
||||||
|
exports com.github.weisj.darklaf.properties.color; |
||||||
|
exports com.github.weisj.darklaf.properties.icons; |
||||||
|
} |
@ -0,0 +1,35 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.theme { |
||||||
|
requires transitive java.desktop; |
||||||
|
|
||||||
|
requires darklaf.annotations; |
||||||
|
requires com.google.auto.service; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.theme; |
||||||
|
exports com.github.weisj.darklaf.theme.info; |
||||||
|
exports com.github.weisj.darklaf.theme.event; |
||||||
|
exports com.github.weisj.darklaf.theme.laf; |
||||||
|
} |
@ -1,7 +1,8 @@ |
|||||||
plugins { |
plugins { |
||||||
`java-library` |
`java-library` |
||||||
|
`module-info-compile` |
||||||
} |
} |
||||||
|
|
||||||
dependencies { |
dependencies { |
||||||
implementation(libs.nullabilityAnnotations) |
compileOnly(libs.nullabilityAnnotations) |
||||||
} |
} |
||||||
|
@ -0,0 +1,34 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.utils { |
||||||
|
requires transitive java.desktop; |
||||||
|
requires transitive java.logging; |
||||||
|
|
||||||
|
requires static annotations; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.util; |
||||||
|
exports com.github.weisj.darklaf.util.graphics; |
||||||
|
exports com.github.weisj.darklaf.util.value; |
||||||
|
} |
@ -0,0 +1,34 @@ |
|||||||
|
/* |
||||||
|
* MIT License |
||||||
|
* |
||||||
|
* Copyright (c) 2021 Jannis Weis |
||||||
|
* |
||||||
|
* Permission is hereby granted, free of charge, to any person obtaining a copy |
||||||
|
* of this software and associated documentation files (the "Software"), to deal |
||||||
|
* in the Software without restriction, including without limitation the rights |
||||||
|
* to use, copy, modify, merge, publish, distribute, sublicense, and/or sell |
||||||
|
* copies of the Software, and to permit persons to whom the Software is |
||||||
|
* furnished to do so, subject to the following conditions: |
||||||
|
* |
||||||
|
* The above copyright notice and this permission notice shall be included in all |
||||||
|
* copies or substantial portions of the Software. |
||||||
|
* |
||||||
|
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR |
||||||
|
* IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, |
||||||
|
* FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE |
||||||
|
* AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER |
||||||
|
* LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, |
||||||
|
* OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE |
||||||
|
* SOFTWARE. |
||||||
|
* |
||||||
|
*/ |
||||||
|
module darklaf.platform.windows { |
||||||
|
requires transitive darklaf.platform.base; |
||||||
|
requires transitive darklaf.theme; |
||||||
|
|
||||||
|
requires darklaf.nativeutil; |
||||||
|
requires darklaf.utils; |
||||||
|
requires darklaf.properties; |
||||||
|
|
||||||
|
exports com.github.weisj.darklaf.platform.windows; |
||||||
|
} |
Loading…
Reference in new issue