Skip to content

Commit e6505b4

Browse files
Merge branch 'release/4.00.13'
2 parents 213ec32 + 1bedb93 commit e6505b4

File tree

1,482 files changed

+186970
-824759
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

1,482 files changed

+186970
-824759
lines changed
Lines changed: 88 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,88 @@
1+
name: Liberar nova versão Maven
2+
3+
on:
4+
workflow_dispatch:
5+
push:
6+
tags:
7+
- '4.*'
8+
9+
jobs:
10+
release:
11+
name: Build, Test and Release
12+
runs-on: ubuntu-latest
13+
14+
steps:
15+
- name: Checkout
16+
uses: actions/checkout@v4
17+
with:
18+
fetch-depth: 0
19+
token: ${{ secrets.GITHUB_TOKEN }}
20+
21+
- name: Setup Java 8
22+
uses: actions/setup-java@v4
23+
with:
24+
java-version: '8'
25+
distribution: 'temurin'
26+
cache: maven
27+
28+
- name: Set release version
29+
run: |
30+
VERSION="${{ github.event.inputs.version }}"
31+
echo "RELEASE_VERSION=$VERSION" >> $GITHUB_ENV
32+
mvn versions:set -DnewVersion=$VERSION
33+
mvn versions:commit
34+
35+
- name: Build and test with Java 8
36+
run: |
37+
mvn clean compile test -B
38+
39+
- name: Setup Maven settings.xml
40+
run: |
41+
mkdir -p ~/.m2
42+
cat > ~/.m2/settings.xml << 'EOF'
43+
<settings xmlns="http://maven.apache.org/SETTINGS/1.0.0"
44+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
45+
xsi:schemaLocation="http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd">
46+
<servers>
47+
<server>
48+
<id>central</id>
49+
<username>${{ secrets.MAVEN_CENTRAL_USERNAME }}</username>
50+
<password>${{ secrets.MAVEN_CENTRAL_PASSWORD }}</password>
51+
</server>
52+
</servers>
53+
</settings>
54+
EOF
55+
56+
- name: Setup GPG
57+
env:
58+
GPG_PRIVATE_KEY: ${{ secrets.GPG_PRIVATE_KEY }}
59+
GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
60+
run: |
61+
# Import GPG key
62+
echo "$GPG_PRIVATE_KEY" | gpg --batch --import
63+
64+
# Configure GPG for non-interactive mode
65+
echo "use-agent" >> ~/.gnupg/gpg.conf
66+
echo "pinentry-mode loopback" >> ~/.gnupg/gpg.conf
67+
echo "allow-loopback-pinentry" >> ~/.gnupg/gpg-agent.conf
68+
69+
# Restart GPG agent
70+
gpgconf --kill gpg-agent || true
71+
gpgconf --launch gpg-agent
72+
73+
# Get the key ID and verify it's the correct one
74+
GPG_KEY_ID=$(gpg --list-secret-keys --keyid-format LONG | grep "1F93637480018AD7" | head -1 | awk '{print $2}' | cut -d'/' -f2)
75+
echo "GPG_KEY_ID=$GPG_KEY_ID" >> $GITHUB_ENV
76+
echo "Using GPG Key ID: $GPG_KEY_ID"
77+
78+
# Test signing
79+
echo "test signing" | gpg --clearsign --armor --pinentry-mode loopback --batch --passphrase "$GPG_PASSPHRASE" --default-key "1F93637480018AD7"
80+
81+
- name: Deploy to Maven Central Portal
82+
env:
83+
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
84+
run: |
85+
export GPG_TTY=$(tty)
86+
git config user.name "github-actions[bot]"
87+
git config user.email "github-actions[bot]@users.noreply.github.com"
88+
mvn deploy -B --no-transfer-progress

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ on:
99
jobs:
1010

1111
package:
12-
runs-on: ubuntu-24.04
12+
runs-on: ubuntu-latest
1313
name: Empacotar executavel
1414
steps:
1515
- uses: actions/checkout@v2

CHANGELOG.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,4 @@
11
# Notas de versão
2-
3-
- Atualizado Cacert
2+
- Atualizado Schema Reforma Tributaria
3+
- Remoçao de classes duplicadas
4+
- Reforacao JAXB

README.md

Lines changed: 8 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Java-CTe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.12/jar)
1+
# Java-CTe [![MIT License](https://img.shields.io/github/license/Samuel-Oliveira/Java_CTe.svg) ](https://github.com/Samuel-Oliveira/Java_CTe/blob/master/LICENSE) [![Maven Central](https://img.shields.io/maven-central/v/br.com.swconsultoria/java-cte.svg?label=Maven%20Central)](https://search.maven.org/artifact/br.com.swconsultoria/java-cte/4.00.13/jar)
22
API Java para consumo do WebService de CTe
33

44
## Dúvidas, Sugestões ou Consultoria
@@ -18,14 +18,14 @@ Para Iniciar :
1818
<dependency>
1919
<groupId>br.com.swconsultoria</groupId>
2020
<artifactId>java-cte</artifactId>
21-
<version>4.00.12</version>
21+
<version>4.00.13</version>
2222
</dependency>
2323
```
2424

2525
- Gradle :
2626
```groovy
2727
dependencies {
28-
implementation "br.com.swconsultoria:java-cte:4.00.12"
28+
implementation "br.com.swconsultoria:java-cte:4.00.13"
2929
}
3030
```
3131

@@ -35,6 +35,11 @@ ________________________________________________________________________________
3535

3636
# Historico de Versões
3737

38+
## v4.00.13 - 13/09/2025 - Schemas PL. RTC 1.07
39+
- Atualizado Schema Reforma Tributaria
40+
- Remoçao de classes duplicadas
41+
- Reforacao JAXB
42+
3843
## v4.00.12 - 06/07/2025
3944
- Atualizado Cacert
4045

docs/Makefile

Lines changed: 0 additions & 29 deletions
This file was deleted.

docs/docs/index.md

Lines changed: 0 additions & 128 deletions
This file was deleted.

docs/docs/tutorial/baixar-documento.md

Lines changed: 0 additions & 52 deletions
This file was deleted.

0 commit comments

Comments
 (0)