Skip to content

Commit

Permalink
build: modified pom
Browse files Browse the repository at this point in the history
  • Loading branch information
tihawk committed Sep 25, 2024
1 parent 49a0dc2 commit c53efec
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 32 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ jobs:
token: ${{ secrets.GITHUB_TOKEN }}
config_file: .github/tag-changelog-config.js
- name: Build full jar
run: ./mvnw compile assembly:single -Dprod
run: ./mvnw compile assembly:single
- name: Create release
id: create_release
uses: actions/create-release@latest
Expand Down
52 changes: 21 additions & 31 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
<?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">
<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>

<scm>
Expand Down Expand Up @@ -94,8 +95,6 @@
<configuration>
<archive>
<manifest>
<addClasspath>true</addClasspath>
<classpathPrefix>lib/</classpathPrefix>
<mainClass>com.developination.fitnotes2fit.fitnotes2fit</mainClass>
</manifest>
</archive>
Expand All @@ -107,36 +106,27 @@
</plugin>
</plugins>
</pluginManagement>

<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.developination.fitnotes2fit.fitnotes2fit</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.artifactId}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
</plugins>
</build>

<profiles>
<!-- Production Profile -->
<profile>
<id>prod</id>
<properties>
<env>prod</env>
</properties>
<build>
<plugins>
<plugin>
<artifactId>maven-assembly-plugin</artifactId>
<configuration>
<archive>
<manifest>
<mainClass>com.developination.fitnotes2fit.fitnotes2fit</mainClass>
</manifest>
</archive>
<descriptorRefs>
<descriptorRef>jar-with-dependencies</descriptorRef>
</descriptorRefs>
<finalName>${project.artifactId}</finalName>
<appendAssemblyId>false</appendAssemblyId>
</configuration>
</plugin>
</plugins>
</build>
</profile>

<!-- Test Profile -->
<profile>
<id>test</id>
Expand All @@ -161,7 +151,7 @@
<repository>
<id>github</id>
<name>GitHub</name>
<url>https://maven.pkg.github.com/tihawk/fitnotes2fit</url>
<url>https://maven.pkg.github.com/tihawk/fitnotes2fit</url>
</repository>
</distributionManagement>
</project>

0 comments on commit c53efec

Please sign in to comment.