Skip to content

Commit 76bdb4c

Browse files
committed
Support for Java 9+ and Misc cleanups
1 parent 9ae2600 commit 76bdb4c

File tree

10 files changed

+14
-151
lines changed

10 files changed

+14
-151
lines changed

README.adoc

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -110,10 +110,9 @@ All the services' business logic is implemented using Domain-Driven design aggre
110110

111111
=== Pre-requisites
112112

113-
* Java 8
113+
* Java 8+
114114
* Docker and Docker Compose
115115
* Internet access so that Gradle and Docker can download dependencies and container images
116-
* The link:./ftgo-order-history-service[ftgo-order-history-service] uses AWS DynamoDB and so requires an access key and secret.
117116

118117
=== Building
119118

@@ -150,12 +149,6 @@ docker-compose up -d
150149

151150
This can take a while.
152151

153-
You also need to initialize the locally running DynamoDB by running:
154-
155-
```
156-
./gradlew initDynamoDb
157-
```
158-
159152
=== Using the application
160153

161154
Use the services Swagger UIs to invoke the services.

build-and-test-all.sh

Lines changed: 4 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,7 @@
22

33
KEEP_RUNNING=
44
ASSEMBLE_ONLY=
5+
DATABASE_SERVICES="dynamodblocal mysql dynamodblocal-init"
56

67
if [ -z "$DOCKER_COMPOSE" ] ; then
78
DOCKER_COMPOSE=docker-compose
@@ -34,14 +35,12 @@ echo KEEP_RUNNING=$KEEP_RUNNING
3435
./gradlew testClasses
3536

3637
${DOCKER_COMPOSE?} down --remove-orphans -v
37-
${DOCKER_COMPOSE?} up -d --build dynamodblocal mysql
38+
${DOCKER_COMPOSE?} up -d --build ${DATABASE_SERVICES?}
3839

3940
./gradlew waitForMySql
4041

4142
echo mysql is started
4243

43-
./gradlew initDynamoDb
44-
4544
${DOCKER_COMPOSE?} up -d --build eventuate-local-cdc-service tram-cdc-service
4645

4746

@@ -62,29 +61,25 @@ if [ -z "$ASSEMBLE_ONLY" ] ; then
6261

6362
${DOCKER_COMPOSE?} down --remove-orphans -v
6463

65-
${DOCKER_COMPOSE?} up -d dynamodblocal mysql
64+
${DOCKER_COMPOSE?} up -d ${DATABASE_SERVICES?}
6665

6766
./gradlew waitForMySql
6867

6968
echo mysql is started
7069

71-
./gradlew initDynamoDb
72-
7370
${DOCKER_COMPOSE?} up -d
7471

7572

7673
else
7774

7875
./gradlew $* assemble
7976

80-
${DOCKER_COMPOSE?} up -d --build dynamodblocal mysql
77+
${DOCKER_COMPOSE?} up -d --build ${DATABASE_SERVICES?}
8178

8279
./gradlew waitForMySql
8380

8481
echo mysql is started
8582

86-
./gradlew initDynamoDb
87-
8883
${DOCKER_COMPOSE?} up -d --build
8984

9085
fi

build.gradle

Lines changed: 0 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ buildscript {
77
}
88

99
apply plugin: WaitForMySqlPlugin
10-
apply plugin: InitDynamoDbPlugin
1110
}
1211

1312
plugins {
@@ -39,4 +38,3 @@ subprojects {
3938
}
4039

4140
}
42-

buildSrc/src/main/groovy/InitDynamoDb.java

Lines changed: 0 additions & 119 deletions
This file was deleted.

buildSrc/src/main/groovy/InitDynamoDbPlugin.java

Lines changed: 0 additions & 9 deletions
This file was deleted.

docker-compose.yml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -155,6 +155,7 @@ services:
155155
- zookeeper
156156
- tram-cdc-service
157157
- dynamodblocal
158+
- dynamodblocal-init
158159
environment:
159160
SPRING_DATASOURCE_URL: jdbc:mysql://mysql/ftgoorderhistoryservice
160161
SPRING_DATASOURCE_USERNAME: mysqluser

ftgo-api-gateway-graphql/package.json

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@
1212
"clean": "rm -fr dist"
1313
},
1414
"dependencies": {
15+
"@types/graphql": "^14.0.0",
1516
"apollo-cache-inmemory": "^1.2.1",
1617
"apollo-client": "^2.3.1",
1718
"apollo-engine": "^1.0.1",

ftgo-common/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,5 +8,8 @@ dependencies {
88

99
testCompile "org.springframework.boot:spring-boot-starter-test:$springBootVersion"
1010

11-
12-
}
11+
runtime "javax.xml.bind:jaxb-api:2.2.11"
12+
runtime "com.sun.xml.bind:jaxb-core:2.2.11"
13+
runtime "com.sun.xml.bind:jaxb-impl:2.2.11"
14+
runtime "javax.activation:activation:1.1.1"
15+
}

ftgo-order-service/src/component-test/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -3,7 +3,7 @@ spring.application.name=ftgo-order-service
33
logging.level.root=INFO
44
logging.level.org.hibernate.SQL=DEBUG
55
logging.level.org.springframework.cloud.contract=DEBUG
6-
logging.level.io.eventuate=DEBUG
6+
logging.level.io.eventuate.tram=TRACE
77
#logging.level.org.springframework.orm.jpa.JpaTransactionManager=TRACE
88

99
spring.jpa.generate-ddl=true

ftgo-order-service/src/main/resources/application.properties

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@ spring.sleuth.web.skipPattern=(^health.*)
55

66
management.endpoints.web.exposure.include=health,prometheus
77

8-
logging.level.org.springframework.cloud=DEBUG
8+
logging.level.org.springframework.cloud=INFO
99

1010
spring.jpa.generate-ddl=true
1111
logging.level.org.springframework.orm.jpa=INFO

0 commit comments

Comments
 (0)