Skip to content

Commit

Permalink
Configure maven-release-plugin through POM
Browse files Browse the repository at this point in the history
Signed-off-by: Florian Hotze <[email protected]>
  • Loading branch information
florian-h05 committed Jan 8, 2025
1 parent b1c5e40 commit fdf0524
Show file tree
Hide file tree
Showing 2 changed files with 13 additions and 3 deletions.
2 changes: 1 addition & 1 deletion BUILD.md
Original file line number Diff line number Diff line change
Expand Up @@ -41,7 +41,7 @@ docker run -i --rm -p 8080:8080 -v ./config:/config --env-file .env docker.io/ll
To publish a new version of the application, use the [Maven Release Plugin](https://maven.apache.org/maven-release/maven-release-plugin/).

```shell script
./mvnw release:prepare -DpushChanges=false -DtagNameFormat=v@{project.version}
./mvnw release:prepare
```

Push the changes to GitHub and the CI will automatically build and publish the Docker container.
Expand Down
14 changes: 12 additions & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,9 @@
<properties>
<enforcer-plugin.version>3.5.0</enforcer-plugin.version>
<compiler-plugin.version>3.13.0</compiler-plugin.version>
<release-plugin.version>3.1.1</release-plugin.version>
<surefire-plugin.version>3.5.2</surefire-plugin.version>
<spotless.version>2.43.0</spotless.version>
<java.version>21</java.version>
<maven.compiler.release>${java.version}</maven.compiler.release>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
Expand All @@ -20,8 +23,6 @@
<quarkus-langchain4j.version>0.23.0.CR2</quarkus-langchain4j.version> <!-- remember to sync LangChain4j version when upgrading -->
<langchain4j.version>1.0.0-alpha1</langchain4j.version>
<skipITs>true</skipITs>
<surefire-plugin.version>3.5.2</surefire-plugin.version>
<spotless.version>2.43.0</spotless.version>
</properties>

<licenses>
Expand Down Expand Up @@ -263,6 +264,15 @@
</systemPropertyVariables>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-release-plugin</artifactId>
<version>${release-plugin.version}</version>
<configuration>
<pushChanges>false</pushChanges>
<tagNameFormat>v@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>com.diffplug.spotless</groupId>
<artifactId>spotless-maven-plugin</artifactId>
Expand Down

0 comments on commit fdf0524

Please sign in to comment.