diff --git a/.travis.yml b/.travis.yml deleted file mode 100644 index cb1bd6db..00000000 --- a/.travis.yml +++ /dev/null @@ -1,6 +0,0 @@ -language: java -jdk: oraclejdk8 -dist: trusty -sudo: false - -install: mvn clean install -Dgpg.skip \ No newline at end of file diff --git a/CHANGELOG.md b/CHANGELOG.md index 9e20114b..a49e48d1 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,3 @@ # Notas de versão -- Adicionado Eventos Suframa Vistoria E Internaliza \ No newline at end of file +- Atualizado Java Certificado \ No newline at end of file diff --git a/README.md b/README.md index 776a17c2..a323a2fa 100644 --- a/README.md +++ b/README.md @@ -1,4 +1,4 @@ -# 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.28/jar) +# 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.29/jar) Biblioteca Java para consumo do WebService de NFe/NFCe ## Dúvidas, Sugestões ou Consultoria @@ -17,7 +17,7 @@ Para Iniciar : br.com.swconsultoria java-nfe - 4.00.28 + 4.00.29 ``` @@ -29,7 +29,7 @@ repositories { } } dependencies { - implementation "br.com.swconsultoria:java-nfe:4.00.28" + implementation "br.com.swconsultoria:java-nfe:4.00.29" } ``` @@ -39,6 +39,9 @@ ________________________________________________________________________________ # Historico de Versões +## v4.00.29 - 02/03/2024 - Schemas PL.009k +- Atualizado Java Certificado + ## v4.00.28 - 20/01/2024 - Schemas PL.009k - Adicionado Eventos Suframa Vistoria E Internaliza diff --git a/pom.xml b/pom.xml index c85fa63f..5538f756 100644 --- a/pom.xml +++ b/pom.xml @@ -2,7 +2,7 @@ 4.0.0 br.com.swconsultoria java-nfe - 4.00.29-SNAPSHOT + 4.00.30-SNAPSHOT Java_NFe Api java para consumo do webService de nota fiscal eletronica https://github.com/Samuel-Oliveira/Java_NFe @@ -84,7 +84,7 @@ br.com.swconsultoria java_certificado - 2.13 + 3.1 diff --git a/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java b/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java index 394b654f..7fa70865 100644 --- a/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java +++ b/src/main/java/br/com/swconsultoria/nfe/dom/ConfiguracoesNfe.java @@ -9,14 +9,13 @@ import br.com.swconsultoria.nfe.dom.enuns.EstadosEnum; import br.com.swconsultoria.nfe.util.ConstantesUtil; import br.com.swconsultoria.nfe.util.ObjetoUtil; +import lombok.extern.java.Log; import java.io.InputStream; import java.lang.reflect.Field; import java.nio.charset.Charset; import java.nio.charset.StandardCharsets; import java.time.ZoneId; -import java.util.logging.Level; -import java.util.logging.Logger; /** * @author Samuel Oliveira @@ -31,6 +30,7 @@ * @see ConfiguracoesNfe * @see ConfiguracoesWebNfe */ +@Log public class ConfiguracoesNfe { private EstadosEnum estado; @@ -107,16 +107,14 @@ public static ConfiguracoesNfe criarConfiguracoes(EstadosEnum estado, AmbienteEn } } - if (Logger.getLogger("").isLoggable(Level.SEVERE)) { - System.err.println("####################################################################"); - System.err.println(" Api Java Nfe - Versão 4.00.28 - 20/01/2024"); - if (Logger.getLogger("").isLoggable(Level.WARNING)) { - System.err.println(" Samuel Olivera - samuel@swconsultoria.com.br "); - } - System.err.println(" Pasta Schemas: " + pastaSchemas); - System.err.println(" Ambiente: " + (ambiente.equals(AmbienteEnum.PRODUCAO) ? "Produção" : "Homologação") + " - Estado: " + estado.getNome()); - System.err.println("####################################################################"); - } + log.info(String.format("JAVA-NFE | Samuel Oliveira | samuel@swconsultoria.com.br " + + "| VERSAO=%s | DATA_VERSAO=%s | PASTA_SCHEMAS=%s | AMBIENTE=%s | ESTADO=%s", + "4.00.29", + "02/03/2024", + pastaSchemas, + ambiente, + estado.getNome().toUpperCase())); + if (!certificado.isValido()) { throw new CertificadoException("Certificado Vencido/Inválido"); }