diff --git a/build.gradle b/build.gradle index 0394409..ba36735 100644 --- a/build.gradle +++ b/build.gradle @@ -22,23 +22,9 @@ repositories { } dependencies { - implementation project(':batch-rest-repository') - implementation project(':batch-skip-step') - implementation project(':data-domain-events') - implementation project(':data-envers-audit') - implementation project(':data-jpa-audit') - implementation project(':data-jpa-event') - implementation project(':data-jpa-filtered-query') - implementation project(':data-mongodb-audit') - implementation project(':data-mongodb-full-text-search') - implementation project(':data-mongodb-tc-data-load') - implementation project(':data-mongodb-transactional') - implementation project(':data-rest-validation') - implementation project(':graphql') - implementation project(':jooq') - implementation project(':test-execution-listeners') - implementation project(':test-rest-assured') - + subprojects.forEach { p -> { + implementation project(":${p.name}") + }} } dependencyManagement { @@ -47,10 +33,28 @@ dependencyManagement { } } +reporting { + reports { + testCodeCoverageReport(JacocoCoverageReport) { + testType = TestSuiteType.UNIT_TEST + } + } +} + sonar { properties { property "sonar.projectKey", "rashidi_spring-boot-tutorials" property "sonar.organization", "rashidi-github" property "sonar.host.url", "https://sonarcloud.io" } +} + +subprojects { + apply { + plugin('jacoco') + } +} + +tasks.named('check') { + dependsOn tasks.named('testCodeCoverageReport', JacocoReport) } \ No newline at end of file diff --git a/cloud-jdbc-env-repo/build.gradle b/cloud-jdbc-env-repo/build.gradle index f83cc62..7367d15 100644 --- a/cloud-jdbc-env-repo/build.gradle +++ b/cloud-jdbc-env-repo/build.gradle @@ -28,6 +28,8 @@ ext { } dependencies { + implementation platform("org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}") + implementation 'org.springframework.boot:spring-boot-starter-data-jdbc' implementation 'org.springframework.cloud:spring-cloud-starter-bootstrap' implementation 'org.springframework.cloud:spring-cloud-config-server' @@ -39,12 +41,6 @@ dependencies { testImplementation 'org.testcontainers:mysql' } -dependencyManagement { - imports { - mavenBom "org.springframework.cloud:spring-cloud-dependencies:${springCloudVersion}" - } -} - tasks.named('test') { useJUnitPlatform() }