From 093a37c61401ec61911bae04f7370f8ce51b3d98 Mon Sep 17 00:00:00 2001 From: gabriel-logan Date: Sun, 7 Jul 2024 08:38:47 -0300 Subject: [PATCH] refactor: rename java package --- packages/java/pom.xml | 4 ++-- .../gabriel_logan}/multiform_validator/CnpjValidator.java | 2 +- .../gabriel_logan}/multiform_validator/CpfValidator.java | 2 +- .../gabriel_logan}/multiform_validator/EmailValidator.java | 2 +- .../{ => github/gabriel_logan}/multiform_validator/Main.java | 2 +- .../gabriel_logan}/multiform_validator/Validator.java | 2 +- packages/java/src/test/java/CnpjValidatorTest.java | 2 +- packages/java/src/test/java/CpfValidatorTest.java | 2 +- packages/java/src/test/java/EmailValidatorTest.java | 2 +- packages/java/src/test/java/ValidatorTest.java | 2 +- 10 files changed, 11 insertions(+), 11 deletions(-) rename packages/java/src/main/java/io/{ => github/gabriel_logan}/multiform_validator/CnpjValidator.java (97%) rename packages/java/src/main/java/io/{ => github/gabriel_logan}/multiform_validator/CpfValidator.java (95%) rename packages/java/src/main/java/io/{ => github/gabriel_logan}/multiform_validator/EmailValidator.java (97%) rename packages/java/src/main/java/io/{ => github/gabriel_logan}/multiform_validator/Main.java (86%) rename packages/java/src/main/java/io/{ => github/gabriel_logan}/multiform_validator/Validator.java (96%) diff --git a/packages/java/pom.xml b/packages/java/pom.xml index 7ecef6d..4ecce5d 100644 --- a/packages/java/pom.xml +++ b/packages/java/pom.xml @@ -4,9 +4,9 @@ xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - io.multiform-validator + io.github.gabriel_logan multiform-validator - 1.0-SNAPSHOT + 0.0.1 1.8 diff --git a/packages/java/src/main/java/io/multiform_validator/CnpjValidator.java b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/CnpjValidator.java similarity index 97% rename from packages/java/src/main/java/io/multiform_validator/CnpjValidator.java rename to packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/CnpjValidator.java index abbe51d..2ae9d0c 100644 --- a/packages/java/src/main/java/io/multiform_validator/CnpjValidator.java +++ b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/CnpjValidator.java @@ -1,4 +1,4 @@ -package io.multiform_validator; +package io.github.gabriel_logan.multiform_validator; import java.util.Arrays; public class CnpjValidator { diff --git a/packages/java/src/main/java/io/multiform_validator/CpfValidator.java b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/CpfValidator.java similarity index 95% rename from packages/java/src/main/java/io/multiform_validator/CpfValidator.java rename to packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/CpfValidator.java index 7ad587c..f47cc4e 100644 --- a/packages/java/src/main/java/io/multiform_validator/CpfValidator.java +++ b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/CpfValidator.java @@ -1,4 +1,4 @@ -package io.multiform_validator; +package io.github.gabriel_logan.multiform_validator; import java.util.regex.Matcher; import java.util.regex.Pattern; diff --git a/packages/java/src/main/java/io/multiform_validator/EmailValidator.java b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/EmailValidator.java similarity index 97% rename from packages/java/src/main/java/io/multiform_validator/EmailValidator.java rename to packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/EmailValidator.java index 606ba8b..7c4d4ef 100644 --- a/packages/java/src/main/java/io/multiform_validator/EmailValidator.java +++ b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/EmailValidator.java @@ -1,4 +1,4 @@ -package io.multiform_validator; +package io.github.gabriel_logan.multiform_validator; import java.util.Arrays; import java.util.HashSet; diff --git a/packages/java/src/main/java/io/multiform_validator/Main.java b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/Main.java similarity index 86% rename from packages/java/src/main/java/io/multiform_validator/Main.java rename to packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/Main.java index b1f37fe..fc0baa9 100644 --- a/packages/java/src/main/java/io/multiform_validator/Main.java +++ b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/Main.java @@ -1,4 +1,4 @@ -package io.multiform_validator; +package io.github.gabriel_logan.multiform_validator; import static java.lang.System.*; diff --git a/packages/java/src/main/java/io/multiform_validator/Validator.java b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/Validator.java similarity index 96% rename from packages/java/src/main/java/io/multiform_validator/Validator.java rename to packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/Validator.java index af26160..de1d950 100644 --- a/packages/java/src/main/java/io/multiform_validator/Validator.java +++ b/packages/java/src/main/java/io/github/gabriel_logan/multiform_validator/Validator.java @@ -1,4 +1,4 @@ -package io.multiform_validator; +package io.github.gabriel_logan.multiform_validator; public class Validator { private static final String INPUT_VALUE_CANNOT_BE_EMPTY = "Input value cannot be empty."; diff --git a/packages/java/src/test/java/CnpjValidatorTest.java b/packages/java/src/test/java/CnpjValidatorTest.java index 79cc996..293e231 100644 --- a/packages/java/src/test/java/CnpjValidatorTest.java +++ b/packages/java/src/test/java/CnpjValidatorTest.java @@ -1,6 +1,6 @@ import org.junit.jupiter.api.Test; -import static io.multiform_validator.CnpjValidator.cnpjIsValid; +import static io.github.gabriel_logan.multiform_validator.CnpjValidator.cnpjIsValid; import static org.junit.jupiter.api.Assertions.*; class CnpjValidatorTest { diff --git a/packages/java/src/test/java/CpfValidatorTest.java b/packages/java/src/test/java/CpfValidatorTest.java index 64ccd91..0d92c06 100644 --- a/packages/java/src/test/java/CpfValidatorTest.java +++ b/packages/java/src/test/java/CpfValidatorTest.java @@ -1,6 +1,6 @@ import org.junit.jupiter.api.Test; -import static io.multiform_validator.CpfValidator.cpfIsValid; +import static io.github.gabriel_logan.multiform_validator.CpfValidator.cpfIsValid; import static org.junit.jupiter.api.Assertions.*; class CpfValidatorTest { diff --git a/packages/java/src/test/java/EmailValidatorTest.java b/packages/java/src/test/java/EmailValidatorTest.java index e4c2b27..55e815f 100644 --- a/packages/java/src/test/java/EmailValidatorTest.java +++ b/packages/java/src/test/java/EmailValidatorTest.java @@ -1,6 +1,6 @@ import org.junit.jupiter.api.Test; -import static io.multiform_validator.EmailValidator.isEmail; +import static io.github.gabriel_logan.multiform_validator.EmailValidator.isEmail; import static org.junit.jupiter.api.Assertions.*; class EmailValidatorTest { diff --git a/packages/java/src/test/java/ValidatorTest.java b/packages/java/src/test/java/ValidatorTest.java index 6639bbe..91d708c 100644 --- a/packages/java/src/test/java/ValidatorTest.java +++ b/packages/java/src/test/java/ValidatorTest.java @@ -1,4 +1,4 @@ -import io.multiform_validator.Validator; +import io.github.gabriel_logan.multiform_validator.Validator; import org.junit.jupiter.api.Test; import static org.junit.jupiter.api.Assertions.*;