pom.xml
<?xml version="1.0" encoding="UTF-8"?>
<project xmlns="http://maven.apache.org/POM/4.0.0"
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<parent>
<groupId>at.favre.lib</groupId>
<artifactId>common-parent</artifactId>
<version>12</version>
</parent>
<groupId>at.favre.tools</groupId>
<artifactId>dconvert</artifactId>
<version>${raw.version}-alpha7</version>
<properties>
<raw.version>1.0.0</raw.version>
<imageiodep.version>3.4.1</imageiodep.version>
<javafx.version>11.0.2</javafx.version>
</properties>
<repositories>
<repository>
<id>jcenter</id>
<name>jcenter</name>
<url>https://jcenter.bintray.com</url>
<snapshots>
<enabled>false</enabled>
</snapshots>
</repository>
</repositories>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-checkstyle-plugin</artifactId>
<configuration>
<suppressionsLocation>checkstyle-suppressions.xml</suppressionsLocation>
</configuration>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.eluder.coveralls</groupId>
<artifactId>coveralls-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.1</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<createDependencyReducedPom>false</createDependencyReducedPom>
<transformers>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer"/>
<transformer
implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>at.favre.tools.dconvert.Main</mainClass>
<manifestEntries>
<Implementation-Version>${project.version}</Implementation-Version>
</manifestEntries>
</transformer>
<transformer
implementation="org.apache.maven.plugins.shade.resource.DontIncludeResourceTransformer">
<resources>
<resource>.psd</resource>
<resource>ldpi_comparison.png</resource>
<resource>mdpi_comparison.png</resource>
<resource>comparison_icons_48.png</resource>
<resource>comparison_icons_72.png</resource>
<resource>comparison_photo_72.png</resource>
<resource>comparison_photo_144.png</resource>
<resource>screenshot1.jpg</resource>
</resources>
</transformer>
</transformers>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<configuration>
<!-- Travis build workaround -->
<argLine>${argLine} -Xms1024m -Xmx2048m</argLine>
<skipTests>false</skipTests>
</configuration>
</plugin>
<plugin>
<groupId>com.akathist.maven.plugins.launch4j</groupId>
<artifactId>launch4j-maven-plugin</artifactId>
<version>1.7.25</version>
<executions>
<execution>
<id>l4j-gui</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>gui</headerType>
<outfile>target/dconvert-gui.exe</outfile>
<!--<icon>icon.ico</icon>-->
<jar>target/${project.artifactId}-${project.version}.jar</jar>
<errTitle>dconvert</errTitle>
<icon>misc/icon.ico</icon>
<classPath>
<mainClass>at.favre.tools.dconvert.Main</mainClass>
<addDependencies>false</addDependencies>
<preCp>anything</preCp>
</classPath>
<jre>
<minVersion>11</minVersion>
</jre>
<!--<splash>-->
<!--<file>misc/splash.bmp</file>-->
<!--<waitForWindow>false</waitForWindow>-->
<!--<timeout>1</timeout>-->
<!--<timeoutErr>false</timeoutErr>-->
<!--</splash>-->
<versionInfo>
<fileVersion>0.0.0.1</fileVersion>
<txtFileVersion>0.0.0.1</txtFileVersion>
<fileDescription>Scaling and density conversion tool for Android, iOS and the Web
</fileDescription>
<copyright>Patrick Favre-Bulle, 2016</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>${raw.version}</txtProductVersion>
<productName>Multi Platform Density Converter</productName>
<internalName>${project.artifactId}</internalName>
<originalFilename>dconvert-gui.exe</originalFilename>
<language>EN</language>
</versionInfo>
</configuration>
</execution>
<execution>
<id>l4j-clui</id>
<phase>package</phase>
<goals>
<goal>launch4j</goal>
</goals>
<configuration>
<headerType>console</headerType>
<outfile>target/dconvert.exe</outfile>
<!--<icon>icon.ico</icon>-->
<jar>target/${project.artifactId}-${project.version}.jar</jar>
<errTitle>dconvert</errTitle>
<icon>misc/icon_terminal.ico</icon>
<classPath>
<mainClass>at.favre.tools.dconvert.Main</mainClass>
<addDependencies>false</addDependencies>
<preCp>anything</preCp>
</classPath>
<jre>
<minVersion>11</minVersion>
<opts>
<opt>-Djava.endorsed.dirs=./endorsed</opt>
</opts>
</jre>
<versionInfo>
<fileVersion>0.0.0.1</fileVersion>
<txtFileVersion>0.0.0.1</txtFileVersion>
<fileDescription>A tool that enables advanced features through adb
</fileDescription>
<copyright>Patrick Favre-Bulle, 2016</copyright>
<productVersion>1.0.0.0</productVersion>
<txtProductVersion>${raw.version}</txtProductVersion>
<productName>Multi Platform Density Converter</productName>
<internalName>${project.artifactId}</internalName>
<originalFilename>dconvert.exe</originalFilename>
<language>EN</language>
</versionInfo>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<dependencies>
<!-- command line interface -->
<dependency>
<groupId>commons-cli</groupId>
<artifactId>commons-cli</artifactId>
<version>1.4</version>
</dependency>
<!-- hq image scaling -->
<dependency>
<groupId>org.imgscalr</groupId>
<artifactId>imgscalr-lib</artifactId>
<version>4.2</version>
</dependency>
<dependency>
<groupId>net.coobird</groupId>
<artifactId>thumbnailator</artifactId>
<version>0.4.11</version>
</dependency>
<dependency>
<groupId>com.mortennobel</groupId>
<artifactId>java-image-scaling</artifactId>
<version>0.8.6</version>
</dependency>
<!-- native interop (for e.g. win) -->
<dependency>
<groupId>com.nativelibs4java</groupId>
<artifactId>bridj</artifactId>
<version>0.7.0</version>
</dependency>
<!-- supported reading/writing image types -->
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-jpeg</artifactId>
<version>${imageiodep.version}</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-tiff</artifactId>
<version>${imageiodep.version}</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-psd</artifactId>
<version>${imageiodep.version}</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-bmp</artifactId>
<version>${imageiodep.version}</version>
</dependency>
<dependency>
<groupId>com.twelvemonkeys.imageio</groupId>
<artifactId>imageio-batik</artifactId> <!-- svg -->
<version>${imageiodep.version}</version>
</dependency>
<!-- needed for svg rendering -->
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>xmlgraphics-commons</artifactId>
<version>2.6</version>
</dependency>
<dependency>
<groupId>org.apache.xmlgraphics</groupId>
<artifactId>batik-transcoder</artifactId>
<version>1.11</version>
</dependency>
<!-- JavaFX not bundled with JDK anymore -->
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx</artifactId>
<version>${javafx.version}</version>
<type>pom</type>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-base</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-fxml</artifactId>
<version>${javafx.version}</version>
</dependency>
<dependency>
<groupId>org.openjfx</groupId>
<artifactId>javafx-graphics</artifactId>
<version>${javafx.version}</version>
</dependency>
<!-- exclude some libs that are not used -->
<dependency>
<groupId>rhino</groupId>
<artifactId>js</artifactId>
<version>1.5R4.1</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>xalan</groupId>
<artifactId>xalan</artifactId>
<version>2.7.2</version>
<scope>provided</scope>
</dependency>
<!-- test -->
<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.apache.ant</groupId>
<artifactId>ant</artifactId>
<version>1.10.11</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testfx</groupId>
<artifactId>testfx-core</artifactId>
<version>4.0.16-alpha</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testfx</groupId>
<artifactId>testfx-junit</artifactId>
<version>4.0.16-alpha</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.testfx</groupId>
<artifactId>openjfx-monocle</artifactId>
<version>jdk-11+26</version>
<scope>test</scope>
</dependency>
</dependencies>
<scm>
<connection>https://github.com/patrickfav/density-converter.git</connection>
<developerConnection>https://github.com/patrickfav/density-converter.git</developerConnection>
<tag>HEAD</tag>
<url>https://github.com/patrickfav/density-converter</url>
</scm>
<issueManagement>
<system>Github</system>
<url>https://github.com/patrickfav/density-converter/issues</url>
</issueManagement>
<ciManagement>
<system>Travis</system>
<url>https://travis-ci.com/patrickfav/density-converter</url>
</ciManagement>
</project>