Skip to content

Commit

Permalink
fix: java artifact release process
Browse files Browse the repository at this point in the history
  • Loading branch information
lucasoares committed Apr 20, 2023
1 parent a8a745c commit 136e0e7
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 6 deletions.
6 changes: 1 addition & 5 deletions .github/workflows/release.yaml
Original file line number Diff line number Diff line change
Expand Up @@ -109,13 +109,9 @@ jobs:
- name: Copy .proto
run: mkdir -p java/src/main/proto && cp -r proto java/src/main/proto

- name: Build Java sources
working-directory: java
run: mvn clean package

- name: Publish package
working-directory: java
run: mvn --batch-mode deploy
run: mvn --batch-mode --errors --show-version clean deploy
env:
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}

Expand Down
14 changes: 13 additions & 1 deletion java/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -59,9 +59,20 @@
<build>
<pluginManagement>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.2.0</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.22.2</version>
<configuration>
<argLine>
@{argLine}
Expand All @@ -71,6 +82,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.8.1</version>
<configuration>
<parameters>true</parameters>
<source>${maven.compiler.source}</source>
Expand All @@ -92,7 +104,7 @@
</goals>
</execution>
</executions>
</plugin>
</plugin>
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
Expand Down

0 comments on commit 136e0e7

Please sign in to comment.