Skip to content

Commit d556438

Browse files
authored
[JAVA-40671] Moved articles from vavr to vavr-2 (#17887)
1 parent ce0e713 commit d556438

File tree

23 files changed

+139
-107
lines changed

23 files changed

+139
-107
lines changed

pom.xml

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -602,7 +602,6 @@
602602
<!--<module>tablesaw</module>--><!-- failing after upgrading to jdk17-->
603603
<!--<module>spring-swagger-codegen-modules/openapi-custom-generator</module>
604604
<module>spring-swagger-codegen-modules/openapi-custom-generator-api-client</module> --> <!-- cannot add the individual modules here because the order is not guaranteed -->
605-
<module>vavr-modules/vavr</module>
606605
</modules>
607606

608607
<properties>
@@ -995,7 +994,6 @@
995994
<!--<module>tablesaw</module>--><!-- failing after upgrading to jdk17-->
996995
<!--<module>spring-swagger-codegen-modules/openapi-custom-generator</module>
997996
<module>spring-swagger-codegen-modules/openapi-custom-generator-api-client</module> --> <!-- cannot add the individual modules here because the order is not guaranteed -->
998-
<module>vavr-modules/vavr</module>
999997
</modules>
1000998

1001999
<properties>

vavr-modules/pom.xml

Lines changed: 1 addition & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -14,22 +14,11 @@
1414
</parent>
1515

1616
<modules>
17-
<!-- <module>vavr</module> --> <!-- failing after upgrade to jdk21 -->
17+
<module>vavr</module>
1818
<module>vavr-2</module>
1919
<module>java-vavr-stream</module>
2020
</modules>
2121

22-
<build>
23-
<pluginManagement>
24-
<plugins>
25-
<plugin>
26-
<groupId>org.springframework.boot</groupId>
27-
<artifactId>spring-boot-maven-plugin</artifactId>
28-
</plugin>
29-
</plugins>
30-
</pluginManagement>
31-
</build>
32-
3322
<properties>
3423
<vavr.version>0.9.2</vavr.version>
3524
</properties>

vavr-modules/vavr-2/README.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,4 +5,12 @@ This module contains articles about Vavr.
55
### Relevant Articles:
66
- [Introduction to Vavr’s Either](https://www.baeldung.com/vavr-either)
77
- [Interoperability Between Java and Vavr](https://www.baeldung.com/java-vavr)
8+
- [Guide to Collections API in Vavr](https://www.baeldung.com/vavr-collections)
9+
- [Collection Factory Methods for Vavr](https://www.baeldung.com/vavr-collection-factory-methods)
10+
- [Introduction to Future in Vavr](https://www.baeldung.com/vavr-future)
11+
- [Introduction to Vavr’s Validation API](https://www.baeldung.com/vavr-validation-api)
12+
- [Guide to Pattern Matching in Vavr](https://www.baeldung.com/vavr-pattern-matching)
13+
- [Property Testing Example With Vavr](https://www.baeldung.com/vavr-property-testing)
14+
- [Vavr Support in Spring Data](https://www.baeldung.com/spring-vavr)
15+
- [Exceptions in Lambda Expression Using Vavr](https://www.baeldung.com/exceptions-using-vavr)
816
- [[<-- prev]](/vavr-modules/vavr)

vavr-modules/vavr-2/pom.xml

Lines changed: 31 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -19,6 +19,37 @@
1919
<artifactId>vavr-test</artifactId>
2020
<version>${vavr.version}</version>
2121
</dependency>
22+
<dependency>
23+
<groupId>org.springframework.boot</groupId>
24+
<artifactId>spring-boot-starter-data-jpa</artifactId>
25+
<version>${spring-boot.version}</version>
26+
</dependency>
27+
<dependency>
28+
<groupId>com.h2database</groupId>
29+
<artifactId>h2</artifactId>
30+
<version>${h2.version}</version>
31+
</dependency>
32+
<dependency>
33+
<groupId>org.springframework.boot</groupId>
34+
<artifactId>spring-boot-starter-test</artifactId>
35+
<version>${spring-boot.version}</version>
36+
<scope>test</scope>
37+
</dependency>
2238
</dependencies>
2339

40+
<build>
41+
<pluginManagement>
42+
<plugins>
43+
<plugin>
44+
<groupId>org.springframework.boot</groupId>
45+
<artifactId>spring-boot-maven-plugin</artifactId>
46+
</plugin>
47+
</plugins>
48+
</pluginManagement>
49+
</build>
50+
51+
<properties>
52+
<spring-boot.version>2.7.11</spring-boot.version>
53+
</properties>
54+
2455
</project>

vavr-modules/vavr/src/main/java/com/baeldung/Application.java renamed to vavr-modules/vavr-2/src/main/java/com/baeldung/vavr/spring/Application.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung;
1+
package com.baeldung.vavr.spring;
22

33
import org.springframework.boot.SpringApplication;
44
import org.springframework.boot.autoconfigure.SpringBootApplication;

vavr-modules/vavr/src/main/java/com/baeldung/vavr/User.java renamed to vavr-modules/vavr-2/src/main/java/com/baeldung/vavr/spring/model/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.vavr;
1+
package com.baeldung.vavr.spring.model;
22

33
import javax.persistence.Entity;
44
import javax.persistence.GeneratedValue;

vavr-modules/vavr/src/main/java/com/baeldung/repositories/VavrUserRepository.java renamed to vavr-modules/vavr-2/src/main/java/com/baeldung/vavr/spring/repositories/VavrUserRepository.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
1-
package com.baeldung.repositories;
1+
package com.baeldung.vavr.spring.repositories;
22

33
import org.springframework.data.repository.Repository;
44

5-
import com.baeldung.vavr.User;
6-
75
import io.vavr.collection.Seq;
86
import io.vavr.control.Option;
97

8+
import com.baeldung.vavr.spring.model.User;
9+
1010
public interface VavrUserRepository extends Repository<User, Long> {
1111

1212
Option<User> findById(long id);

vavr-modules/vavr/src/main/java/com/baeldung/vavrvalidation/application/Application.java renamed to vavr-modules/vavr-2/src/main/java/com/baeldung/vavr/vavrvalidation/application/Application.java

Lines changed: 4 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,8 @@
1-
package com.baeldung.vavrvalidation.application;
1+
package com.baeldung.vavr.vavrvalidation.application;
2+
3+
import com.baeldung.vavr.vavrvalidation.model.User;
4+
import com.baeldung.vavr.vavrvalidation.validator.UserValidator;
25

3-
import com.baeldung.vavrvalidation.model.User;
4-
import com.baeldung.vavrvalidation.validator.UserValidator;
56
import io.vavr.collection.Seq;
67
import io.vavr.control.Validation;
78

vavr-modules/vavr/src/main/java/com/baeldung/vavrvalidation/model/User.java renamed to vavr-modules/vavr-2/src/main/java/com/baeldung/vavr/vavrvalidation/model/User.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
package com.baeldung.vavrvalidation.model;
1+
package com.baeldung.vavr.vavrvalidation.model;
22

33
public class User {
44
private String name;

vavr-modules/vavr/src/main/java/com/baeldung/vavrvalidation/validator/UserValidator.java renamed to vavr-modules/vavr-2/src/main/java/com/baeldung/vavr/vavrvalidation/validator/UserValidator.java

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,7 @@
1-
package com.baeldung.vavrvalidation.validator;
1+
package com.baeldung.vavr.vavrvalidation.validator;
2+
3+
import com.baeldung.vavr.vavrvalidation.model.User;
24

3-
import com.baeldung.vavrvalidation.model.User;
45
import io.vavr.collection.CharSeq;
56
import io.vavr.collection.Seq;
67
import io.vavr.control.Validation;

0 commit comments

Comments
 (0)