Skip to content

Commit

Permalink
avec le build.gradle de master
Browse files Browse the repository at this point in the history
  • Loading branch information
OCTO-CLEM committed May 30, 2023
1 parent bbace13 commit 982f148
Show file tree
Hide file tree
Showing 2 changed files with 32 additions and 7 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -39,3 +39,6 @@ out/
.DS_Store

postgres_data

### Local Configuration ###
src/main/resources/.env
36 changes: 29 additions & 7 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,16 +1,18 @@
plugins {
id 'com.diffplug.spotless' version '6.18.0'
id 'org.springframework.boot' version "${globalSpringBootVersion}"
id 'io.spring.dependency-management' version '1.1.0'
id 'java'
id 'org.asciidoctor.jvm.convert' version '3.3.2'
id 'org.springframework.boot' version "${globalSpringBootVersion}"
id 'java'
}

ext {
mockitoVersion = '5.2.0'
set('snippetsDir', file("build/generated-snippets"))
postgresqlVersion = '42.6.0'
springBootVersion = "${globalSpringBootVersion}"
springDocVersion = '2.1.0'
springSecurityVersion = '6.0.2'
testcontainersVersion = '1.18.0'
}

group = 'com.octo.ajava'
Expand All @@ -26,22 +28,42 @@ repositories {
mavenCentral()
}


dependencies {
implementation 'com.fasterxml.jackson.datatype:jackson-datatype-jsr310'

implementation "org.springframework.boot:spring-boot-starter:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-actuator:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-web:${springBootVersion}"
implementation "org.springframework.boot:spring-boot-starter-webflux:${springBootVersion}"

// à décommenter lors du tp4
// implementation "org.springframework.security:spring-security-config:${springSecurityVersion}"
// implementation "org.springframework.security:spring-security-oauth2-client:${springSecurityVersion}"

implementation "org.springdoc:springdoc-openapi-starter-webmvc-ui:${springDocVersion}"

implementation "org.postgresql:postgresql:${postgresqlVersion}"

implementation 'me.paulschwarz:spring-dotenv:3.0.0'

testImplementation "org.springframework.boot:spring-boot-starter-test:${springBootVersion}"
testImplementation "org.mockito:mockito-core:${mockitoVersion}"
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
// testImplementation "org.springframework.security:spring-security-test:${springSecurityVersion}"
testImplementation 'org.springframework.restdocs:spring-restdocs-mockmvc'
testImplementation 'org.testcontainers:junit-jupiter'
testImplementation 'org.testcontainers:postgresql'
//testImplementation 'com.h2database:h2:2.1.214'
testImplementation "com.github.tomakehurst:wiremock-jre8-standalone:2.35.0"
testImplementation "org.testcontainers:testcontainers:${testcontainersVersion}"

annotationProcessor "org.springframework.boot:spring-boot-configuration-processor:${globalSpringBootVersion}"

testImplementation "io.rest-assured:rest-assured:5.2.0"
}

dependencyManagement {
imports {
mavenBom "org.testcontainers:testcontainers-bom:${testcontainersVersion}"
}
}

spotless {
Expand Down Expand Up @@ -76,5 +98,5 @@ asciidoctor {
}

wrapper {
gradleVersion = '8.0.2'
gradleVersion = '7.6'
}

0 comments on commit 982f148

Please sign in to comment.