Skip to content
Merged
Show file tree
Hide file tree
Changes from all 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
29 changes: 10 additions & 19 deletions .github/workflows/release_on_pr.yml
Original file line number Diff line number Diff line change
Expand Up @@ -7,10 +7,6 @@ jobs:
if: github.event.deployment.environment == 'production'
runs-on: ubuntu-latest
env:
MAVEN_GPG_SIGN_KEY: '${{ secrets.MAVEN_GPG_SIGN_KEY }}'
username: '${{ secrets.maven_deploy_username }}'
password: '${{ secrets.maven_deploy_password }}'
passphrase: '${{ secrets.gpg_passphrase }}'
GITHUB_TOKEN: '${{ secrets.GAUGEBOT_GITHUB_TOKEN }}'
CI: true

Expand All @@ -21,19 +17,11 @@ jobs:
with:
distribution: 'temurin'
java-version: '21'

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9

- name: Setup maven
run: |
echo -e "$MAVEN_GPG_SIGN_KEY" | gpg --import --batch -
gpg --keyserver hkp://keyserver.ubuntu.com --recv-keys $gpgkey
rm -rf $HOME/.m2
mkdir -p $HOME/.m2
echo -e "<settings>\n<servers>\n<server>\n<id>central</id>\n<username>$username</username>\n<password>$password</password>\n</server>\n</servers>\n</settings>" > $HOME/.m2/settings.xml
cache: maven
server-id: central
server-username: MAVEN_CENTRAL_USERNAME
server-password: MAVEN_CENTRAL_PASSWORD
gpg-private-key: ${{ secrets.MAVEN_GPG_SIGN_KEY }}

- name: Setup git
run: |
Expand Down Expand Up @@ -67,8 +55,11 @@ jobs:

- name: Deploy on maven central
run: |
mvn -q clean deploy -Dgpg.passphrase=$passphrase

mvn -B "-Dstyle.color=always" clean deploy
env:
MAVEN_CENTRAL_USERNAME: ${{ secrets.maven_deploy_username }}
MAVEN_CENTRAL_PASSWORD: ${{ secrets.maven_deploy_password }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.gpg_passphrase }}

- name: Update metadata in gauge-repository
run: |
Expand Down
22 changes: 5 additions & 17 deletions .github/workflows/tests.yml
Original file line number Diff line number Diff line change
Expand Up @@ -25,14 +25,10 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
cache: maven

- name: Run test
run: mvn -q clean test
run: mvn -B "-Dstyle.color=always" clean test

functional_tests:
name: FTs - java ${{ matrix.java_version }} ${{ matrix.os }}
Expand All @@ -58,11 +54,7 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
cache: maven

- uses: getgauge/setup-gauge@master
with:
Expand All @@ -75,7 +67,7 @@ jobs:

- name: Install Gauge Java maven package locally
run: |
mvn -q install -DskipTests -"Dgpg.skip" -D"maven.javadoc.skip=true"
mvn -B "-Dstyle.color=always" -DskipTests "-Dgpg.skip" "-Dmaven.javadoc.skip=true" install

- name: Clone gauge-tests
run: |
Expand Down Expand Up @@ -122,11 +114,7 @@ jobs:
with:
distribution: 'temurin'
java-version: ${{ matrix.java_version }}

- name: Set up Maven
uses: stCarolas/setup-maven@v5
with:
maven-version: 3.9.9
cache: maven

- uses: getgauge/setup-gauge@master
with:
Expand Down
2 changes: 1 addition & 1 deletion java.json
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
{
"id": "java",
"version": "1.0.2",
"version": "1.0.3",
"description": "Java support for gauge",
"install": {
"windows": [],
Expand Down
9 changes: 3 additions & 6 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@
<name>gauge-java</name>
<groupId>com.thoughtworks.gauge</groupId>
<artifactId>gauge-java</artifactId>
<version>1.0.2</version>
<version>1.0.3</version>
<description>Java plugin for Gauge</description>
<url>https://github.com/getgauge/gauge-java</url>
<dependencyManagement>
Expand Down Expand Up @@ -256,10 +256,7 @@
<goal>sign</goal>
</goals>
<configuration>
<gpgArguments>
<arg>--pinentry-mode</arg>
<arg>loopback</arg>
</gpgArguments>
<bestPractices>true</bestPractices>
</configuration>
</execution>
</executions>
Expand Down Expand Up @@ -370,7 +367,7 @@
<maven.compiler.release>${java.version}</maven.compiler.release>

<protobuf.version>4.35.1</protobuf.version>
<grpc.version>1.83.0</grpc.version>
<grpc.version>1.83.1</grpc.version>
</properties>

</project>
Loading