Skip to content
Snippets Groups Projects
Select Git revision
  • 953cb38e340f0d55ca76e02ab638221f6e87b007
  • develop default protected
  • master protected
  • feature/scrollbars
  • native-audio
  • v7.3.0
  • v7.2.0
  • v7.1.0
  • v7.0.2
  • v7.0.1
  • v7.0.0
  • v5.0.1
  • v5.1.0
  • v6.1.0
  • v6.0.0
15 results

pom.xml

Blame
  • pom.xml 11.67 KiB
    <?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>de.tobias.playpad</groupId>
            <artifactId>PlayWallDesktop</artifactId>
            <version>7.0.1</version>
        </parent>
    
        <artifactId>PlayWall</artifactId>
    
        <properties>
            <project.main>de.tobias.playpad.PlayPadMain</project.main>
            <project.iconBase>src/main/resources/icon</project.iconBase>
    
            <launch4j-maven-plugin.version>1.7.25</launch4j-maven-plugin.version>
            <appbundle-maven-plugin.version>1.2.0</appbundle-maven-plugin.version>
    
            <project.buildDir>../build/${project.version}</project.buildDir>
            <project.jar>${project.buildDir}/${project.artifactId}.jar</project.jar>
            <project.exe>${project.buildDir}/${project.artifactId}.exe</project.exe>
            <project.app>${project.buildDir}/${project.artifactId}.app</project.app>
            <project.zip>${project.buildDir}/${project.artifactId}.zip</project.zip>
        </properties>
    
        <dependencies>
            <dependency>
                <groupId>de.tobias.playpad</groupId>
                <artifactId>PlayWallCore</artifactId>
                <version>${core.version}</version>
            </dependency>
            <dependency>
                <groupId>de.tobias.playpad</groupId>
                <artifactId>PlayWallComponents</artifactId>
                <version>${components.version}</version>
            </dependency>
    
            <!--Template parsing-->
            <dependency>
                <groupId>org.springframework</groupId>
                <artifactId>spring-expression</artifactId>
                <version>5.1.2.RELEASE</version>
            </dependency>
    
            <!--Testing-->
            <dependency>
                <groupId>org.testfx</groupId>
                <artifactId>testfx-junit</artifactId>
                <version>4.0.15-alpha</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>junit</groupId>
                <artifactId>junit</artifactId>
                <version>4.13.1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.assertj</groupId>
                <artifactId>assertj-core</artifactId>
                <version>3.11.1</version>
                <scope>test</scope>
            </dependency>
            <dependency>
                <groupId>org.testfx</groupId>
                <artifactId>openjfx-monocle</artifactId>
                <version>8u76-b04</version> <!-- jdk-9+181 for Java 9, jdk-11+26 for Java 11 -->
                <scope>test</scope>
            </dependency>
        </dependencies>
    
        <build>
            <resources>
                <resource>
                    <directory>src/main/resources</directory>
                    <filtering>false</filtering>
                    <excludes>
                        <exclude>config/</exclude>
                    </excludes>
                </resource>
                <resource>
                    <directory>src/main/resources/config</directory>
                    <filtering>true</filtering>
                    <targetPath>${project.build.outputDirectory}/config</targetPath>
                </resource>
            </resources>
    
            <plugins>
                <plugin>
                    <groupId>de.thecodelabs</groupId>
                    <artifactId>versionizer-maven-plugin</artifactId>
                    <version>${versionizer-maven-plugin.version}</version>
                    <configuration>
                        <resourceFile>build-app.json</resourceFile>
                    </configuration>
                    <executions>
                        <execution>
                            <id>resource-fill</id>
                            <goals>
                                <goal>resource-fill</goal>
                            </goals>
                            <phase>compile</phase>
                        </execution>
                    </executions>
                </plugin>
    
                <plugin>
                    <groupId>nl.geodienstencentrum.maven</groupId>
                    <artifactId>sass-maven-plugin</artifactId>
                    <version>3.7.2</version>
                    <executions>
                        <execution>
                            <id>translate-css</id>
                            <goals>
                                <goal>update-stylesheets</goal>
                            </goals>
                            <phase>generate-resources</phase>
                            <configuration>
                                <destination>target/classes/style</destination>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
    
                <!--Fat Jar-->
                <plugin>
                    <artifactId>maven-assembly-plugin</artifactId>
                    <configuration>
                        <outputDirectory>../build/${project.version}</outputDirectory>
                        <finalName>${project.artifactId}</finalName>
                        <appendAssemblyId>false</appendAssemblyId>
                        <archive>
                            <manifest>
                                <mainClass>${project.main}</mainClass>
                            </manifest>
                        </archive>
                        <descriptorRefs>
                            <descriptorRef>jar-with-dependencies</descriptorRef>
                        </descriptorRefs>
                    </configuration>
                    <executions>
                        <execution>
                            <id>make-assembly</id> <!-- this is used for inheritance merges -->
                            <phase>package</phase> <!-- bind to the packaging phase -->
                            <goals>
                                <goal>single</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
    
                <!-- LAUNCH4J -->
                <plugin>
                    <groupId>com.akathist.maven.plugins.launch4j</groupId>
                    <artifactId>launch4j-maven-plugin</artifactId>
                    <version>${launch4j-maven-plugin.version}</version>
                    <executions>
                        <execution>
                            <id>l4j-clui</id>
                            <phase>package</phase>
                            <goals>
                                <goal>launch4j</goal>
                            </goals>
                            <configuration>
                                <headerType>gui</headerType>
                                <jar>${project.jar}</jar>
                                <icon>${project.iconBase}.ico</icon>
                                <outfile>${project.exe}</outfile>
                                <classPath>
                                    <mainClass>${project.main}</mainClass>
                                </classPath>
                                <downloadUrl>http://java.com/download</downloadUrl>
                                <jre>
                                    <bundledJre64Bit>false</bundledJre64Bit>
                                    <bundledJreAsFallback>false</bundledJreAsFallback>
                                    <minVersion>1.8.0</minVersion>
                                    <jdkPreference>preferJre</jdkPreference>
                                    <runtimeBits>64/32</runtimeBits>
                                </jre>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
    
                <!--Mac App Creation-->
                <plugin>
                    <groupId>sh.tak.appbundler</groupId>
                    <artifactId>appbundle-maven-plugin</artifactId>
                    <version>${appbundle-maven-plugin.version}</version>
                    <configuration>
                        <mainClass>${project.main}</mainClass>
                        <iconFile>${project.iconBase}.icns</iconFile>
                        <buildDirectory>${project.buildDir}</buildDirectory>
                    </configuration>
                    <executions>
                        <execution>
                            <phase>package</phase>
                            <goals>
                                <goal>bundle</goal>
                            </goals>
                        </execution>
                    </executions>
                </plugin>
    
                <!--Deploy exe, zip-->
                <plugin>
                    <groupId>org.codehaus.mojo</groupId>
                    <artifactId>build-helper-maven-plugin</artifactId>
                    <version>1.10</version>
                    <executions>
                        <execution>
                            <id>attach-artifacts</id>
                            <phase>package</phase>
                            <goals>
                                <goal>attach-artifact</goal>
                            </goals>
                            <configuration>
                                <artifacts>
                                    <artifact>
                                        <file>${project.exe}</file>
                                        <type>exe</type>
                                    </artifact>
                                    <artifact>
                                        <file>${project.zip}</file>
                                        <type>zip</type>
                                    </artifact>
                                </artifacts>
                            </configuration>
                        </execution>
                    </executions>
                </plugin>
            </plugins>
        </build>
    
        <profiles>
            <profile>
                <id>unix</id>
                <activation>
                    <os>
                        <family>unix</family>
                    </os>
                </activation>
                <build>
                    <plugins>
                        <plugin>
                            <artifactId>exec-maven-plugin</artifactId>
                            <groupId>org.codehaus.mojo</groupId>
                            <version>1.6.0</version>
                            <executions>
                                <execution>
                                    <id>Signing App</id>
                                    <phase>package</phase>
                                    <goals>
                                        <goal>exec</goal>
                                    </goals>
                                    <configuration>
                                        <workingDirectory>${project.buildDir}</workingDirectory>
                                        <executable>${basedir}/scripts/sign.sh</executable>
                                    </configuration>
                                </execution>
                            </executions>
                        </plugin>
                    </plugins>
                </build>
            </profile>
        </profiles>
    
    
        <distributionManagement>
            <repository>
                <id>release</id>
                <name>TheCodeLabs-releases</name>
                <url>https://maven.thecodedev.de/artifactory/TheCodeLabs-release</url>
            </repository>
            <snapshotRepository>
                <id>snapshots</id>
                <name>TheCodeLabs-snapshots</name>
                <url>https://maven.thecodedev.de/artifactory/TheCodeLabs-snapshots</url>
            </snapshotRepository>
        </distributionManagement>
    
        <repositories>
            <repository>
                <id>release</id>
                <url>https://maven.thecodedev.de/artifactory/TheCodeLabs-release</url>
                <releases>
                    <enabled>true</enabled>
                </releases>
                <snapshots>
                    <enabled>false</enabled>
                </snapshots>
            </repository>
            <repository>
                <id>snapshots</id>
                <url>https://maven.thecodedev.de/artifactory/TheCodeLabs-snapshots</url>
                <releases>
                    <enabled>false</enabled>
                </releases>
                <snapshots>
                    <enabled>true</enabled>
                </snapshots>
            </repository>
        </repositories>
    </project>