Moved build files from src/build to ./build; cleaned up pom.xml a little
This commit is contained in:
88
pom.xml
88
pom.xml
@@ -7,12 +7,10 @@
|
||||
<groupId>tech.bitgoblin</groupId>
|
||||
<artifactId>dragoon</artifactId>
|
||||
<version>0.3.13</version>
|
||||
|
||||
<name>Dragoon</name>
|
||||
<url>https://www.bitgoblin.tech</url>
|
||||
<description>Automated video transcoder service.</description>
|
||||
<inceptionYear>2022</inceptionYear>
|
||||
|
||||
<organization>
|
||||
<name>Bit Goblin</name>
|
||||
<url>https://www.bitgoblin.tech</url>
|
||||
@@ -37,8 +35,8 @@
|
||||
|
||||
<properties>
|
||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||
<maven.compiler.source>17</maven.compiler.source>
|
||||
<maven.compiler.target>17</maven.compiler.target>
|
||||
<maven.compiler.source>21</maven.compiler.source>
|
||||
<maven.compiler.target>21</maven.compiler.target>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
@@ -72,60 +70,9 @@
|
||||
|
||||
<build>
|
||||
<plugins>
|
||||
<!-- clean lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#clean_Lifecycle -->
|
||||
<plugin>
|
||||
<artifactId>maven-clean-plugin</artifactId>
|
||||
<version>3.1.0</version>
|
||||
</plugin>
|
||||
<!-- default lifecycle, jar packaging: see https://maven.apache.org/ref/current/maven-core/default-bindings.html#Plugin_bindings_for_jar_packaging -->
|
||||
<plugin>
|
||||
<artifactId>maven-resources-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-compiler-plugin</artifactId>
|
||||
<version>3.8.0</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-surefire-plugin</artifactId>
|
||||
<version>2.22.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<configuration>
|
||||
<!-- DO NOT include log4j.properties file in your Jar -->
|
||||
<excludes>
|
||||
<exclude>**/log4j.properties</exclude>
|
||||
</excludes>
|
||||
<archive>
|
||||
<manifest>
|
||||
<!-- Jar file entry point -->
|
||||
<mainClass>tech.bitgoblin.App</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-assembly-plugin</artifactId>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>single</goal>
|
||||
</goals>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifest>
|
||||
<mainClass>tech.bitgoblin.App</mainClass>
|
||||
</manifest>
|
||||
</archive>
|
||||
<descriptorRefs>
|
||||
<descriptorRef>jar-with-dependencies</descriptorRef>
|
||||
</descriptorRefs>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.aerse.maven</groupId>
|
||||
@@ -143,17 +90,17 @@
|
||||
<configuration>
|
||||
<unixUserId>dragoon</unixUserId>
|
||||
<unixGroupId>dragoon</unixGroupId>
|
||||
<debBaseDir>${project.basedir}/src/build/deb</debBaseDir>
|
||||
<debBaseDir>${project.basedir}/build/deb</debBaseDir>
|
||||
<installDir>/opt</installDir>
|
||||
<osDependencies>
|
||||
<openjdk-17-jre></openjdk-17-jre>
|
||||
<openjdk-21-jre></openjdk-21-jre>
|
||||
<ffmpeg></ffmpeg>
|
||||
</osDependencies>
|
||||
<javaServiceWrapper>false</javaServiceWrapper>
|
||||
<generateVersion>false</generateVersion>
|
||||
<fileSets>
|
||||
<fileSet>
|
||||
<source>${basedir}/src/build/deb</source>
|
||||
<source>${basedir}/build/deb</source>
|
||||
<target>/</target>
|
||||
</fileSet>
|
||||
<fileSet>
|
||||
@@ -181,7 +128,7 @@
|
||||
<icon>src/main/resources/icon.gif</icon>
|
||||
<packager>Bit Goblin</packager>
|
||||
<prefix>/opt</prefix>
|
||||
<changelogFile>${project.basedir}/src/build/changelog.txt</changelogFile>
|
||||
<changelogFile>${project.basedir}/build/changelog.txt</changelogFile>
|
||||
<targetOs>${os.name}</targetOs>
|
||||
<mappings>
|
||||
<mapping>
|
||||
@@ -208,7 +155,7 @@
|
||||
<groupname>dragoon</groupname>
|
||||
<sources>
|
||||
<source>
|
||||
<location>${basedir}/src/build/deb/opt/dragoon/log4j2.xml</location>
|
||||
<location>${basedir}/build/deb/opt/dragoon/log4j2.xml</location>
|
||||
</source>
|
||||
</sources>
|
||||
</mapping>
|
||||
@@ -220,7 +167,7 @@
|
||||
<groupname>dragoon</groupname>
|
||||
<sources>
|
||||
<source>
|
||||
<location>${project.basedir}/src/build/deb/etc/dragoon</location>
|
||||
<location>${project.basedir}/build/deb/etc/dragoon</location>
|
||||
</source>
|
||||
</sources>
|
||||
</mapping>
|
||||
@@ -231,38 +178,25 @@
|
||||
<groupname>root</groupname>
|
||||
<sources>
|
||||
<source>
|
||||
<location>${project.basedir}/src/build/deb/etc/systemd/system/dragoon.service</location>
|
||||
<location>${project.basedir}/build/deb/etc/systemd/system/dragoon.service</location>
|
||||
</source>
|
||||
</sources>
|
||||
</mapping>
|
||||
</mappings>
|
||||
<requires>
|
||||
<require>java-17-openjdk</require>
|
||||
<require>java-21-openjdk</require>
|
||||
<require>ffmpeg-free</require>
|
||||
</requires>
|
||||
<preinstallScriptlet>
|
||||
<script>echo "installing ${project.name} now"</script>
|
||||
</preinstallScriptlet>
|
||||
<postinstallScriptlet>
|
||||
<scriptFile>src/build/scripts/postinstall.sh</scriptFile>
|
||||
<scriptFile>build/scripts/postinstall.sh</scriptFile>
|
||||
<fileEncoding>utf-8</fileEncoding>
|
||||
<filter>true</filter>
|
||||
</postinstallScriptlet>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-install-plugin</artifactId>
|
||||
<version>2.5.2</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-deploy-plugin</artifactId>
|
||||
<version>2.8.2</version>
|
||||
</plugin>
|
||||
<!-- site lifecycle, see https://maven.apache.org/ref/current/maven-core/lifecycles.html#site_Lifecycle -->
|
||||
<plugin>
|
||||
<artifactId>maven-site-plugin</artifactId>
|
||||
<version>3.7.1</version>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||
<version>3.0.0</version>
|
||||
|
||||
Reference in New Issue
Block a user