Skip to content

Commit

Permalink
SMA-4-Added ModelMapper dependency
Browse files Browse the repository at this point in the history
  • Loading branch information
markpernia committed Jan 17, 2024
1 parent 4827b99 commit 30bc09a
Show file tree
Hide file tree
Showing 2 changed files with 16 additions and 0 deletions.
2 changes: 2 additions & 0 deletions backend/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,6 +29,8 @@ dependencies {
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
implementation group: 'org.modelmapper', name: 'modelmapper', version: '3.1.1'

}

tasks.named('bootBuildImage') {
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
package com.sportsmatch.backend.configs;

import org.modelmapper.ModelMapper;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

@Configuration
public class ModelMapperConfig {

@Bean
public ModelMapper modelMapper() {
return new ModelMapper();
}
}

0 comments on commit 30bc09a

Please sign in to comment.