-
Notifications
You must be signed in to change notification settings - Fork 382
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
atualizado pom e workflow, teste release (#988)
- Loading branch information
1 parent
d569082
commit 32e039f
Showing
2 changed files
with
34 additions
and
36 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -4,23 +4,25 @@ name: "Release Master" | |
on: | ||
workflow_dispatch: | ||
push: | ||
branches: | ||
- master | ||
branches: [ "master" ] | ||
|
||
jobs: | ||
release: | ||
if: "!contains(github.event.head_commit.message, 'skip ci')" | ||
runs-on: ubuntu-latest | ||
steps: | ||
- name: Check out repository | ||
- name: Checkout repository | ||
uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
|
||
- name: Install Java and Maven | ||
uses: actions/[email protected] | ||
with: | ||
java-version: '17' | ||
java-version: '11' | ||
distribution: 'temurin' | ||
cache: maven | ||
server-id: github | ||
|
||
- name: Adding ssh key | ||
uses: webfactory/[email protected] | ||
|
@@ -37,18 +39,10 @@ jobs: | |
with: | ||
gpg_private_key: ${{ secrets.gpg_private_key }} | ||
gpg_passphrase: ${{ secrets.gpg_passphrase }} | ||
# nexus_username: ${{ secrets.nexus_username }} | ||
# nexus_password: ${{ secrets.nexus_password }} | ||
nexus_username: ${{ secrets.OSSRH_USERNAME }} | ||
nexus_password: ${{ secrets.OSSRH_TOKEN }} | ||
maven_goals_phases: clean -B release:prepare release:perform -Darguments="-DskipTests" -P ossrh | ||
|
||
# - name: Set up Java for publishing to GitHub Packages | ||
# uses: actions/setup-java@v3 | ||
# with: | ||
# java-version: '11' | ||
# distribution: 'adopt' | ||
|
||
- name: Publish to GitHub Packages | ||
run: mvn --batch-mode deploy -P github | ||
env: | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
|
@@ -2,8 +2,9 @@ | |
<modelVersion>4.0.0</modelVersion> | ||
<groupId>com.github.wmixvideo</groupId> | ||
<artifactId>nfe</artifactId> | ||
<packaging>jar</packaging> | ||
<version>4.0.57-SNAPSHOT</version> | ||
<packaging>jar</packaging> | ||
|
||
<name>nfe</name> | ||
<description>Biblioteca de comunicacao de nota fiscal eletronica brasileira</description> | ||
<url>https://github.com/wmixvideo/nfe</url> | ||
|
@@ -16,24 +17,6 @@ | |
</license> | ||
</licenses> | ||
|
||
<scm> | ||
<url>[email protected]:wmixvideo/nfe.git</url> | ||
<connection>scm:git:[email protected]:wmixvideo/nfe.git</connection> | ||
<developerConnection>scm:git:[email protected]:wmixvideo/nfe.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<properties> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<java.version>11</java.version> | ||
<axis2.version>1.7.9</axis2.version> | ||
<slf4j.version>2.0.13</slf4j.version> | ||
<junit.version>4.13.2</junit.version> | ||
<commons-lang3.version>3.14.0</commons-lang3.version> | ||
<simple-xml.version>2.7.1</simple-xml.version> | ||
</properties> | ||
|
||
<developers> | ||
<developer> | ||
<id>jefperito</id> | ||
|
@@ -57,6 +40,24 @@ | |
</developer> | ||
</developers> | ||
|
||
<scm> | ||
<url>[email protected]:wmixvideo/nfe.git</url> | ||
<connection>scm:git:[email protected]:wmixvideo/nfe.git</connection> | ||
<developerConnection>scm:git:[email protected]:wmixvideo/nfe.git</developerConnection> | ||
<tag>HEAD</tag> | ||
</scm> | ||
|
||
<properties> | ||
<java.version>11</java.version> | ||
<slf4j.version>2.0.13</slf4j.version> | ||
<junit.version>4.13.2</junit.version> | ||
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> | ||
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding> | ||
<axis2.version>1.7.9</axis2.version> | ||
<commons-lang3.version>3.14.0</commons-lang3.version> | ||
<simple-xml.version>2.7.1</simple-xml.version> | ||
</properties> | ||
|
||
<dependencies> | ||
<!-- https://mvnrepository.com/artifact/org.apache.santuario/xmlsec --> | ||
<dependency> | ||
|
@@ -192,10 +193,6 @@ | |
<repoToken>QTRbpWiuiwIHGrc0arqKxXsAtiVoLMc5h</repoToken> | ||
</configuration> | ||
<dependencies> | ||
<!-- | ||
Explicit dep on jaxb-api to avoid problems with JDK9 and later, until a new version of coveralls-maven-plugin is released. | ||
See also https://github.com/trautonen/coveralls-maven-plugin/issues/112 | ||
--> | ||
<dependency> | ||
<groupId>javax.xml.bind</groupId> | ||
<artifactId>jaxb-api</artifactId> | ||
|
@@ -258,7 +255,6 @@ | |
<extensions>true</extensions> | ||
<configuration> | ||
<serverId>ossrh</serverId> | ||
<!-- <nexusUrl>https://oss.sonatype.org/</nexusUrl>--> | ||
<nexusUrl>https://s01.oss.sonatype.org</nexusUrl> | ||
<autoReleaseAfterClose>true</autoReleaseAfterClose> | ||
</configuration> | ||
|
@@ -294,6 +290,14 @@ | |
<tagNameFormat>v@{project.version}</tagNameFormat> | ||
<remoteTagging>false</remoteTagging> | ||
</configuration> | ||
<executions> | ||
<execution> | ||
<id>default</id> | ||
<goals> | ||
<goal>perform</goal> | ||
</goals> | ||
</execution> | ||
</executions> | ||
</plugin> | ||
<plugin> | ||
<groupId>org.apache.maven.plugins</groupId> | ||
|