Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to Spring boot 3.x and Java 22 #16

Open
wants to merge 2 commits into
base: master
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 0 additions & 8 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,6 @@ Explain

https://medium.com/swlh/clean-architecture-java-spring-fea51e26e00

My other artichels

Recillence in Java Aplication
https://medium.com/swlh/future-proofing-your-java-applications-understanding-the-power-of-resilience-patterns-with-cfbafdcfdc86

Concurrency Java Application with examples
https://medium.com/swlh/conquering-concurrency-in-spring-boot-strategies-and-solutions-152f41dd9005

*Compile* </br>
mvn clean install

Expand Down
32 changes: 10 additions & 22 deletions core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -4,46 +4,34 @@
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>

<parent>
<groupId>com.d4i.sample</groupId>
<artifactId>clean-arch</artifactId>
<version>1.0</version>
</parent>

<groupId>com.d4i.sample.movie</groupId>
<artifactId>clean-arch-core</artifactId>
<artifactId>core</artifactId>
<version>0.0.1</version>
<name>core</name>
<packaging>jar</packaging>
<description>domain project</description>

<properties>
<java.version>1.8</java.version>
<lombok.version>1.18.8</lombok.version>
<swagger2.version>2.8.0</swagger2.version>
<java.version>22</java.version>
</properties>

<parent>
<groupId>com.d4i.sample</groupId>
<artifactId>clean-arch</artifactId>
<version>1.0</version>
</parent>

<dependencies>
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<optional>true</optional>
<version>${lombok.version}</version>
</dependency>

<dependency>
<groupId>javax.validation</groupId>
<artifactId>validation-api</artifactId>
<version>2.0.1.Final</version>
</dependency>


<dependency>
<groupId>javax.inject</groupId>
<artifactId>javax.inject</artifactId>
<version>1</version>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-validation</artifactId>
</dependency>

</dependencies>

</project>
Original file line number Diff line number Diff line change
@@ -1,12 +1,9 @@
package com.d4i.sample.movie.category;

import jakarta.validation.constraints.Min;
import jakarta.validation.constraints.NotEmpty;
import java.io.Serializable;

import javax.validation.constraints.Min;
import javax.validation.constraints.NotEmpty;



import com.d4i.sample.movie.shared.SelfValidating;

import lombok.AllArgsConstructor;
Expand Down
Original file line number Diff line number Diff line change
@@ -1,11 +1,6 @@
package com.d4i.sample.movie.category.exception;




public class CategoryAlreadyExistException extends Exception {



private static final long serialVersionUID = -5330068136795055851L;

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,9 @@

public interface CategoryRepositoryService {

public Collection<Category> getAllCategories();
Collection<Category> getAllCategories();

public void saveCategory(Category category) ;
void saveCategory(Category category) ;

public Boolean doesCategoryNameExists(String name);
Boolean doesCategoryNameExists(String name);
}
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,6 @@

public interface CreateCategoryUseCase {

public void execute(Category category) throws CategoryAlreadyExistException ;
void execute(Category category) throws CategoryAlreadyExistException ;

}
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,6 @@

public interface GetAllCategoriesUseCase {

public Collection<Category> execute();
Collection<Category> execute();

}
Original file line number Diff line number Diff line change
@@ -1,16 +1,15 @@
package com.d4i.sample.movie.shared;

import jakarta.validation.ConstraintViolation;
import jakarta.validation.ConstraintViolationException;
import jakarta.validation.Validation;
import jakarta.validation.Validator;
import jakarta.validation.ValidatorFactory;
import java.util.Set;

import javax.validation.ConstraintViolation;
import javax.validation.ConstraintViolationException;
import javax.validation.Validation;
import javax.validation.Validator;
import javax.validation.ValidatorFactory;

public abstract class SelfValidating<T> {

private Validator validator;
private final Validator validator;

protected SelfValidating() {
ValidatorFactory factory = Validation.buildDefaultValidatorFactory();
Expand Down
128 changes: 0 additions & 128 deletions infraestructure/pom.xml

This file was deleted.

This file was deleted.

This file was deleted.

Loading