mirror of
https://github.com/cryptomator/cryptomator.git
synced 2026-05-21 12:11:28 +00:00
dependency injection. Replaced static references to MainApplication in the context of closing resources with an injected DeferredCloser. Using controller factory for dependency injection into FX controllers.
133 lines
3.9 KiB
XML
133 lines
3.9 KiB
XML
<?xml version="1.0" encoding="UTF-8"?>
|
|
<!--
|
|
Copyright (c) 2014 Sebastian Stenzel
|
|
This file is licensed under the terms of the MIT license.
|
|
See the LICENSE.txt file for more info.
|
|
|
|
Contributors:
|
|
Sebastian Stenzel - initial API and implementation
|
|
-->
|
|
<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>org.cryptomator</groupId>
|
|
<artifactId>main</artifactId>
|
|
<version>0.5.0-SNAPSHOT</version>
|
|
</parent>
|
|
<artifactId>ui</artifactId>
|
|
<name>Cryptomator GUI</name>
|
|
|
|
<properties>
|
|
<javafx.application.name>Cryptomator</javafx.application.name>
|
|
<exec.mainClass>org.cryptomator.ui.Main</exec.mainClass>
|
|
<javafx.tools.ant.jar>${java.home}/../lib/ant-javafx.jar</javafx.tools.ant.jar>
|
|
<controlsfx.version>8.20.8</controlsfx.version>
|
|
</properties>
|
|
|
|
<dependencies>
|
|
<dependency>
|
|
<groupId>org.cryptomator</groupId>
|
|
<artifactId>core</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.cryptomator</groupId>
|
|
<artifactId>crypto-aes</artifactId>
|
|
</dependency>
|
|
|
|
<!-- JSON -->
|
|
<dependency>
|
|
<groupId>com.fasterxml.jackson.core</groupId>
|
|
<artifactId>jackson-databind</artifactId>
|
|
</dependency>
|
|
|
|
<!-- apache commons -->
|
|
<dependency>
|
|
<groupId>commons-io</groupId>
|
|
<artifactId>commons-io</artifactId>
|
|
</dependency>
|
|
<dependency>
|
|
<groupId>org.apache.commons</groupId>
|
|
<artifactId>commons-lang3</artifactId>
|
|
</dependency>
|
|
|
|
<!-- UI
|
|
<dependency>
|
|
<groupId>org.controlsfx</groupId>
|
|
<artifactId>controlsfx</artifactId>
|
|
<version>${controlsfx.version}</version>
|
|
</dependency>
|
|
|
|
<dependency>
|
|
<groupId>com.github.axet</groupId>
|
|
<artifactId>desktop</artifactId>
|
|
<version>2.2.3</version>
|
|
</dependency> -->
|
|
|
|
<dependency>
|
|
<groupId>com.google.inject</groupId>
|
|
<artifactId>guice</artifactId>
|
|
<version>3.0</version>
|
|
</dependency>
|
|
</dependencies>
|
|
|
|
<build>
|
|
<plugins>
|
|
<plugin>
|
|
<artifactId>maven-assembly-plugin</artifactId>
|
|
<executions>
|
|
<execution>
|
|
<id>make-assembly</id>
|
|
<phase>package</phase>
|
|
<goals>
|
|
<goal>single</goal>
|
|
</goals>
|
|
</execution>
|
|
</executions>
|
|
<configuration>
|
|
<descriptorRefs>
|
|
<descriptorRef>jar-with-dependencies</descriptorRef>
|
|
</descriptorRefs>
|
|
<finalName>${javafx.application.name}</finalName>
|
|
<appendAssemblyId>false</appendAssemblyId>
|
|
<archive>
|
|
<manifestEntries>
|
|
<Main-Class>${exec.mainClass}</Main-Class>
|
|
</manifestEntries>
|
|
</archive>
|
|
</configuration>
|
|
</plugin>
|
|
|
|
<plugin>
|
|
<artifactId>maven-antrun-plugin</artifactId>
|
|
<version>1.7</version>
|
|
<executions>
|
|
<execution>
|
|
<id>create-deployment-bundle</id>
|
|
<phase>install</phase>
|
|
<goals>
|
|
<goal>run</goal>
|
|
</goals>
|
|
<configuration>
|
|
<target xmlns:fx="javafx:com.sun.javafx.tools.ant">
|
|
<taskdef uri="javafx:com.sun.javafx.tools.ant" resource="com/sun/javafx/tools/ant/antlib.xml" classpath="${project.basedir}:${javafx.tools.ant.jar}" />
|
|
|
|
<fx:deploy nativeBundles="all" outdir="${project.build.directory}/dist" outfile="${project.build.finalName}" verbose="false">
|
|
<fx:application name="${javafx.application.name}" version="${project.version}" mainClass="${exec.mainClass}" />
|
|
<fx:info title="${javafx.application.name}" vendor="cryptomator.org" copyright="cryptomator.org" license="MIT" category="Utility" />
|
|
<fx:platform javafx="2.2+" j2se="8.0" />
|
|
<fx:resources>
|
|
<fx:fileset dir="${project.build.directory}" includes="${javafx.application.name}.jar" />
|
|
</fx:resources>
|
|
<fx:permissions elevated="false" />
|
|
<fx:preferences install="true" />
|
|
</fx:deploy>
|
|
</target>
|
|
</configuration>
|
|
</execution>
|
|
</executions>
|
|
</plugin>
|
|
|
|
</plugins>
|
|
</build>
|
|
</project>
|