From 9e694c866340a0092f53dd52ad341fb6ff209687 Mon Sep 17 00:00:00 2001 From: lengors <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 00:51:18 +0000 Subject: [PATCH 1/9] =?UTF-8?q?=F0=9F=91=B7=20Rework=20project=20structure?= =?UTF-8?q?=20in=20preparation=20for=20`lombok`=20support?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .gitignore | 3 + core/pom.xml | 385 ++++++++++++++++++ .../lengors/maven_java_template/Example.java | 0 .../maven_java_template/package-info.java | 0 .../maven_java_template/ExampleTest.java | 0 .../maven_java_template/package-info.java | 0 javadoc/pom.xml | 99 +++++ pom.xml | 359 ++-------------- 8 files changed, 528 insertions(+), 318 deletions(-) create mode 100644 core/pom.xml rename {src => core/src}/main/java/io/github/lengors/maven_java_template/Example.java (100%) rename {src => core/src}/main/java/io/github/lengors/maven_java_template/package-info.java (100%) rename {src => core/src}/test/java/io/github/lengors/maven_java_template/ExampleTest.java (100%) rename {src => core/src}/test/java/io/github/lengors/maven_java_template/package-info.java (100%) create mode 100644 javadoc/pom.xml diff --git a/.gitignore b/.gitignore index 8c5352a..156e05c 100644 --- a/.gitignore +++ b/.gitignore @@ -29,6 +29,9 @@ target/ hs_err_pid* replay_pid* +# Flatten files # +.flattened-pom.xml + ### IntelliJ IDEA ### .idea/modules.xml .idea/jarRepositories.xml diff --git a/core/pom.xml b/core/pom.xml new file mode 100644 index 0000000..003a185 --- /dev/null +++ b/core/pom.xml @@ -0,0 +1,385 @@ + + + 4.0.0 + + io.github.lengors + maven-lombok-template-parent + ${revision} + + + io.github.lengors + maven-lombok-template + ${revision} + maven-lombok-template + https://github.com/lengors/maven-lombok-template + Template repository for maven projects written in java and that require the usage of lombok. + + + + lengors + 24527258+lengors@users.noreply.github.com + + + + + https://github.com/lengors/maven-lombok-template + + + + + The Unlicense + https://unlicense.org/UNLICENSE + + + + + + + false + false + false + + + 0.5.0 + 3.6.0 + 3.4.0 + 3.3.1 + 3.13.0 + 3.7.1 + 0.8.12 + 3.3.1 + 3.2.4 + + + + + org.checkerframework + checker-qual + + + + org.junit.jupiter + junit-jupiter + test + + + + org.mockito + mockito-core + + + org.mockito + mockito-junit-jupiter + test + + + + + + + + + org.apache.maven.plugins + maven-checkstyle-plugin + ${maven.checkstyle.version} + + true + checkstyle.xml + + + + + org.apache.maven.plugins + maven-resources-plugin + ${maven.resources.version} + + + copy-javadoc + package + + copy-resources + + + ${project.build.directory} + + + ${project.basedir}/../javadoc/target + + maven-lombok-template-${revision}-javadoc.jar + + + + + + + + + + org.apache.maven.plugins + maven-source-plugin + ${maven.source.version} + + + attach-sources + verify + + jar-no-fork + + + + + + + org.codehaus.mojo + build-helper-maven-plugin + ${maven.build-helper.version} + + + io.github.lengors + maven-lombok-template-javadoc + ${revision} + + + + + attach-javadoc + verify + + attach-artifact + + + + + ${project.build.directory}/maven-lombok-template-${revision}-javadoc.jar + jar + javadoc + + + + + + + + + org.apache.maven.plugins + maven-gpg-plugin + ${maven.gpg.version} + + ${MAVEN_GPG_KEYNAME} + + + + sign-artifacts + verify + + sign + + + + + + + org.sonatype.central + central-publishing-maven-plugin + ${maven.central-publishing.version} + true + + central + true + published + + + + + org.jacoco + jacoco-maven-plugin + ${maven.jacoco.version} + + + prepare-agent + + prepare-agent + + + + report + + report + + + + XML + + + + + + + + + + + + + checkerframework + + + [1.8,) + + + + + org.apache.maven.plugins + maven-compiler-plugin + ${maven.compiler.version} + + true + + + org.checkerframework + checker + ${maven.checkerframework.version} + + + + + org.checkerframework.checker.nullness.NullnessChecker + org.checkerframework.checker.resourceleak.ResourceLeakChecker + + + -Xmaxerrs + 10000 + -Xmaxwarns + 10000 + + + + + + + + + checkerframework-jdk8 + + 1.8 + + + + 9+181-r4173-1 + + + + + + org.apache.maven.plugins + maven-dependency-plugin + + + + copy + + process-sources + + com.google.errorprone:javac:${javac.version}:jar + ${project.build.directory}/javac + + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + -J-Xbootclasspath/p:${project.build.directory}/javac/javac-${javac.version}.jar + + + + + + + + + checkerframework-jdk9orlater + + [9,) + + + + + org.apache.maven.plugins + maven-compiler-plugin + + + -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED + -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED + -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED + + + + + + + + + jar + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven.jar.version} + + + + true + io.github.lengors.maven_java_template.Example + + + + + + + + + + assemble + + + + org.apache.maven.plugins + maven-assembly-plugin + ${maven.assembly.version} + + + + io.github.lengors.maven_java_template.Example + + + + jar-with-dependencies + + + + + package + + single + + + + + + + + + \ No newline at end of file diff --git a/src/main/java/io/github/lengors/maven_java_template/Example.java b/core/src/main/java/io/github/lengors/maven_java_template/Example.java similarity index 100% rename from src/main/java/io/github/lengors/maven_java_template/Example.java rename to core/src/main/java/io/github/lengors/maven_java_template/Example.java diff --git a/src/main/java/io/github/lengors/maven_java_template/package-info.java b/core/src/main/java/io/github/lengors/maven_java_template/package-info.java similarity index 100% rename from src/main/java/io/github/lengors/maven_java_template/package-info.java rename to core/src/main/java/io/github/lengors/maven_java_template/package-info.java diff --git a/src/test/java/io/github/lengors/maven_java_template/ExampleTest.java b/core/src/test/java/io/github/lengors/maven_java_template/ExampleTest.java similarity index 100% rename from src/test/java/io/github/lengors/maven_java_template/ExampleTest.java rename to core/src/test/java/io/github/lengors/maven_java_template/ExampleTest.java diff --git a/src/test/java/io/github/lengors/maven_java_template/package-info.java b/core/src/test/java/io/github/lengors/maven_java_template/package-info.java similarity index 100% rename from src/test/java/io/github/lengors/maven_java_template/package-info.java rename to core/src/test/java/io/github/lengors/maven_java_template/package-info.java diff --git a/javadoc/pom.xml b/javadoc/pom.xml new file mode 100644 index 0000000..2cf5ef9 --- /dev/null +++ b/javadoc/pom.xml @@ -0,0 +1,99 @@ + + + 4.0.0 + + io.github.lengors + maven-lombok-template-parent + ${revision} + + + io.github.lengors + maven-lombok-template-javadoc + ${revision} + + + + true + true + + + 3.8.0 + + + ${project.basedir}/../core + + + + + org.checkerframework + checker-qual + + + + org.junit.jupiter + junit-jupiter + test + + + + org.mockito + mockito-core + + + org.mockito + mockito-junit-jupiter + test + + + + + ${project.core.directory}/src/main/java + ${project.core.directory}/src/test/java + + + + org.apache.maven.plugins + maven-jar-plugin + ${maven.jar.version} + + + default-jar + none + + + + + + org.apache.maven.plugins + maven-javadoc-plugin + ${maven.javadoc.version} + + true + + + org.checkerframework + checker-qual + https://checkerframework.org/api + + + maven-lombok-template ${project.version} API + maven-lombok-template ${project.version} API + + + + attach-javadocs + + jar + + + maven-lombok-template-${revision} + + + + + + + + \ No newline at end of file diff --git a/pom.xml b/pom.xml index 3321267..ea1f652 100644 --- a/pom.xml +++ b/pom.xml @@ -6,31 +6,19 @@ 4.0.0 io.github.lengors - maven-lombok-template - 0.0.0-local.0 - maven-lombok-template - https://github.com/lengors/maven-lombok-template - Template repository for maven projects written in java and that require the usage of lombok. + maven-lombok-template-parent + ${revision} + pom - - - lengors - 24527258+lengors@users.noreply.github.com - - - - - https://github.com/lengors/maven-lombok-template - - - - - The Unlicense - https://unlicense.org/UNLICENSE - - + + javadoc + core + + + 0.0.0-local.0 + UTF-8 @@ -38,24 +26,22 @@ 21 21 + + true + true + true + - 0.5.0 3.46.0 - 3.4.0 - 3.13.0 - 3.7.1 5.12.0 - 3.8.0 - 0.8.12 - 3.3.1 + 1.6.0 5.10.3 - 3.2.4 3.4.2 lengors-github https://sonarcloud.io - + core @@ -67,308 +53,45 @@ pom import - - - - - - - org.checkerframework - checker-qual - ${maven.checkerframework.version} - - - org.junit.jupiter - junit-jupiter - test - + + org.checkerframework + checker-qual + ${maven.checkerframework.version} + - - org.mockito - mockito-core - ${maven.mockito.version} - - - org.mockito - mockito-junit-jupiter - ${maven.mockito.version} - test - - + + org.mockito + mockito-core + ${maven.mockito.version} + + + org.mockito + mockito-junit-jupiter + ${maven.mockito.version} + + + - - - - org.apache.maven.plugins - maven-checkstyle-plugin - ${maven.checkstyle.version} - - true - checkstyle.xml - - - - - org.apache.maven.plugins - maven-source-plugin - ${maven.source.version} - - - attach-sources - verify - - jar-no-fork - - - - - - - org.apache.maven.plugins - maven-javadoc-plugin - ${maven.javadoc.version} - - true - - - org.checkerframework - checker-qual - https://checkerframework.org/api - - - - - - attach-javadocs - - jar - - - - - - - org.apache.maven.plugins - maven-gpg-plugin - ${maven.gpg.version} - - ${MAVEN_GPG_KEYNAME} - - - - sign-artifacts - verify - - sign - - - - - - org.sonatype.central - central-publishing-maven-plugin - ${maven.central-publishing.version} - true + org.codehaus.mojo + flatten-maven-plugin + ${maven.flatten.version} - central - true - published + ossrh - - - - org.jacoco - jacoco-maven-plugin - ${maven.jacoco.version} - prepare-agent + flatten + process-resources - prepare-agent + flatten - - report - - report - - - - XML - - - - - - - - - checkerframework - - - [1.8,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - ${maven.compiler.version} - - true - - - org.checkerframework - checker - ${maven.checkerframework.version} - - - - - org.checkerframework.checker.nullness.NullnessChecker - org.checkerframework.checker.resourceleak.ResourceLeakChecker - - - -Xmaxerrs - 10000 - -Xmaxwarns - 10000 - - - - - - - - - checkerframework-jdk8 - - 1.8 - - - - 9+181-r4173-1 - - - - - - org.apache.maven.plugins - maven-dependency-plugin - - - - copy - - process-sources - - com.google.errorprone:javac:${javac.version}:jar - ${project.build.directory}/javac - - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - -J-Xbootclasspath/p:${project.build.directory}/javac/javac-${javac.version}.jar - - - - - - - - - checkerframework-jdk9orlater - - [9,) - - - - - org.apache.maven.plugins - maven-compiler-plugin - - - -J--add-exports=jdk.compiler/com.sun.tools.javac.api=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.code=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.file=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.main=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.model=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.processing=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.tree=ALL-UNNAMED - -J--add-exports=jdk.compiler/com.sun.tools.javac.util=ALL-UNNAMED - -J--add-opens=jdk.compiler/com.sun.tools.javac.comp=ALL-UNNAMED - - - - - - - - - jar - - - - org.apache.maven.plugins - maven-jar-plugin - ${maven.jar.version} - - - - true - io.github.lengors.maven_java_template.Example - - - - - - - - - - assemble - - - - org.apache.maven.plugins - maven-assembly-plugin - ${maven.assembly.version} - - - - io.github.lengors.maven_java_template.Example - - - - jar-with-dependencies - - - - - package - - single - - - - - - - - \ No newline at end of file From b382dcb019f9035bbdf24cb211decb4663a13594 Mon Sep 17 00:00:00 2001 From: lengors <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:41:38 +0000 Subject: [PATCH 2/9] =?UTF-8?q?=E2=9E=95=20Add=20`lombok`=20plugin=20and?= =?UTF-8?q?=20dependency?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- core/pom.xml | 17 +++++++ .../Example.java | 2 +- .../package-info.java | 2 +- .../ExampleTest.java | 16 +++---- .../package-info.java | 2 +- javadoc/pom.xml | 48 ++++++++++++++++++- pom.xml | 7 +++ 7 files changed, 81 insertions(+), 13 deletions(-) rename core/src/main/java/io/github/lengors/{maven_java_template => maven_lombok_template}/Example.java (90%) rename core/src/main/java/io/github/lengors/{maven_java_template => maven_lombok_template}/package-info.java (59%) rename core/src/test/java/io/github/lengors/{maven_java_template => maven_lombok_template}/ExampleTest.java (54%) rename core/src/test/java/io/github/lengors/{maven_java_template => maven_lombok_template}/package-info.java (59%) diff --git a/core/pom.xml b/core/pom.xml index 003a185..929cf0c 100644 --- a/core/pom.xml +++ b/core/pom.xml @@ -59,6 +59,12 @@ checker-qual + + org.projectlombok + lombok + provided + + org.junit.jupiter junit-jupiter @@ -237,6 +243,12 @@ true + + org.projectlombok + lombok + ${maven.lombok.version} + + org.checkerframework checker @@ -247,6 +259,11 @@ org.checkerframework.checker.nullness.NullnessChecker org.checkerframework.checker.resourceleak.ResourceLeakChecker + + + lombok.launch.AnnotationProcessorHider$AnnotationProcessor + lombok.launch.AnnotationProcessorHider$ClaimingProcessor -Xmaxerrs diff --git a/core/src/main/java/io/github/lengors/maven_java_template/Example.java b/core/src/main/java/io/github/lengors/maven_lombok_template/Example.java similarity index 90% rename from core/src/main/java/io/github/lengors/maven_java_template/Example.java rename to core/src/main/java/io/github/lengors/maven_lombok_template/Example.java index 8656f46..4546bc5 100644 --- a/core/src/main/java/io/github/lengors/maven_java_template/Example.java +++ b/core/src/main/java/io/github/lengors/maven_lombok_template/Example.java @@ -1,4 +1,4 @@ -package io.github.lengors.maven_java_template; +package io.github.lengors.maven_lombok_template; /** * Example for project template. diff --git a/core/src/main/java/io/github/lengors/maven_java_template/package-info.java b/core/src/main/java/io/github/lengors/maven_lombok_template/package-info.java similarity index 59% rename from core/src/main/java/io/github/lengors/maven_java_template/package-info.java rename to core/src/main/java/io/github/lengors/maven_lombok_template/package-info.java index 2d21a0d..f135855 100644 --- a/core/src/main/java/io/github/lengors/maven_java_template/package-info.java +++ b/core/src/main/java/io/github/lengors/maven_lombok_template/package-info.java @@ -3,4 +3,4 @@ * * @author lengors */ -package io.github.lengors.maven_java_template; +package io.github.lengors.maven_lombok_template; diff --git a/core/src/test/java/io/github/lengors/maven_java_template/ExampleTest.java b/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleTest.java similarity index 54% rename from core/src/test/java/io/github/lengors/maven_java_template/ExampleTest.java rename to core/src/test/java/io/github/lengors/maven_lombok_template/ExampleTest.java index 1de9134..d2b7368 100644 --- a/core/src/test/java/io/github/lengors/maven_java_template/ExampleTest.java +++ b/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleTest.java @@ -1,4 +1,4 @@ -package io.github.lengors.maven_java_template; +package io.github.lengors.maven_lombok_template; import org.junit.jupiter.api.Assertions; import org.junit.jupiter.api.Test; @@ -9,30 +9,30 @@ * * @author lengors */ -public class ExampleTest { +class ExampleTest { /** - * Exampel test for {@link Example#Example()}. + * Example test for {@link Example#Example()}. */ @Test - public void shouldThrowUnsupportedOperationExceptionWhenInstantiateExample() { + void shouldThrowUnsupportedOperationExceptionWhenInstantiateExample() { Assertions.assertThrows(UnsupportedOperationException.class, () -> { ReflectionUtils.newInstance(Example.class); }); } /** - * Exampel test for {@link Example#example()}. + * Example test for {@link Example#example()}. */ @Test - public void shouldGetHelloWorldFromExampleFunction() { + void shouldGetHelloWorldFromExampleFunction() { Assertions.assertEquals("Hello, World!", Example.example()); } /** - * Exampel test for {@link Example#main(String[])}. + * Example test for {@link Example#main(String[])}. */ @Test - public void shouldExecuteMainFunctionWithoutErrors() { + void shouldExecuteMainFunctionWithoutErrors() { Example.main(new String[] {}); } } diff --git a/core/src/test/java/io/github/lengors/maven_java_template/package-info.java b/core/src/test/java/io/github/lengors/maven_lombok_template/package-info.java similarity index 59% rename from core/src/test/java/io/github/lengors/maven_java_template/package-info.java rename to core/src/test/java/io/github/lengors/maven_lombok_template/package-info.java index 2d21a0d..f135855 100644 --- a/core/src/test/java/io/github/lengors/maven_java_template/package-info.java +++ b/core/src/test/java/io/github/lengors/maven_lombok_template/package-info.java @@ -3,4 +3,4 @@ * * @author lengors */ -package io.github.lengors.maven_java_template; +package io.github.lengors.maven_lombok_template; diff --git a/javadoc/pom.xml b/javadoc/pom.xml index 2cf5ef9..7bfad4d 100644 --- a/javadoc/pom.xml +++ b/javadoc/pom.xml @@ -19,6 +19,7 @@ true + 1.18.20.0 3.8.0 @@ -31,6 +32,12 @@ checker-qual + + org.projectlombok + lombok + provided + + org.junit.jupiter junit-jupiter @@ -49,10 +56,47 @@ - ${project.core.directory}/src/main/java - ${project.core.directory}/src/test/java + ${project.build.directory}/generated-sources/delombok + ${project.build.directory}/generated-test-sources/delombok + + org.projectlombok + lombok-maven-plugin + ${maven.delombok.version} + + + org.projectlombok + lombok + ${maven.lombok.version} + + + + + delombok + generate-sources + + delombok + + + false + ${project.core.directory}/src/main/java + + + + test-delombok + generate-test-sources + + testDelombok + + + false + ${project.core.directory}/src/test/java + + + + + org.apache.maven.plugins maven-jar-plugin diff --git a/pom.xml b/pom.xml index ea1f652..4f62ace 100644 --- a/pom.xml +++ b/pom.xml @@ -35,6 +35,7 @@ 3.46.0 5.12.0 1.6.0 + 1.18.34 5.10.3 3.4.2 @@ -60,6 +61,12 @@ ${maven.checkerframework.version} + + org.projectlombok + lombok + ${maven.lombok.version} + + org.mockito mockito-core From a594d952f899c640a6678cf581b6a7ffb69a1102 Mon Sep 17 00:00:00 2001 From: lengors <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:42:13 +0000 Subject: [PATCH 3/9] =?UTF-8?q?=E2=9C=A8=20Added=20example=20for=20`lombok?= =?UTF-8?q?`=20usage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maven_lombok_template/ExampleData.java | 17 +++++++++++++++++ 1 file changed, 17 insertions(+) create mode 100644 core/src/main/java/io/github/lengors/maven_lombok_template/ExampleData.java diff --git a/core/src/main/java/io/github/lengors/maven_lombok_template/ExampleData.java b/core/src/main/java/io/github/lengors/maven_lombok_template/ExampleData.java new file mode 100644 index 0000000..7b10d5d --- /dev/null +++ b/core/src/main/java/io/github/lengors/maven_lombok_template/ExampleData.java @@ -0,0 +1,17 @@ +package io.github.lengors.maven_lombok_template; + +import lombok.Value; + +/** + * Example data value for Lombok. + * + * @author lengors + */ +@Value +public class ExampleData { + + /** + * Example property used in Lombok example. + */ + private String example; +} From e24b231b796f2c3222d1d243376ac7c6401cfd55 Mon Sep 17 00:00:00 2001 From: lengors <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 10:42:33 +0000 Subject: [PATCH 4/9] =?UTF-8?q?=E2=9C=85=20Add=20test=20for=20`lombok`=20u?= =?UTF-8?q?sage?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../maven_lombok_template/ExampleDataTest.java | 13 +++++++++++++ 1 file changed, 13 insertions(+) create mode 100644 core/src/test/java/io/github/lengors/maven_lombok_template/ExampleDataTest.java diff --git a/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleDataTest.java b/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleDataTest.java new file mode 100644 index 0000000..a954d70 --- /dev/null +++ b/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleDataTest.java @@ -0,0 +1,13 @@ +package io.github.lengors.maven_lombok_template; + +import org.junit.jupiter.api.Assertions; +import org.junit.jupiter.api.Test; + +class ExampleDataTest { + @Test + void shouldCorrectlyInitializeExampleData() { + final var value = "Hello, World!"; + final var data = new ExampleData(value); + Assertions.assertEquals(value, data.getExample()); + } +} From 5c87940ef4cd1fee8d67da6bcfb688e5ebabb8c3 Mon Sep 17 00:00:00 2001 From: lengors <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:20:38 +0000 Subject: [PATCH 5/9] =?UTF-8?q?=F0=9F=92=A1=20Remove=20unnecessary=20javad?= =?UTF-8?q?oc=20comments?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .../lengors/maven_lombok_template/ExampleTest.java | 14 -------------- 1 file changed, 14 deletions(-) diff --git a/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleTest.java b/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleTest.java index d2b7368..e604558 100644 --- a/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleTest.java +++ b/core/src/test/java/io/github/lengors/maven_lombok_template/ExampleTest.java @@ -4,15 +4,7 @@ import org.junit.jupiter.api.Test; import org.junit.platform.commons.util.ReflectionUtils; -/** - * Example test suite for {@link Example}. - * - * @author lengors - */ class ExampleTest { - /** - * Example test for {@link Example#Example()}. - */ @Test void shouldThrowUnsupportedOperationExceptionWhenInstantiateExample() { Assertions.assertThrows(UnsupportedOperationException.class, () -> { @@ -20,17 +12,11 @@ void shouldThrowUnsupportedOperationExceptionWhenInstantiateExample() { }); } - /** - * Example test for {@link Example#example()}. - */ @Test void shouldGetHelloWorldFromExampleFunction() { Assertions.assertEquals("Hello, World!", Example.example()); } - /** - * Example test for {@link Example#main(String[])}. - */ @Test void shouldExecuteMainFunctionWithoutErrors() { Example.main(new String[] {}); From ecf2af001fb32b27eeaf5e9e4c39655f5e7b7900 Mon Sep 17 00:00:00 2001 From: lengors <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 11:22:59 +0000 Subject: [PATCH 6/9] =?UTF-8?q?=F0=9F=94=96=20Update=20`package.json`=20to?= =?UTF-8?q?=20`1.0.0-dev.1`=20[skip=20release]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # v1.0.0-dev.1 (2024-09-07) ## ✨ New Features - [`a594d95`](https://github.com/lengors/maven-lombok-template/commit/a594d95) Added example for `lombok` usage --- CHANGELOG.md | 4 ++++ pom.xml | 2 +- 2 files changed, 5 insertions(+), 1 deletion(-) create mode 100644 CHANGELOG.md diff --git a/CHANGELOG.md b/CHANGELOG.md new file mode 100644 index 0000000..7db7995 --- /dev/null +++ b/CHANGELOG.md @@ -0,0 +1,4 @@ +# v1.0.0-dev.1 (2024-09-07) + +## ✨ New Features +- [`a594d95`](https://github.com/lengors/maven-lombok-template/commit/a594d95) Added example for `lombok` usage diff --git a/pom.xml b/pom.xml index 4f62ace..bfd2745 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.github.lengors maven-lombok-template-parent - ${revision} + 1.0.0-dev.1 pom From fda7485cdb1516103aa9a1034845b819909c530b Mon Sep 17 00:00:00 2001 From: Pedro Xavier Leite Cavadas <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:24:36 +0000 Subject: [PATCH 7/9] =?UTF-8?q?=F0=9F=92=9A=20Fix=20release=20pipeline?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- .releaserc.yml | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/.releaserc.yml b/.releaserc.yml index d01e172..37d0867 100644 --- a/.releaserc.yml +++ b/.releaserc.yml @@ -12,7 +12,7 @@ plugins: - - "@semantic-release/changelog" - changelogFile: CHANGELOG.md - - "@semantic-release/exec" - - prepareCmd: "./mvnw versions:set -DnewVersion=${nextRelease.version}" + - prepareCmd: "./mvnw versions:set-property -Dproperty=revision -DnewVersion=${nextRelease.version}" - "@semantic-release/github" - - "@semantic-release/git" - assets: From ff76984909aa5c6259a99df05968d7f033ffd2a6 Mon Sep 17 00:00:00 2001 From: Pedro Xavier Leite Cavadas <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 13:26:31 +0000 Subject: [PATCH 8/9] =?UTF-8?q?=F0=9F=92=9A=20Fix=20version?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- pom.xml | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/pom.xml b/pom.xml index bfd2745..034267f 100644 --- a/pom.xml +++ b/pom.xml @@ -7,7 +7,7 @@ io.github.lengors maven-lombok-template-parent - 1.0.0-dev.1 + ${revision} pom @@ -17,7 +17,7 @@ - 0.0.0-local.0 + 1.0.0-dev.1 UTF-8 @@ -101,4 +101,4 @@ - \ No newline at end of file + From 2597676602e16abaf1b90e1d739cbada0082cf4d Mon Sep 17 00:00:00 2001 From: lengors <24527258+lengors@users.noreply.github.com> Date: Sat, 7 Sep 2024 18:28:41 +0000 Subject: [PATCH 9/9] =?UTF-8?q?=F0=9F=94=96=20Update=20`package.json`=20to?= =?UTF-8?q?=20`1.0.0-alpha.1`=20[skip=20release]?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit # v1.0.0-alpha.1 (2024-09-07) ## ✨ New Features - [`a594d95`](https://github.com/lengors/maven-lombok-template/commit/a594d95) Added example for `lombok` usage --- CHANGELOG.md | 5 +++++ pom.xml | 2 +- 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/CHANGELOG.md b/CHANGELOG.md index 7db7995..92a14e4 100644 --- a/CHANGELOG.md +++ b/CHANGELOG.md @@ -1,3 +1,8 @@ +# v1.0.0-alpha.1 (2024-09-07) + +## ✨ New Features +- [`a594d95`](https://github.com/lengors/maven-lombok-template/commit/a594d95) Added example for `lombok` usage + # v1.0.0-dev.1 (2024-09-07) ## ✨ New Features diff --git a/pom.xml b/pom.xml index 034267f..ed6e75f 100644 --- a/pom.xml +++ b/pom.xml @@ -17,7 +17,7 @@ - 1.0.0-dev.1 + 1.0.0-alpha.1 UTF-8