Skip to content

Commit

Permalink
Initial ivy support (wip)
Browse files Browse the repository at this point in the history
  • Loading branch information
tresf committed Nov 13, 2023
1 parent 444bd83 commit a05403a
Show file tree
Hide file tree
Showing 68 changed files with 355 additions and 311 deletions.
4 changes: 3 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
@@ -1,10 +1,12 @@
/out/
/js/node_modules
/lib/javafx*
/deps/*
!/deps/manual/
/.idea/workspace.xml
/.idea/misc.xml
/.idea/uiDesigner.xml
/.idea/compiler.xml
/reports/
/fx.zip
/README.md
.DS_Store
Expand Down
6 changes: 0 additions & 6 deletions .idea/runConfigurations/download_javafx.xml

This file was deleted.

8 changes: 0 additions & 8 deletions .idea/startup.xml

This file was deleted.

33 changes: 10 additions & 23 deletions .idea/tray.iml

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

2 changes: 2 additions & 0 deletions ant/apple/installer.xml
Original file line number Diff line number Diff line change
Expand Up @@ -303,6 +303,8 @@
<include name="**/darwin-aarch64/*" if="target.arch.aarch64"/> <!-- jna/hid4java -->
<include name="**/osx-aarch64/*" if="target.arch.aarch64"/> <!-- usb4java -->
<include name="**/osx_arm64/*" if="target.arch.aarch64"/> <!-- jssc -->
<!--javafx-->
<include name="*.dylib"/>
</fileset>
</copy>
</target>
Expand Down
21 changes: 21 additions & 0 deletions ant/deps.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
# Dependencies
jetty.version=10.0.16
jna.version=5.13.0
log4j.version=2.21.1
pdfbox.version=2.0.30
twelvemonkeys.version=3.10.1
bouncycastle.version=1.76
usb4java.version=1.2.0
hid4java.version=0.7.0
purejavahidapi.version=0.0.10
javasemver.version=0.9.0
jettison.version=1.5.4
jssc.version=2.9.5
jaiimageio.version=1.4.0
icu4j.version=74.1
javafx.version=19.0.2.1
javafx.monocle=true

# General configuration
ivy.report.todir=${basedir}/reports
# ivy.clean.cache=true
193 changes: 193 additions & 0 deletions ant/ivy.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,193 @@
<ivy-module version="2.0" xmlns:m="antlib:org.apache.ivy.ant">
<info organisation="io.qz" module="qz-tray"/>
<dependencies>
<!-- Core -->
<dependency name="jna-platform" org="net.java.dev.jna" conf="*->default" rev="${jna.version}"/>
<dependency name="jna" org="net.java.dev.jna" conf="*->default" rev="${jna.version}"/>
<dependency name="bcprov-jdk18on" org="org.bouncycastle" conf="*->default" rev="${bouncycastle.version}"/>
<dependency name="bcpkix-jdk18on" org="org.bouncycastle" conf="*->default" rev="${bouncycastle.version}"/>
<dependency name="java-semver" org="com.github.zafarkhaja" conf="*->default" rev="${javasemver.version}">
<!-- Skip, need 0.10.0-SNAPSHOT -->
<exclude name="*"/>
</dependency>

<!-- Websockets -->
<dependency name="jettison" org="org.codehaus.jettison" conf="*->default" rev="${jettison.version}">
<!-- FIXME: Skip, currently 1.3.3-SNAPSHOT needs testing -->
<exclude name="*"/>
</dependency>

<dependency name="jakarta.websocket-api" org="jakarta.websocket" conf="*->default"
rev="2.1.1">
<!-- FIXME: Skip, currently 1.1 needs testing -->
<exclude name="*"/>
</dependency>
<dependency name="javax.websocket-api" org="javax.websocket" conf="*->default"
rev="1.1"/>
<!-- FIXME: Replace with jakarta above? -->

<dependency name="jetty-servlet-api" org="org.eclipse.jetty.toolchain" conf="*->default"
rev="4.0.6"/>

<!-- Jetty -->
<dependency name="jetty-client" org="org.eclipse.jetty" conf="*->default" rev="${jetty.version}"/>
<dependency name="jetty-http" org="org.eclipse.jetty" conf="*->default" rev="${jetty.version}"/>
<dependency name="jetty-io" org="org.eclipse.jetty" conf="*->default" rev="${jetty.version}"/>
<dependency name="jetty-security" org="org.eclipse.jetty" conf="*->default" rev="${jetty.version}"/>
<dependency name="jetty-server" org="org.eclipse.jetty" conf="*->default" rev="${jetty.version}"/>
<dependency name="jetty-servlet" org="org.eclipse.jetty" conf="*->default" rev="${jetty.version}"/>
<dependency name="jetty-util" org="org.eclipse.jetty" conf="*->default" rev="${jetty.version}"/>

<!-- Jetty Websocket -->
<dependency name="websocket-core-client" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>
<dependency name="websocket-core-common" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>
<dependency name="websocket-core-server" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>
<dependency name="websocket-jetty-api" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>
<dependency name="websocket-jetty-client" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>
<dependency name="websocket-jetty-common" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>
<dependency name="websocket-jetty-server" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>
<dependency name="websocket-servlet" org="org.eclipse.jetty.websocket" conf="*->default" rev="${jetty.version}"/>

<!-- Apache Commons -->
<dependency name="commons-codec" org="commons-codec" conf="*->default"
rev="1.15">
</dependency>
<dependency name="commons-io" org="commons-io" conf="*->default"
rev="2.11.0">
</dependency>
<dependency name="commons-pool2" org="org.apache.commons" conf="*->default"
rev="2.11.1">
</dependency>
<dependency name="not-going-to-be-commons-ssl" org="com.narupley" conf="*->default"
rev="0.3.20">
<exclude name="bcprov-jdk15on"/>
</dependency>

<!-- Communications -->
<dependency name="usb-api" org="javax.usb" conf="*->default" rev="1.0.2"/>
<dependency name="usb4java" org="org.usb4java" conf="*->default" rev="${usb4java.version}"/>
<dependency name="usb4java-javax" org="org.usb4java" conf="*->default" rev="${usb4java.version}"/>
<dependency name="libusb4java" org="org.usb4java" rev="1.2.0">
<artifact name="libusb4java" type="jar" m:classifier="linux-arm"/>
<artifact name="libusb4java" type="jar" m:classifier="linux-x86_64"/>
<artifact name="libusb4java" type="jar" m:classifier="linux-x86"/>
<artifact name="libusb4java" type="jar" m:classifier="osx-x86_64"/>
<artifact name="libusb4java" type="jar" m:classifier="osx-x86"/>
<artifact name="libusb4java" type="jar" m:classifier="windows-x86_64"/>
<artifact name="libusb4java" type="jar" m:classifier="windows-x86"/>
</dependency>

<dependency name="purejavahidapi" org="nyholku" conf="*->default" rev="${purejavahidapi.version}">
<exclude name="jna"/>
<!-- Skip, need 0.0.10-SNAPSHOT -->
<exclude name="*"/>
</dependency>
<dependency name="hid4java" org="org.hid4java" conf="*->default" rev="${hid4java.version}">
<exclude name="jna"/>
<!-- Skip, need 0.7.2-SNAPSHOT -->
<exclude name="*"/>
</dependency>
<dependency name="jssc" org="io.github.java-native" conf="*->default" rev="${jssc.version}">
<exclude name="jna"/>
<!-- Skip, need 2.9.6-SNAPSHOT -->
<exclude name="*"/>
</dependency>
<!-- Theming -->
<dependency name="darcula-bobbylight" org="com.bulenkov.darcula" conf="*->default" rev="0.0.0">
<!-- Skip, missing -->
<exclude name="*"/>
</dependency>

<!-- Windows Installer -->
<dependency name="mslinks" org="mslinks" conf="*->default" rev="1.1.0">
<!-- Skip, missing -->
<exclude name="*"/>
</dependency>

<!-- Charsets -->
<dependency name="icu4j" org="com.ibm.icu" conf="*->default" rev="${icu4j.version}"/>
<dependency name="icu4j-charset" org="com.ibm.icu" conf="*->default" rev="${icu4j.version}"/>
<dependency name="TCVN-3" org="com.ibm.icu" conf="*->default" rev="${icu4j.version}">
<!-- Skip, missing, send upstream? -->
<exclude name="*"/>
</dependency>

<!-- Imaging -->
<dependency name="common-image" org="com.twelvemonkeys.common" conf="*->default" rev="${twelvemonkeys.version}"/>
<dependency name="common-io" org="com.twelvemonkeys.common" conf="*->default" rev="${twelvemonkeys.version}"/>
<dependency name="common-lang" org="com.twelvemonkeys.common" conf="*->default" rev="${twelvemonkeys.version}"/>
<dependency name="imageio-core" org="com.twelvemonkeys.imageio" conf="*->default" rev="${twelvemonkeys.version}"/>
<dependency name="imageio-jpeg" org="com.twelvemonkeys.imageio" conf="*->default" rev="${twelvemonkeys.version}"/>
<dependency name="imageio-metadata" org="com.twelvemonkeys.imageio" conf="*->default" rev="${twelvemonkeys.version}"/>

<dependency name="jai-imageio-core" org="com.github.jai-imageio" conf="*->default" rev="${jaiimageio.version}"/>
<dependency name="jai-imageio-jpeg2000" org="com.github.jai-imageio" conf="*->default" rev="${jaiimageio.version}"/>

<!-- Logging -->
<dependency name="log4j-core" org="org.apache.logging.log4j" conf="*->default" rev="${log4j.version}"/>
<dependency name="log4j-api" org="org.apache.logging.log4j" conf="*->default" rev="${log4j.version}"/>

<!-- Printing -->
<dependency name="pdfbox" org="org.apache.pdfbox" conf="*->default" rev="${pdfbox.version}">
<exclude name="log4j-core"/>
<exclude name="log4j-api"/>
<exclude name="commons-httpclient"/>
<exclude name="bcprov-jdk15on"/>
</dependency>

<!-- javafx -->
<dependency name="javafx-controls" org="org.openjfx" conf="*->default" rev="${javafx.version}"/>
<dependency name="javafx-fxml" org="org.openjfx" conf="*->default" rev="${javafx.version}"/>
<dependency name="javafx-graphics" org="org.openjfx" conf="*->default" rev="${javafx.version}"/>
<dependency name="javafx-base" org="org.openjfx" conf="*->default" rev="${javafx.version}"/>
<dependency name="javafx-media" org="org.openjfx" conf="*->default" rev="${javafx.version}"/>
<dependency name="javafx-swing" org="org.openjfx" conf="*->default" rev="${javafx.version}"/>
<dependency name="javafx-web" org="org.openjfx" conf="*->default" rev="${javafx.version}"/>

<!-- host javafx natives -->
<dependency org="org.openjfx" name="javafx-controls" rev="${javafx.version}">
<artifact name="javafx-controls" type="jar" m:classifier="${host.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-fxml" rev="${javafx.version}">
<artifact name="javafx-fxml" type="jar" m:classifier="${host.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-graphics" rev="${javafx.version}">
<artifact name="javafx-graphics" type="jar" m:classifier="${host.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-base" rev="${javafx.version}">
<artifact name="javafx-base" type="jar" m:classifier="${host.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-media" rev="${javafx.version}">
<artifact name="javafx-media" type="jar" m:classifier="${host.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-swing" rev="${javafx.version}">
<artifact name="javafx-swing" type="jar" m:classifier="${host.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-web" rev="${javafx.version}">
<artifact name="javafx-web" type="jar" m:classifier="${host.javafx.platform}"/>
</dependency>

<!-- target javafx natives -->
<dependency org="org.openjfx" name="javafx-controls" rev="${javafx.version}">
<artifact name="javafx-controls" type="jar" m:classifier="${target.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-fxml" rev="${javafx.version}">
<artifact name="javafx-fxml" type="jar" m:classifier="${target.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-graphics" rev="${javafx.version}">
<artifact name="javafx-graphics" type="jar" m:classifier="${target.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-base" rev="${javafx.version}">
<artifact name="javafx-base" type="jar" m:classifier="${target.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-media" rev="${javafx.version}">
<artifact name="javafx-media" type="jar" m:classifier="${target.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-swing" rev="${javafx.version}">
<artifact name="javafx-swing" type="jar" m:classifier="${target.javafx.platform}"/>
</dependency>
<dependency org="org.openjfx" name="javafx-web" rev="${javafx.version}">
<artifact name="javafx-web" type="jar" m:classifier="${target.javafx.platform}"/>
</dependency>
</dependencies>
</ivy-module>
Loading

0 comments on commit a05403a

Please sign in to comment.