Skip to content

Commit 1336a78

Browse files
committed
Merge branch 'wip-spring-boot-2' into wip-observability
2 parents 076f44c + 766a135 commit 1336a78

File tree

78 files changed

+405
-1967
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

78 files changed

+405
-1967
lines changed

.gitignore

+4
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,7 @@ out
88
target
99
.serverless
1010
*.pid
11+
.classpath
12+
.project
13+
.settings
14+
bin

README.adoc

+3-1
Original file line numberDiff line numberDiff line change
@@ -2,12 +2,14 @@
22

33
This is the example code for my book https://www.manning.com/books/microservice-patterns[Microservice patterns].
44

5+
image::http://microservices.io/i/Microservices-Patterns-Cover.png[width=50%]
6+
57
== Please note
68

79
* The code is still work in progress
810
* It primarily illustrates the technical aspects of the microservice architecture and so the business logic is minimal
911
* The documentation is sparse/non-existent and you will need to look in the book
10-
* The application consists of many services and so requires a lot of memory. It runs well, for example, on a 16MB Macbook pro.
12+
* The application consists of many services and so requires a lot of memory. It runs well, for example, on a 16GB Macbook pro.
1113
* The application's services and the infrastructure services, such as MySQL and Apache Kafka, are deployed using Docker containers using either Docker Compose or Kubernetes.
1214

1315
== Got questions

build-contracts.sh

+4-3
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,16 @@
11
#! /bin/bash -e
22

3-
CONTRACT_DIRS="common-contracts ftgo-order-service-contracts ftgo-restaurant-order-service-contracts"
3+
CONTRACT_DIRS="ftgo-accounting-service-contracts ftgo-consumer-service-contracts ftgo-order-service-contracts ftgo-restaurant-order-service-contracts"
44

55
COMMAND=$*
66

77
if [[ -z "$COMMAND" ]] ; then
8-
COMMAND=install
8+
COMMAND=publish
99
fi
1010

1111
echo Using $COMMAND
1212

1313
for dir in $CONTRACT_DIRS ; do
14-
(cd $dir ; ./mvnw $COMMAND)
14+
(cd $dir ; ../gradlew $COMMAND)
15+
# (cd $dir ; rm -fr {out,build} ; ./mvnw $COMMAND)
1516
done

build.gradle

+10-4
Original file line numberDiff line numberDiff line change
@@ -15,16 +15,22 @@ subprojects {
1515
sourceCompatibility = '1.8'
1616
targetCompatibility = '1.8'
1717

18+
group = "net.chrisrichardson.ftgo"
19+
1820
repositories {
1921
mavenCentral()
2022
jcenter()
23+
24+
eventuateMavenRepoUrl.split(',').each { repoUrl -> maven { url repoUrl } }
25+
2126
maven {
22-
url "https://dl.bintray.com/eventuateio-oss/eventuate-maven-release"
27+
url 'https://repo.spring.io/libs-milestone'
28+
}
29+
30+
maven {
31+
url "${project.rootDir}/build/repo"
2332
}
24-
eventuateMavenRepoUrl.split(',').each { repoUrl -> maven { url repoUrl } }
2533

26-
// For the contracts
27-
mavenLocal()
2834
}
2935

3036
}

buildSrc/src/main/groovy/ComponentTestsPlugin.groovy

+5
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,9 @@ class ComponentTestsPlugin implements Plugin<Project> {
66

77
@Override
88
void apply(Project project) {
9+
10+
project.apply(plugin: 'eclipse')
11+
912
project.sourceSets {
1013
componentTest {
1114
java {
@@ -22,6 +25,8 @@ class ComponentTestsPlugin implements Plugin<Project> {
2225
componentTestRuntime.extendsFrom testRuntime
2326
}
2427

28+
project.eclipse.classpath.plusConfigurations << project.configurations.componentTestCompile
29+
2530
project.task("componentTest", type: Test) {
2631
testClassesDir = project.sourceSets.componentTest.output.classesDir
2732
classpath = project.sourceSets.componentTest.runtimeClasspath
-48.3 KB
Binary file not shown.

common-contracts/.mvn/wrapper/maven-wrapper.properties

-1
This file was deleted.

common-contracts/META-INF/MANIFEST.MF

-2
This file was deleted.

common-contracts/TODO.txt

-1
This file was deleted.

common-contracts/build.gradle

-50
This file was deleted.

common-contracts/gradle.properties

-9
This file was deleted.
Binary file not shown.

common-contracts/gradle/wrapper/gradle-wrapper.properties

-6
This file was deleted.

common-contracts/gradlew

-164
This file was deleted.

0 commit comments

Comments
 (0)