From 2d01964ebe2f3c6e2cef4ba7b9ab69c12069e77e Mon Sep 17 00:00:00 2001 From: Haroon Khan Date: Tue, 11 Jan 2022 19:44:57 +0000 Subject: [PATCH] [JAVA-9348] Split lombok module --- lombok-2/README.md | 10 ++++++++ lombok-2/lombok.config | 2 ++ lombok-2/pom.xml | 25 +++++++++++++++++++ .../lombok/accessors/model/BasicAccount.java | 0 .../accessors/model/ChainedAccount.java | 0 .../accessors/model/ChainedFluentAccount.java | 0 .../lombok/accessors/model/FluentAccount.java | 0 .../accessors/model/PrefixedAccount.java | 0 .../model/PrefixedFluentAccount.java | 0 .../accessors/model/StandardAccount.java | 0 .../baeldung/lombok/valvar/ValExample.java | 0 .../baeldung/lombok/valvar/VarExample.java | 0 .../com/baeldung/lombok/valvar/lombok.config | 0 .../java/com/baeldung/lombok/with/Device.java | 0 .../java/com/baeldung/lombok/with/Holder.java | 0 .../baeldung/lombok/with/ImprovedUser.java | 0 .../com/baeldung/lombok/with/KioskDevice.java | 0 .../java/com/baeldung/lombok/with/Stock.java | 0 .../java/com/baeldung/lombok/with/User.java | 0 lombok-2/src/main/resources/logback.xml | 13 ++++++++++ .../lombok/accessors/AccessorsUnitTest.java | 0 .../lombok/valvar/ValExampleUnitTest.java | 0 .../lombok/valvar/VarExampleUnitTest.java | 0 .../baeldung/lombok/with/HolderUnitTest.java | 0 .../lombok/with/ImprovedUserUnitTest.java | 0 .../lombok/with/KioskDeviceWithUnitTest.java | 0 .../lombok/with/StockWithUnitTest.java | 0 .../lombok/with/UserWithUnitTest.java | 0 lombok/README.md | 4 +-- lombok/pom.xml | 18 ++++++++----- lombok/src/main/README.md | 3 --- pom.xml | 2 ++ 32 files changed, 65 insertions(+), 12 deletions(-) create mode 100644 lombok-2/README.md create mode 100644 lombok-2/lombok.config create mode 100644 lombok-2/pom.xml rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/accessors/model/BasicAccount.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/accessors/model/ChainedAccount.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/accessors/model/ChainedFluentAccount.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/accessors/model/FluentAccount.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/accessors/model/PrefixedAccount.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/accessors/model/PrefixedFluentAccount.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/accessors/model/StandardAccount.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/valvar/ValExample.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/valvar/VarExample.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/valvar/lombok.config (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/with/Device.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/with/Holder.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/with/ImprovedUser.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/with/KioskDevice.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/with/Stock.java (100%) rename {lombok => lombok-2}/src/main/java/com/baeldung/lombok/with/User.java (100%) create mode 100644 lombok-2/src/main/resources/logback.xml rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/accessors/AccessorsUnitTest.java (100%) rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/valvar/ValExampleUnitTest.java (100%) rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/valvar/VarExampleUnitTest.java (100%) rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/with/HolderUnitTest.java (100%) rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/with/ImprovedUserUnitTest.java (100%) rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/with/KioskDeviceWithUnitTest.java (100%) rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/with/StockWithUnitTest.java (100%) rename {lombok => lombok-2}/src/test/java/com/baeldung/lombok/with/UserWithUnitTest.java (100%) delete mode 100644 lombok/src/main/README.md diff --git a/lombok-2/README.md b/lombok-2/README.md new file mode 100644 index 0000000000..25d097a7ea --- /dev/null +++ b/lombok-2/README.md @@ -0,0 +1,10 @@ +## Project Lombok + +This module contains articles about Project Lombok. + +### Relevant Articles: + +- [Using Lombok’s @Accessors Annotation](https://www.baeldung.com/lombok-accessors) +- [Declaring Val and Var Variables in Lombok](https://www.baeldung.com/java-lombok-val-var) +- [Lombok Using @With Annotations](https://www.baeldung.com/lombok-with-annotations) +- More articles: [[<-- prev]](../lombok) diff --git a/lombok-2/lombok.config b/lombok-2/lombok.config new file mode 100644 index 0000000000..f68b99fb85 --- /dev/null +++ b/lombok-2/lombok.config @@ -0,0 +1,2 @@ +config.stopBubbling = true +lombok.experimental.flagUsage = warning diff --git a/lombok-2/pom.xml b/lombok-2/pom.xml new file mode 100644 index 0000000000..3c67e959a4 --- /dev/null +++ b/lombok-2/pom.xml @@ -0,0 +1,25 @@ + + + 4.0.0 + lombok-2 + 0.1-SNAPSHOT + lombok-2 + + + com.baeldung + parent-modules + 1.0.0-SNAPSHOT + + + + + org.projectlombok + lombok + ${lombok.version} + provided + + + + diff --git a/lombok/src/main/java/com/baeldung/lombok/accessors/model/BasicAccount.java b/lombok-2/src/main/java/com/baeldung/lombok/accessors/model/BasicAccount.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/accessors/model/BasicAccount.java rename to lombok-2/src/main/java/com/baeldung/lombok/accessors/model/BasicAccount.java diff --git a/lombok/src/main/java/com/baeldung/lombok/accessors/model/ChainedAccount.java b/lombok-2/src/main/java/com/baeldung/lombok/accessors/model/ChainedAccount.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/accessors/model/ChainedAccount.java rename to lombok-2/src/main/java/com/baeldung/lombok/accessors/model/ChainedAccount.java diff --git a/lombok/src/main/java/com/baeldung/lombok/accessors/model/ChainedFluentAccount.java b/lombok-2/src/main/java/com/baeldung/lombok/accessors/model/ChainedFluentAccount.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/accessors/model/ChainedFluentAccount.java rename to lombok-2/src/main/java/com/baeldung/lombok/accessors/model/ChainedFluentAccount.java diff --git a/lombok/src/main/java/com/baeldung/lombok/accessors/model/FluentAccount.java b/lombok-2/src/main/java/com/baeldung/lombok/accessors/model/FluentAccount.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/accessors/model/FluentAccount.java rename to lombok-2/src/main/java/com/baeldung/lombok/accessors/model/FluentAccount.java diff --git a/lombok/src/main/java/com/baeldung/lombok/accessors/model/PrefixedAccount.java b/lombok-2/src/main/java/com/baeldung/lombok/accessors/model/PrefixedAccount.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/accessors/model/PrefixedAccount.java rename to lombok-2/src/main/java/com/baeldung/lombok/accessors/model/PrefixedAccount.java diff --git a/lombok/src/main/java/com/baeldung/lombok/accessors/model/PrefixedFluentAccount.java b/lombok-2/src/main/java/com/baeldung/lombok/accessors/model/PrefixedFluentAccount.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/accessors/model/PrefixedFluentAccount.java rename to lombok-2/src/main/java/com/baeldung/lombok/accessors/model/PrefixedFluentAccount.java diff --git a/lombok/src/main/java/com/baeldung/lombok/accessors/model/StandardAccount.java b/lombok-2/src/main/java/com/baeldung/lombok/accessors/model/StandardAccount.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/accessors/model/StandardAccount.java rename to lombok-2/src/main/java/com/baeldung/lombok/accessors/model/StandardAccount.java diff --git a/lombok/src/main/java/com/baeldung/lombok/valvar/ValExample.java b/lombok-2/src/main/java/com/baeldung/lombok/valvar/ValExample.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/valvar/ValExample.java rename to lombok-2/src/main/java/com/baeldung/lombok/valvar/ValExample.java diff --git a/lombok/src/main/java/com/baeldung/lombok/valvar/VarExample.java b/lombok-2/src/main/java/com/baeldung/lombok/valvar/VarExample.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/valvar/VarExample.java rename to lombok-2/src/main/java/com/baeldung/lombok/valvar/VarExample.java diff --git a/lombok/src/main/java/com/baeldung/lombok/valvar/lombok.config b/lombok-2/src/main/java/com/baeldung/lombok/valvar/lombok.config similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/valvar/lombok.config rename to lombok-2/src/main/java/com/baeldung/lombok/valvar/lombok.config diff --git a/lombok/src/main/java/com/baeldung/lombok/with/Device.java b/lombok-2/src/main/java/com/baeldung/lombok/with/Device.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/with/Device.java rename to lombok-2/src/main/java/com/baeldung/lombok/with/Device.java diff --git a/lombok/src/main/java/com/baeldung/lombok/with/Holder.java b/lombok-2/src/main/java/com/baeldung/lombok/with/Holder.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/with/Holder.java rename to lombok-2/src/main/java/com/baeldung/lombok/with/Holder.java diff --git a/lombok/src/main/java/com/baeldung/lombok/with/ImprovedUser.java b/lombok-2/src/main/java/com/baeldung/lombok/with/ImprovedUser.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/with/ImprovedUser.java rename to lombok-2/src/main/java/com/baeldung/lombok/with/ImprovedUser.java diff --git a/lombok/src/main/java/com/baeldung/lombok/with/KioskDevice.java b/lombok-2/src/main/java/com/baeldung/lombok/with/KioskDevice.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/with/KioskDevice.java rename to lombok-2/src/main/java/com/baeldung/lombok/with/KioskDevice.java diff --git a/lombok/src/main/java/com/baeldung/lombok/with/Stock.java b/lombok-2/src/main/java/com/baeldung/lombok/with/Stock.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/with/Stock.java rename to lombok-2/src/main/java/com/baeldung/lombok/with/Stock.java diff --git a/lombok/src/main/java/com/baeldung/lombok/with/User.java b/lombok-2/src/main/java/com/baeldung/lombok/with/User.java similarity index 100% rename from lombok/src/main/java/com/baeldung/lombok/with/User.java rename to lombok-2/src/main/java/com/baeldung/lombok/with/User.java diff --git a/lombok-2/src/main/resources/logback.xml b/lombok-2/src/main/resources/logback.xml new file mode 100644 index 0000000000..7d900d8ea8 --- /dev/null +++ b/lombok-2/src/main/resources/logback.xml @@ -0,0 +1,13 @@ + + + + + %d{HH:mm:ss.SSS} [%thread] %-5level %logger{36} - %msg%n + + + + + + + + \ No newline at end of file diff --git a/lombok/src/test/java/com/baeldung/lombok/accessors/AccessorsUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/accessors/AccessorsUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/accessors/AccessorsUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/accessors/AccessorsUnitTest.java diff --git a/lombok/src/test/java/com/baeldung/lombok/valvar/ValExampleUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/valvar/ValExampleUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/valvar/ValExampleUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/valvar/ValExampleUnitTest.java diff --git a/lombok/src/test/java/com/baeldung/lombok/valvar/VarExampleUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/valvar/VarExampleUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/valvar/VarExampleUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/valvar/VarExampleUnitTest.java diff --git a/lombok/src/test/java/com/baeldung/lombok/with/HolderUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/with/HolderUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/with/HolderUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/with/HolderUnitTest.java diff --git a/lombok/src/test/java/com/baeldung/lombok/with/ImprovedUserUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/with/ImprovedUserUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/with/ImprovedUserUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/with/ImprovedUserUnitTest.java diff --git a/lombok/src/test/java/com/baeldung/lombok/with/KioskDeviceWithUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/with/KioskDeviceWithUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/with/KioskDeviceWithUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/with/KioskDeviceWithUnitTest.java diff --git a/lombok/src/test/java/com/baeldung/lombok/with/StockWithUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/with/StockWithUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/with/StockWithUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/with/StockWithUnitTest.java diff --git a/lombok/src/test/java/com/baeldung/lombok/with/UserWithUnitTest.java b/lombok-2/src/test/java/com/baeldung/lombok/with/UserWithUnitTest.java similarity index 100% rename from lombok/src/test/java/com/baeldung/lombok/with/UserWithUnitTest.java rename to lombok-2/src/test/java/com/baeldung/lombok/with/UserWithUnitTest.java diff --git a/lombok/README.md b/lombok/README.md index a92840f698..a3dcaf8c0b 100644 --- a/lombok/README.md +++ b/lombok/README.md @@ -12,8 +12,6 @@ This module contains articles about Project Lombok. - [Lombok Builder with Custom Setter](https://www.baeldung.com/lombok-builder-custom-setter) - [Setting up Lombok with Eclipse and Intellij](https://www.baeldung.com/lombok-ide) - [Using the @Singular Annotation with Lombok Builders](https://www.baeldung.com/lombok-builder-singular) -- [Using Lombok’s @Accessors Annotation](https://www.baeldung.com/lombok-accessors) - [Omitting Getter or Setter in Lombok](https://www.baeldung.com/lombok-omit-getter-setter) -- [Declaring Val and Var Variables in Lombok](https://www.baeldung.com/java-lombok-val-var) -- [Lombok Using @With Annotations](https://www.baeldung.com/lombok-with-annotations) - [Lombok Configuration System](https://www.baeldung.com/lombok-configuration-system) +- More articles: [[next -->]](../lombok-2) \ No newline at end of file diff --git a/lombok/pom.xml b/lombok/pom.xml index 4a78c5422c..cb7caa07f9 100644 --- a/lombok/pom.xml +++ b/lombok/pom.xml @@ -17,7 +17,6 @@ org.projectlombok lombok - ${lombok.version} provided @@ -63,18 +62,25 @@ false - + - 1.0.0.Final - 1.18.20.0 diff --git a/lombok/src/main/README.md b/lombok/src/main/README.md deleted file mode 100644 index 4092d8ce99..0000000000 --- a/lombok/src/main/README.md +++ /dev/null @@ -1,3 +0,0 @@ -### Relevant Articles: - -- [Guide to the Linux wc Command](https://www.baeldung.com/linux/wc-command) diff --git a/pom.xml b/pom.xml index 24357f452a..64fafb4e34 100644 --- a/pom.xml +++ b/pom.xml @@ -503,6 +503,7 @@ linkrest logging-modules lombok + lombok-2 lombok-custom lucene @@ -984,6 +985,7 @@ linkrest logging-modules lombok + lombok-2 lombok-custom lucene