Skip to content

Commit f941f76

Browse files
committed
Merge branch 'main' into 872_matchingset_opensearch
2 parents a62fbb1 + b798976 commit f941f76

File tree

7 files changed

+356
-42
lines changed

7 files changed

+356
-42
lines changed

.github/workflows/codecov-report.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -54,7 +54,7 @@ jobs:
5454

5555
# Upload test results and coverage
5656
- name: Upload coverage results
57-
uses: actions/upload-artifact@v3
57+
uses: actions/upload-artifact@v4
5858
with:
5959
name: test-results
6060
path: |
@@ -72,7 +72,7 @@ jobs:
7272
7373
# Upload to Codecov
7474
- name: Upload coverage to Codecov
75-
uses: codecov/codecov-action@v3
75+
uses: codecov/codecov-action@v5
7676
with:
7777
token: ${{ secrets.CODECOV_TOKEN }} # Add Codecov token as a secret in GitHub
7878
files: |

.github/workflows/release-maven-publish.yml

Lines changed: 10 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,11 +4,11 @@ on:
44
release:
55
types: [published]
66

7-
87
jobs:
98
build:
109
name: Maven build , deploy and release
1110
runs-on: ubuntu-latest
11+
if: "!contains(github.event.head_commit.message, '[ci skip]')"
1212

1313
steps:
1414
- uses: actions/checkout@v4
@@ -19,6 +19,15 @@ jobs:
1919
distribution: 'zulu'
2020
java-version: 8
2121

22+
- name: Release
23+
uses: qcastel/[email protected]
24+
env:
25+
JAVA_HOME: /usr/lib/jvm/zulu-8/
26+
with:
27+
ssh-private-key: ${{ secrets.SSH_PRIVATE_KEY }}
28+
maven-args: "-Dmaven.javadoc.skip=true -DskipTests -DskipITs -Ddockerfile.skip -DdockerCompose.skip"
29+
release-branch-name: "main"
30+
2231
- name: Build with Maven
2332
run: |
2433
mvn dependency:resolve -B -U

pom.xml

Lines changed: 39 additions & 28 deletions
Original file line numberDiff line numberDiff line change
@@ -10,6 +10,7 @@
1010
<properties>
1111
<maven.compiler.source>1.8</maven.compiler.source>
1212
<maven.compiler.target>1.8</maven.compiler.target>
13+
<maven-release-plugin.version>3.1.1</maven-release-plugin.version>
1314
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
1415
<datanucleus.version>4.2.0-release</datanucleus.version>
1516
<datanucleus.lib.scope>compile</datanucleus.lib.scope>
@@ -46,7 +47,6 @@
4647
</repository>
4748
</repositories>
4849

49-
5050
<dependencies>
5151
<dependency>
5252
<groupId>com.rabbitmq</groupId>
@@ -124,7 +124,6 @@
124124
<version>1.13.0</version>
125125
</dependency>
126126

127-
128127
<dependency>
129128
<groupId>org.scribe</groupId>
130129
<artifactId>scribe</artifactId>
@@ -248,9 +247,7 @@
248247
<dependency>
249248
<groupId>org.opensearch.client</groupId>
250249
<artifactId>opensearch-java</artifactId>
251-
<!--
252-
<version>2.9.1</version>
253-
-->
250+
<!-- <version>2.9.1</version> -->
254251
<version>2.10.3</version>
255252
</dependency>
256253

@@ -412,7 +409,6 @@
412409
<version>1.4.01</version>
413410
</dependency>
414411

415-
416412
<dependency>
417413
<groupId>jstl</groupId>
418414
<artifactId>jstl</artifactId>
@@ -548,6 +544,13 @@
548544

549545
</dependencies>
550546

547+
<scm>
548+
<connection>scm:git:${project.scm.url}</connection>
549+
<developerConnection>scm:git:${project.scm.url}</developerConnection>
550+
<url>[email protected]:WildMeOrg/Wildbook.git</url>
551+
<tag>HEAD</tag>
552+
</scm>
553+
551554
<build>
552555
<resources>
553556
<resource>
@@ -557,13 +560,21 @@
557560
</resources>
558561

559562
<plugins>
563+
<plugin>
564+
<artifactId>maven-release-plugin</artifactId>
565+
<version>${maven-release-plugin.version}</version>
566+
<configuration>
567+
<scmCommentPrefix>[ci skip]</scmCommentPrefix>
568+
</configuration>
569+
</plugin>
570+
560571
<plugin>
561572
<groupId>org.apache.maven.plugins</groupId>
562573
<artifactId>maven-compiler-plugin</artifactId>
563574
<version>3.6.1</version>
564575
</plugin>
565576

566-
<plugin>
577+
<plugin>
567578
<artifactId>maven-surefire-plugin</artifactId>
568579
<version>2.19</version>
569580
<dependencies>
@@ -573,7 +584,7 @@
573584
<version>1.0.0</version>
574585
</dependency>
575586
</dependencies>
576-
</plugin>
587+
</plugin>
577588

578589
<plugin>
579590
<groupId>org.codehaus.mojo</groupId>
@@ -634,26 +645,26 @@
634645
</executions>
635646
</plugin>
636647

637-
<plugin>
638-
<groupId>org.jacoco</groupId>
639-
<artifactId>jacoco-maven-plugin</artifactId>
640-
<version>0.8.8</version>
641-
<executions>
642-
<execution>
643-
<goals>
644-
<goal>prepare-agent</goal>
645-
</goals>
646-
</execution>
647-
<execution>
648-
<id>report</id>
649-
<phase>test</phase>
650-
<goals>
651-
<goal>report</goal>
652-
</goals>
653-
</execution>
654-
</executions>
655-
</plugin>
656-
648+
<plugin>
649+
<groupId>org.jacoco</groupId>
650+
<artifactId>jacoco-maven-plugin</artifactId>
651+
<version>0.8.8</version>
652+
<executions>
653+
<execution>
654+
<goals>
655+
<goal>prepare-agent</goal>
656+
</goals>
657+
</execution>
658+
<execution>
659+
<id>report</id>
660+
<phase>test</phase>
661+
<goals>
662+
<goal>report</goal>
663+
</goals>
664+
</execution>
665+
</executions>
666+
</plugin>
667+
657668
<plugin>
658669
<groupId>org.apache.tomcat.maven</groupId>
659670
<artifactId>tomcat7-maven-plugin</artifactId>

0 commit comments

Comments
 (0)