@@ -11,10 +11,6 @@ buildscript {
11
11
}
12
12
}
13
13
14
- plugins {
15
- id " com.github.ben-manes.versions" version " 0.20.0"
16
- }
17
-
18
14
apply plugin : WaitForMySqlPlugin
19
15
apply plugin : ' docker-compose'
20
16
@@ -46,7 +42,17 @@ subprojects {
46
42
}
47
43
48
44
dependencies {
45
+
49
46
implementation(platform(" io.eventuate.platform:eventuate-platform-dependencies:$eventuatePlatformVersion " ))
47
+ constraints {
48
+ compile (" io.netty:netty-codec-http2" ) {
49
+ version {
50
+ strictly(" 4.1.72.Final" )
51
+ }
52
+ }
53
+ }
54
+
55
+
50
56
}
51
57
}
52
58
@@ -59,8 +65,36 @@ task compileAll(type: GradleBuild) {
59
65
}
60
66
61
67
dockerCompose {
68
+
69
+ environment. put " EVENTUATE_COMMON_VERSION" , eventuateCommonImageVersion
70
+ environment. put " EVENTUATE_CDC_VERSION" , eventuateCdcImageVersion
71
+ environment. put " EVENTUATE_SAGA_VERSION" , eventuateTramSagasImageVersion
72
+ environment. put " EVENTUATE_JAVA_BASE_IMAGE_VERSION" , eventuateExamplesBaseImageVersion
73
+ environment. put " EVENTUATE_MESSAGING_KAFKA_IMAGE_VERSION" , eventuateMessagingKafkaImageVersion
74
+
62
75
projectName = null
63
76
removeOrphans = true
77
+ retainContainersOnStartupFailure = true
78
+
64
79
if (project. hasProperty(' startedServices' ))
65
80
startedServices= project. ext. startedServices. split(' ,' )
81
+
82
+ infrastructure {
83
+ projectName = null
84
+ startedServices = [" mysql" , " cdc-service" , " dynamodblocal-init" , " kafka" , " zookeeper" ]
85
+ }
86
+
87
+ kafkaGui {
88
+ projectName = null
89
+ startedServices = [" kafka-gui" ]
90
+ }
66
91
}
92
+
93
+ composeUp. dependsOn(infrastructureComposeUp)
94
+
95
+ subprojects. each {
96
+ if (it. name. endsWith(" -service" ) || it. name. endsWith(" -gateway" )) {
97
+ composeBuild. dependsOn(" :" + it. name + " :assemble" )
98
+ composeUp. dependsOn(" :" + it. name + " :assemble" )
99
+ }
100
+ }
0 commit comments