From af915ad31f2f8aca52105433a5227bbfc7482372 Mon Sep 17 00:00:00 2001 From: Robinson Date: Mon, 13 Dec 2021 09:27:06 -0700 Subject: [PATCH] WIP JPMS multi jar build --- src9/dorkbox/systemTray/EmptyClass.java | 24 +++++++++++++++++ src9/dorkbox/systemTray/peer/EmptyClass.java | 24 +++++++++++++++++ src9/dorkbox/systemTray/util/EmptyClass.java | 24 +++++++++++++++++ src9/module-info.java | 27 ++++++++++++++++++++ 4 files changed, 99 insertions(+) create mode 100644 src9/dorkbox/systemTray/EmptyClass.java create mode 100644 src9/dorkbox/systemTray/peer/EmptyClass.java create mode 100644 src9/dorkbox/systemTray/util/EmptyClass.java create mode 100644 src9/module-info.java diff --git a/src9/dorkbox/systemTray/EmptyClass.java b/src9/dorkbox/systemTray/EmptyClass.java new file mode 100644 index 0000000..43633c4 --- /dev/null +++ b/src9/dorkbox/systemTray/EmptyClass.java @@ -0,0 +1,24 @@ +/* + * Copyright 2021 dorkbox, llc + * + * 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 + * + * http://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. + */ + +package dorkbox.systemTray; + +/** + * Required for intellij to not complain regarding `module-info` for a multi-release jar. + * This file is completely ignored by the gradle build process + */ +public +class EmptyClass {} diff --git a/src9/dorkbox/systemTray/peer/EmptyClass.java b/src9/dorkbox/systemTray/peer/EmptyClass.java new file mode 100644 index 0000000..749e35b --- /dev/null +++ b/src9/dorkbox/systemTray/peer/EmptyClass.java @@ -0,0 +1,24 @@ +/* + * Copyright 2021 dorkbox, llc + * + * 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 + * + * http://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. + */ + +package dorkbox.systemTray.peer; + +/** + * Required for intellij to not complain regarding `module-info` for a multi-release jar. + * This file is completely ignored by the gradle build process + */ +public +class EmptyClass {} diff --git a/src9/dorkbox/systemTray/util/EmptyClass.java b/src9/dorkbox/systemTray/util/EmptyClass.java new file mode 100644 index 0000000..43379ce --- /dev/null +++ b/src9/dorkbox/systemTray/util/EmptyClass.java @@ -0,0 +1,24 @@ +/* + * Copyright 2021 dorkbox, llc + * + * 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 + * + * http://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. + */ + +package dorkbox.systemTray.util; + +/** + * Required for intellij to not complain regarding `module-info` for a multi-release jar. + * This file is completely ignored by the gradle build process + */ +public +class EmptyClass {} diff --git a/src9/module-info.java b/src9/module-info.java new file mode 100644 index 0000000..baa0539 --- /dev/null +++ b/src9/module-info.java @@ -0,0 +1,27 @@ +module dorkbox.systemtray { + exports dorkbox.systemTray; + exports dorkbox.systemTray.peer; + exports dorkbox.systemTray.util; + + requires dorkbox.executor; + requires dorkbox.updates; + requires dorkbox.utilities; + + requires org.slf4j; + + requires com.sun.jna; + requires com.sun.jna.platform; + + // when running javaFX + // requires static javafx.graphics; + + // when running SWT + // 32-bit support was dropped by eclipse since 4.10 (3.108.0 is the oldest that is 32 bit) + // requires static org.eclipse.swt.gtk.linux.x86_64; + // requires static org.eclipse.swt.win32.win32.x86_64; + // requires static org.eclipse.swt.cocoa.macosx.x86_64; + + requires java.desktop; + requires java.base; + requires kotlin.stdlib; +}