Skip to content

Commit 2814090

Browse files
authored
Merge pull request #35 from asaasdev/SKYW-1006-Atualizacao-do-fork-Java_NFe-e-sincronizacao-dos-schemas-no-S3
SkYW-1006 - atualização do fork javaNF-e
2 parents 25e8985 + 95a23a6 commit 2814090

File tree

434 files changed

+12523
-195072
lines changed

Some content is hidden

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

434 files changed

+12523
-195072
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

.gitignore

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,4 @@
1-
21
target/
32
.idea/
43
*.iml
54
/target/
6-
/src/test/java/br/com/swconsultoria/nfe/teste/

CHANGELOG.md

Lines changed: 1 addition & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,2 @@
11
# Notas de versão
2-
- Alterado URLs Consulta Cadastro AM
3-
- Alterado URLs QRCode GO
4-
- Alterado URLs ConsultaNFCe RN
5-
- Atualizado Layout RT com Nota Técnica 2025.002.v.1.20
6-
- Adicionado Impressao de NFe, NFCe e CCe : https://github.com/Samuel-Oliveira/Java_NFe/wiki/14-:-Impressao
2+
- Correcao Manifestacao

README.md

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

44
### Powered by
@@ -22,7 +22,7 @@ Para Iniciar :
2222
<dependency>
2323
<groupId>br.com.swconsultoria</groupId>
2424
<artifactId>java-nfe</artifactId>
25-
<version>4.00.41</version>
25+
<version>4.00.45</version>
2626
</dependency>
2727
```
2828

@@ -34,7 +34,7 @@ repositories {
3434
}
3535
}
3636
dependencies {
37-
implementation "br.com.swconsultoria:java-nfe:4.00.41"
37+
implementation "br.com.swconsultoria:java-nfe:4.00.45"
3838
}
3939
```
4040

@@ -43,40 +43,7 @@ Veja a Wiki https://github.com/Samuel-Oliveira/Java_NFe/wiki, para ter um Tutori
4343
________________________________________________________________________________________________
4444
# 🚨 Atenção — Reforma Tributária na NF-e / NFC-e
4545

46-
Foram adicionadas as classes com o **layout da Reforma Tributária**.
47-
Para garantir que não haja impacto nos sistemas em produção, **todas as novas classes estão isoladas** no seguinte pacote: br.com.swconsultoria.nfe.schema_rt.nfe
48-
49-
---
50-
51-
## 🧠 O que muda?
52-
53-
A reforma, neste momento, afeta apenas as seguintes funções:
54-
55-
- 🔍 `consultaRecibo` — Consulta NF-e / NFC-e Assíncrona
56-
- 🧾 `montaNfe` — Montagem, Assinatura e Validação do XML
57-
- 🚀 `enviarNfe` — Envio de NF-e / NFC-e
58-
59-
Para utilizar essas funções adaptadas à Reforma Tributária, utilize a classe: **NfeRT**
60-
61-
---
62-
63-
## 📦 Schemas XSD
64-
65-
Foi adicionado um arquivo ZIP com os novos schemas: **schemas_rt.zip**
66-
67-
**Importante:**
68-
Esse arquivo deve ser **extraído na mesma pasta dos schemas atuais**, sobrescrevendo-os temporariamente **apenas se você deseja testar o novo layout da Reforma Tributária**.
69-
70-
---
71-
72-
## 🗓️ Cronograma de Implantação da Reforma Tributária (NF-e / NFC-e)
73-
74-
| Data | Evento |
75-
|-------------------------------|---------------------------------------------------------------------------------------------|
76-
| **07/07/2025 até 28/07/2025** | Entrada em **homologação** dos novos campos: `IBS`, `CBS` e `IS`. *(Varia conforme a UF)* |
77-
| **04/08/2025** | Homologação da implantação dos **eventos fiscais** necessários para a apuração tributária. |
78-
| **06/10/2025** | Entrada em **produção** dos eventos e dos novos campos, porém com **preenchimento opcional**. |
79-
| **05/01/2026** | Os campos `IBS`, `CBS` e `IS` tornam-se de **preenchimento obrigatório em produção**. |
46+
Foram adicionadas as classes com o **layout da Reforma Tributária** a partir da versao 4.00.42.
8047

8148
---
8249

@@ -97,6 +64,22 @@ ________________________________________________________________________________
9764

9865
# Historico de Versões
9966

67+
## v4.00.45 - 09/11/2025 - Schemas PL.010b (v1.1)
68+
- Adicionado Conculta ao JSON dos CST/Cclasstrib do IBSCBS
69+
70+
## v4.00.44 - 28/10/2025 - Schemas PL.010b (v1.1)
71+
- Correcao sequencia Manifestacao Util
72+
73+
## v4.00.43 - 22/10/2025 - Schemas PL.010b (v1.1)
74+
- Correcoes EConf
75+
- Alterado Fonte Impressao Danfe NFe e NFCe de Times New Roman para Verdana
76+
- Correcao Manifestacao Util para Considerar mais de uma Sequencia
77+
78+
## v4.00.42 - 31/08/2025 - Schemas PL.010b (v1.1)
79+
- Atualizado Schema Reforma Tributaria
80+
- Remoçao de classes duplicadas
81+
- Reforacao JAXB
82+
10083
## v4.00.41 - 31/07/2025 - Schemas PL.009p1 e PL.010b
10184
- Alterado URLs Consulta Cadastro AM
10285
- Alterado URLs QRCode GO

docs/.idea/.gitignore

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

0 commit comments

Comments
 (0)