Files
reactor-ddd/build.gradle

142 lines
3.7 KiB
Groovy

buildscript {
ext {
springBootVersion = '2.1.7.RELEASE'
springDependencyMavagementVersion = '1.0.8.RELEASE'
reactorVersion = '3.3.0.RELEASE'
}
repositories {
mavenCentral()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:$springBootVersion"
}
}
plugins {
// id 'org.springframework.boot' version "$springBootVersion"
id 'io.spring.dependency-management' version "$springDependencyMavagementVersion"
id 'java'
id 'java-library'
}
allprojects {
apply plugin: 'java'
apply plugin: 'java-library'
apply plugin: 'io.spring.dependency-management'
repositories {
jcenter()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencyManagement {
imports { mavenBom("org.springframework.boot:spring-boot-dependencies:${springBootVersion}") }
}
}
subprojects {
group = 'com.mz.reactor.ddd'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
dependencies {
// https://mvnrepository.com/artifact/com.google.guava/guava
implementation group: 'com.google.guava', name: 'guava', version: '28.1-jre'
annotationProcessor 'org.immutables:value:2.7.5'
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter-engine'
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine"
testCompile group: 'org.assertj', name: 'assertj-core', version: '3.14.0'
}
test {
useJUnitPlatform{
includeEngines 'junit-jupiter'
}
}
}
project(':common-api') {
dependencies {
api project(':shared-dependencies')
}
}
project(':bank-account:bank-account-application') {
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.springframework.boot'
// springBoot {
// mainClassName = 'com.mz.reactor.ddd.reactorddd.application.BankAccountApp'
// }
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-webflux'
// https://mvnrepository.com/artifact/io.projectreactor/reactor-core
implementation project(':bank-account:account-domain')
implementation project(':bank-account:transaction-domain')
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'io.projectreactor:reactor-test'
}
}
project(':bank-account:account-domain') {
dependencies {
api project(':common-api')
api project(':bank-account:account-domain-api')
}
}
project(':bank-account:account-domain-api') {
dependencies {
api project(':common-api')
}
}
project(':bank-account:transaction-domain') {
dependencies {
api project(':common-api')
api project(':bank-account:transaction-domain-api')
}
}
project(':bank-account:transaction-domain-api') {
dependencies {
api project(':common-api')
}
}
project(':shared-dependencies') {
dependencies {
api 'org.immutables:value:2.7.5'
api group: 'org.apache.commons', name: 'commons-lang3', version: '3.9'
}
}
project(':common-persistance') {
dependencies {
api project(':common-api')
implementation group: 'io.projectreactor', name: 'reactor-core'
testImplementation 'io.projectreactor:reactor-test'
}
}
project(':common-components') {
apply plugin: 'io.spring.dependency-management'
dependencies {
api project(':common-api')
implementation group: 'io.projectreactor', name: 'reactor-core'
implementation 'org.springframework:spring-context'
testImplementation 'io.projectreactor:reactor-test'
}
}