Skip to content

Release Version Auto-Bump #948

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 5 commits into from
Jan 18, 2025
Merged
Show file tree
Hide file tree
Changes from 3 commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
11 changes: 10 additions & 1 deletion .github/workflows/release-maven-publish.yml
Original file line number Diff line number Diff line change
Expand Up @@ -4,11 +4,11 @@ on:
release:
types: [published]


jobs:
build:
name: Maven build , deploy and release
runs-on: ubuntu-latest
if: "!contains(github.event.head_commit.message, '[ci skip]')"

steps:
- uses: actions/checkout@v4
Expand All @@ -19,6 +19,15 @@ jobs:
distribution: 'zulu'
java-version: 8

- name: Relase
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

is this a typo? likely doesnt matter but thought i should mention. @Rodhlann

Copy link
Contributor Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It definitely is! Thanks for the heads up

uses: qcastel/[email protected]
env:
JAVA_HOME: /usr/lib/jvm/java-1.8-openjdk/
with:
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
maven-args: "-Dmaven.javadoc.skip=true -DskipTests -DskipITs -Ddockerfile.skip -DdockerCompose.skip"
release-branch-name: "main"

- name: Build with Maven
run: |
mvn dependency:resolve -B -U
Expand Down
67 changes: 39 additions & 28 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -10,6 +10,7 @@
<properties>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<datanucleus.version>4.2.0-release</datanucleus.version>
<datanucleus.lib.scope>compile</datanucleus.lib.scope>
Expand Down Expand Up @@ -46,7 +47,6 @@
</repository>
</repositories>


<dependencies>
<dependency>
<groupId>com.rabbitmq</groupId>
Expand Down Expand Up @@ -124,7 +124,6 @@
<version>1.13.0</version>
</dependency>


<dependency>
<groupId>org.scribe</groupId>
<artifactId>scribe</artifactId>
Expand Down Expand Up @@ -248,9 +247,7 @@
<dependency>
<groupId>org.opensearch.client</groupId>
<artifactId>opensearch-java</artifactId>
<!--
<version>2.9.1</version>
-->
<!-- <version>2.9.1</version> -->
<version>2.10.3</version>
</dependency>

Expand Down Expand Up @@ -412,7 +409,6 @@
<version>1.4.01</version>
</dependency>


<dependency>
<groupId>jstl</groupId>
<artifactId>jstl</artifactId>
Expand Down Expand Up @@ -548,6 +544,13 @@

</dependencies>

<scm>
<connection>scm:git:${project.scm.url}</connection>
<developerConnection>scm:git:${project.scm.url}</developerConnection>
<url>[email protected]:WildMeOrg/Wildbook.git</url>
<tag>HEAD</tag>
</scm>

<build>
<resources>
<resource>
Expand All @@ -557,13 +560,21 @@
</resources>

<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>${maven-release-plugin.version}</version>
<configuration>
<scmCommentPrefix>[ci skip]</scmCommentPrefix>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.6.1</version>
</plugin>

<plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.19</version>
<dependencies>
Expand All @@ -573,7 +584,7 @@
<version>1.0.0</version>
</dependency>
</dependencies>
</plugin>
</plugin>

<plugin>
<groupId>org.codehaus.mojo</groupId>
Expand Down Expand Up @@ -634,26 +645,26 @@
</executions>
</plugin>

<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jacoco</groupId>
<artifactId>jacoco-maven-plugin</artifactId>
<version>0.8.8</version>
<executions>
<execution>
<goals>
<goal>prepare-agent</goal>
</goals>
</execution>
<execution>
<id>report</id>
<phase>test</phase>
<goals>
<goal>report</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.apache.tomcat.maven</groupId>
<artifactId>tomcat7-maven-plugin</artifactId>
Expand Down