mirror of
https://codeberg.org/jsilveira/br.dev.jsilveira.coresync.git
synced 2026-06-11 18:05:06 +00:00
- Create UserController, WorkoutController, and SessionController to expose application use cases via REST endpoints - Add request and response DTOs alongside web mappers for the User, Workout, and Session domains - Introduce GlobalExceptionHandler to handle domain-specific exceptions and return HTTP 400 Bad Request responses - Add Springdoc OpenAPI and Scalar dependencies to build.gradle for API documentation - Configure OpenAPI and Scalar settings in the base and dev application properties
46 lines
1.7 KiB
Groovy
46 lines
1.7 KiB
Groovy
plugins {
|
|
id 'groovy'
|
|
id 'org.springframework.boot' version '4.0.6'
|
|
id 'io.spring.dependency-management' version '1.1.7'
|
|
}
|
|
|
|
group = 'br.dev.jsilveira'
|
|
version = '0.0.1-SNAPSHOT'
|
|
|
|
java {
|
|
toolchain {
|
|
languageVersion = JavaLanguageVersion.of(26)
|
|
}
|
|
}
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-actuator'
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-mongodb'
|
|
implementation 'org.springframework.boot:spring-boot-starter-mongodb'
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
|
implementation 'org.springframework.boot:spring-boot-starter-webmvc'
|
|
implementation 'org.apache.groovy:groovy'
|
|
|
|
// Source: https://mvnrepository.com/artifact/com.scalar.maven/scalar-webmvc
|
|
implementation 'com.scalar.maven:scalar-webmvc:0.6.37'
|
|
// Source: https://mvnrepository.com/artifact/org.springdoc/springdoc-openapi-starter-webmvc-scalar
|
|
implementation 'org.springdoc:springdoc-openapi-starter-webmvc-scalar:3.0.3'
|
|
|
|
developmentOnly 'org.springframework.boot:spring-boot-devtools'
|
|
developmentOnly 'org.springframework.boot:spring-boot-docker-compose'
|
|
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-actuator-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-data-mongodb-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-mongodb-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-security-test'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-webmvc-test'
|
|
testRuntimeOnly 'org.junit.platform:junit-platform-launcher'
|
|
}
|
|
|
|
tasks.named('test') {
|
|
useJUnitPlatform()
|
|
}
|