forked from microservices-patterns/ftgo-application
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (71 loc) · 3.47 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath "io.spring.gradle:dependency-management-plugin:$springDependencyManagementPluginVersion"
// if using Stub Runner (consumer side) only remove this dependency
classpath "org.springframework.cloud:spring-cloud-contract-gradle-plugin:$springCloudContractDependenciesVersion"
}
}
apply plugin: "io.spring.dependency-management"
apply plugin: 'spring-cloud-contract'
apply plugin: IntegrationTestsPlugin
apply plugin: FtgoJSONSchema2PojoPlugin
dependencyManagement {
imports {
mavenBom "org.springframework.cloud:spring-cloud-contract-dependencies:$springCloudContractDependenciesVersion"
}
}
contracts {
contractsDslDir = new File("../ftgo-kitchen-service-contracts/src/main/resources/contracts")
packageWithBaseClasses = 'net.chrisrichardson.ftgo.kitchenservice.contract'
generatedTestSourcesDir = project.file("${project.buildDir}/generated-integration-test-sources/contracts")
sourceSet = "integrationTest"
}
sourceSets {
integrationTest {
java {
srcDir project.file("${project.buildDir}/generated-integration-test-sources/contracts")
}
}
}
compileTestGroovy.enabled=false
apply plugin: FtgoServicePlugin
dependencies {
ftgoApiSpecification project(":ftgo-restaurant-service-api-spec")
compile "io.eventuate.tram.core:eventuate-tram-spring-jdbc-kafka:$eventuateTramVersion"
compile "io.eventuate.tram.core:eventuate-tram-spring-events:$eventuateTramVersion"
compile "io.eventuate.tram.core:eventuate-tram-spring-messaging:$eventuateTramVersion"
compile "io.eventuate.tram.sagas:eventuate-tram-sagas-spring-orchestration-simple-dsl:$eventuateTramSagasVersion"
compile project(":common-swagger")
compile project(":ftgo-common-jpa")
compile project(":ftgo-kitchen-service-api")
compile project(":ftgo-restaurant-service-api")
compile "io.eventuate.tram.core:eventuate-tram-aggregate-domain-events:$eventuateTramVersion"
compile "org.springframework.boot:spring-boot-starter-data-jpa:$springBootVersion"
compile "org.springframework.boot:spring-boot-starter-actuator:$springBootVersion"
compile "org.springframework.boot:spring-boot-starter-web:$springBootVersion"
compile 'javax.el:javax.el-api:2.2.5'
compile('org.apache.kafka:kafka-clients:2.3.0') {
force = true
}
testCompile "io.eventuate.util:eventuate-util-test:$eventuateUtilVersion"
testCompile "io.eventuate.tram.core:eventuate-tram-test-util:$eventuateTramVersion"
testCompile "io.eventuate.tram.sagas:eventuate-tram-sagas-spring-in-memory:$eventuateTramSagasVersion"
testCompile "io.eventuate.tram.core:eventuate-tram-spring-in-memory:$eventuateTramVersion"
testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
testCompile "com.jayway.restassured:rest-assured:$restAssuredVersion"
testCompile "com.jayway.jsonpath:json-path:2.3.0"
testCompile "io.eventuate.tram.core:eventuate-tram-spring-testing-support-cloud-contract:$eventuateTramVersion"
testCompile 'org.springframework.cloud:spring-cloud-starter-contract-verifier'
}
ftgoJsonSchema2Pojo {
ftgoRestaurantService {
source = files("${ftgoApiSpecsDir}/ftgo-restaurant-service-api-spec/messages")
targetPackage = "net.chrisrichardson.ftgo.restaurantservice.events"
includeAdditionalProperties = false
generateBuilders = true
useLongIntegers = true
}
}