Skip to content

Commit 5ef07b6

Browse files
committed
Fix the dependency issue
1 parent bf6f3d7 commit 5ef07b6

File tree

6 files changed

+26
-6
lines changed

6 files changed

+26
-6
lines changed

build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -24,7 +24,7 @@ buildscript {
2424
}
2525
dependencies {
2626
classpath "org.sonarsource.scanner.gradle:sonarqube-gradle-plugin:2.5"
27-
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.6.RELEASE"
27+
classpath "org.springframework.boot:spring-boot-gradle-plugin:1.5.0.RELEASE"
2828
}
2929
}
3030

scripts/startAll.sh

Lines changed: 10 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,10 @@
1+
#!/bin/bash
2+
3+
##### Constants
4+
declare -a Services=( "config-server" "eureka-server" "zuul-server" "zipkin-server" "authentication-service" "licensing-service" "organization-service")
5+
6+
##### Main
7+
for i in "${Services[@]}"
8+
do
9+
java -jar build/$i/libs/$i.jar &> /dev/null &
10+
done

scripts/stopAll.sh

Lines changed: 11 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,11 @@
1+
#!/bin/bash
2+
3+
##### Constants
4+
declare -a Services=( "config-server" "eureka-server" "zuul-server" "zipkin-server" "authentication-service" "licensing-service" "organization-service")
5+
6+
##### Main
7+
for i in "${Services[@]}"
8+
do
9+
echo "kill $i"
10+
kill $(ps | grep $i | grep -v "grep" |awk '{print $1}')
11+
done

service/authentication-service/build.gradle

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -7,7 +7,6 @@ dependencies {
77
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-config', version: '1.4.4.RELEASE'
88
compile group: 'org.springframework.cloud', name: 'spring-cloud-config-client', version: '1.4.4.RELEASE'
99
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-hystrix', version: '1.4.4.RELEASE'
10-
// compile group: 'org.springframework.cloud', name: 'spring-cloud-security'
1110
compile group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: '2.1.3.RELEASE' // Spring OAuth2
1211
// compile group: 'org.springframework.security', name: 'spring-security-jwt', version: '1.0.9.RELEASE'
1312
// compile group: 'org.springframework.security', name: 'spring-security-rsa', version: '1.0.7.RELEASE'

service/licensing-service/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -21,8 +21,8 @@ dependencies {
2121
compile group: 'com.netflix.hystrix', name: 'hystrix-javanica', version: '1.5.9'
2222

2323
// Integration with Kafka (ch8)
24-
compile group: 'org.springframework.cloud', name: 'spring-cloud-stream', version: '1.3.3.RELEASE'
25-
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-stream-kafka', version: '1.3.3.RELEASE'
24+
compile group: 'org.springframework.cloud', name: 'spring-cloud-stream', version: '1.0.3.RELEASE'
25+
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-stream-kafka', version: '1.0.3.RELEASE'
2626

2727
// Integration with Redis (ch8)
2828
compile group: 'org.springframework.data', name: 'spring-data-redis', version: '1.8.4.RELEASE'

service/organization-service/build.gradle

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -25,8 +25,8 @@ dependencies {
2525
compile group: 'org.springframework.security.oauth', name: 'spring-security-oauth2', version: '2.1.3.RELEASE'
2626

2727
// Integration with Kafka (ch8)
28-
compile group: 'org.springframework.cloud', name: 'spring-cloud-stream', version: '1.3.3.RELEASE'
29-
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-stream-kafka', version: '1.3.3.RELEASE' // This is telling Spring Cloud Stream to use Kafka as message broker
28+
compile group: 'org.springframework.cloud', name: 'spring-cloud-stream', version: '1.0.3.RELEASE'
29+
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-stream-kafka', version: '1.0.3.RELEASE' // This is telling Spring Cloud Stream to use Kafka as message broker
3030

3131
// Log tracing and aggregation (ch9)
3232
compile group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth', version: '1.3.5.RELEASE'

0 commit comments

Comments
 (0)