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>
|
<groupId>tech.bitgoblin</groupId>
|
||||||
<artifactId>dragoon</artifactId>
|
<artifactId>dragoon</artifactId>
|
||||||
<version>0.3.13</version>
|
<version>0.3.13</version>
|
||||||
|
|
||||||
<name>Dragoon</name>
|
<name>Dragoon</name>
|
||||||
<url>https://www.bitgoblin.tech</url>
|
<url>https://www.bitgoblin.tech</url>
|
||||||
<description>Automated video transcoder service.</description>
|
<description>Automated video transcoder service.</description>
|
||||||
<inceptionYear>2022</inceptionYear>
|
<inceptionYear>2022</inceptionYear>
|
||||||
|
|
||||||
<organization>
|
<organization>
|
||||||
<name>Bit Goblin</name>
|
<name>Bit Goblin</name>
|
||||||
<url>https://www.bitgoblin.tech</url>
|
<url>https://www.bitgoblin.tech</url>
|
||||||
@@ -37,8 +35,8 @@
|
|||||||
|
|
||||||
<properties>
|
<properties>
|
||||||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
|
||||||
<maven.compiler.source>17</maven.compiler.source>
|
<maven.compiler.source>21</maven.compiler.source>
|
||||||
<maven.compiler.target>17</maven.compiler.target>
|
<maven.compiler.target>21</maven.compiler.target>
|
||||||
</properties>
|
</properties>
|
||||||
|
|
||||||
<dependencies>
|
<dependencies>
|
||||||
@@ -72,60 +70,9 @@
|
|||||||
|
|
||||||
<build>
|
<build>
|
||||||
<plugins>
|
<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>
|
<plugin>
|
||||||
<artifactId>maven-jar-plugin</artifactId>
|
<artifactId>maven-jar-plugin</artifactId>
|
||||||
<version>3.0.2</version>
|
<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>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>com.aerse.maven</groupId>
|
<groupId>com.aerse.maven</groupId>
|
||||||
@@ -143,17 +90,17 @@
|
|||||||
<configuration>
|
<configuration>
|
||||||
<unixUserId>dragoon</unixUserId>
|
<unixUserId>dragoon</unixUserId>
|
||||||
<unixGroupId>dragoon</unixGroupId>
|
<unixGroupId>dragoon</unixGroupId>
|
||||||
<debBaseDir>${project.basedir}/src/build/deb</debBaseDir>
|
<debBaseDir>${project.basedir}/build/deb</debBaseDir>
|
||||||
<installDir>/opt</installDir>
|
<installDir>/opt</installDir>
|
||||||
<osDependencies>
|
<osDependencies>
|
||||||
<openjdk-17-jre></openjdk-17-jre>
|
<openjdk-21-jre></openjdk-21-jre>
|
||||||
<ffmpeg></ffmpeg>
|
<ffmpeg></ffmpeg>
|
||||||
</osDependencies>
|
</osDependencies>
|
||||||
<javaServiceWrapper>false</javaServiceWrapper>
|
<javaServiceWrapper>false</javaServiceWrapper>
|
||||||
<generateVersion>false</generateVersion>
|
<generateVersion>false</generateVersion>
|
||||||
<fileSets>
|
<fileSets>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
<source>${basedir}/src/build/deb</source>
|
<source>${basedir}/build/deb</source>
|
||||||
<target>/</target>
|
<target>/</target>
|
||||||
</fileSet>
|
</fileSet>
|
||||||
<fileSet>
|
<fileSet>
|
||||||
@@ -181,7 +128,7 @@
|
|||||||
<icon>src/main/resources/icon.gif</icon>
|
<icon>src/main/resources/icon.gif</icon>
|
||||||
<packager>Bit Goblin</packager>
|
<packager>Bit Goblin</packager>
|
||||||
<prefix>/opt</prefix>
|
<prefix>/opt</prefix>
|
||||||
<changelogFile>${project.basedir}/src/build/changelog.txt</changelogFile>
|
<changelogFile>${project.basedir}/build/changelog.txt</changelogFile>
|
||||||
<targetOs>${os.name}</targetOs>
|
<targetOs>${os.name}</targetOs>
|
||||||
<mappings>
|
<mappings>
|
||||||
<mapping>
|
<mapping>
|
||||||
@@ -208,7 +155,7 @@
|
|||||||
<groupname>dragoon</groupname>
|
<groupname>dragoon</groupname>
|
||||||
<sources>
|
<sources>
|
||||||
<source>
|
<source>
|
||||||
<location>${basedir}/src/build/deb/opt/dragoon/log4j2.xml</location>
|
<location>${basedir}/build/deb/opt/dragoon/log4j2.xml</location>
|
||||||
</source>
|
</source>
|
||||||
</sources>
|
</sources>
|
||||||
</mapping>
|
</mapping>
|
||||||
@@ -220,7 +167,7 @@
|
|||||||
<groupname>dragoon</groupname>
|
<groupname>dragoon</groupname>
|
||||||
<sources>
|
<sources>
|
||||||
<source>
|
<source>
|
||||||
<location>${project.basedir}/src/build/deb/etc/dragoon</location>
|
<location>${project.basedir}/build/deb/etc/dragoon</location>
|
||||||
</source>
|
</source>
|
||||||
</sources>
|
</sources>
|
||||||
</mapping>
|
</mapping>
|
||||||
@@ -231,38 +178,25 @@
|
|||||||
<groupname>root</groupname>
|
<groupname>root</groupname>
|
||||||
<sources>
|
<sources>
|
||||||
<source>
|
<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>
|
</source>
|
||||||
</sources>
|
</sources>
|
||||||
</mapping>
|
</mapping>
|
||||||
</mappings>
|
</mappings>
|
||||||
<requires>
|
<requires>
|
||||||
<require>java-17-openjdk</require>
|
<require>java-21-openjdk</require>
|
||||||
<require>ffmpeg-free</require>
|
<require>ffmpeg-free</require>
|
||||||
</requires>
|
</requires>
|
||||||
<preinstallScriptlet>
|
<preinstallScriptlet>
|
||||||
<script>echo "installing ${project.name} now"</script>
|
<script>echo "installing ${project.name} now"</script>
|
||||||
</preinstallScriptlet>
|
</preinstallScriptlet>
|
||||||
<postinstallScriptlet>
|
<postinstallScriptlet>
|
||||||
<scriptFile>src/build/scripts/postinstall.sh</scriptFile>
|
<scriptFile>build/scripts/postinstall.sh</scriptFile>
|
||||||
<fileEncoding>utf-8</fileEncoding>
|
<fileEncoding>utf-8</fileEncoding>
|
||||||
<filter>true</filter>
|
<filter>true</filter>
|
||||||
</postinstallScriptlet>
|
</postinstallScriptlet>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</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>
|
<plugin>
|
||||||
<artifactId>maven-project-info-reports-plugin</artifactId>
|
<artifactId>maven-project-info-reports-plugin</artifactId>
|
||||||
<version>3.0.0</version>
|
<version>3.0.0</version>
|
||||||
|
|||||||
Reference in New Issue
Block a user