Skip to content

Commit 6d906df

Browse files
author
Bhavik Kumar
authored
Update deployment and dependencies (#51)
1 parent 2c1acb4 commit 6d906df

File tree

6 files changed

+97
-97
lines changed

6 files changed

+97
-97
lines changed

.travis.yml

Lines changed: 87 additions & 76 deletions
Large diffs are not rendered by default.

README.md

Lines changed: 3 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -62,8 +62,8 @@ terraform workspace new development
6262

6363
1. Encrypt the following global environment variables using the Travis-CI CLI.
6464
```
65-
AWS_ACCESS_KEY_ID=
66-
AWS_SECRET_ACCESS_KEY=
65+
DEPLOYMENT_ACCESS_KEY_ID=
66+
DEPLOYMENT_SECRET_ACCESS_KEY=
6767
AWS_DEFAULT_REGION=
6868
KMS_KEY_ID=
6969
ROLE_ARN=
@@ -72,6 +72,7 @@ STATE_DYNAMODB_TABLE=
7272
KEY=<The project key for the ECR repository>, e.g bnc/<team>/ecr/<service-name>
7373
SERVICE_KEY=<The project key for ECS service>, e.g ecs/<service-name>
7474
SPLUNK_URL=
75+
OPERATIONS_ROLE_ARN=
7576
```
7677

7778
2. Encrypt the following environment variables for the development deployment:

build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@ plugins {
22
id 'eclipse'
33
id 'idea'
44
id "org.sonarqube" version "2.7.1" apply false
5-
id "com.github.spotbugs" version "1.6.9" apply false
5+
id "com.github.spotbugs" version "2.0.0" apply false
66
id "com.bnc.gradle.travis-ci-versioner" version "1.0.6"
77
}
88

@@ -60,7 +60,7 @@ allprojects {
6060
}
6161

6262
jacoco {
63-
toolVersion = "0.8.3"
63+
toolVersion = "0.8.4"
6464
}
6565

6666
checkstyle {
@@ -83,8 +83,8 @@ allprojects {
8383
dependencies {
8484
testImplementation group: 'org.junit.jupiter', name: 'junit-jupiter', version: '5.4.2'
8585
testImplementation group: 'org.assertj', name: 'assertj-core', version: '3.12.2'
86-
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.27.0'
87-
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '2.27.0'
86+
testImplementation group: 'org.mockito', name: 'mockito-core', version: '2.28.2'
87+
testImplementation group: 'org.mockito', name: 'mockito-junit-jupiter', version: '2.28.2'
8888
testRuntime group: 'org.junit.platform', name: 'junit-platform-launcher', version: '1.4.2'
8989
}
9090
}
Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,2 @@
1-
profile = "<The profile to use for the AWS provider>"
21
role_arn = "<The role to assume to access the terraform remote state>"
32
service_name = "<The service name>"

deployment/terraform/ecr/outputs.tf

Lines changed: 0 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,3 @@
11
output "repository_url" {
22
value = module.ecr.repository_url
33
}
4-
5-
output "deployment_role_arn" {
6-
sensitive = true
7-
value = data.terraform_remote_state.bnc_ops.outputs.deployment_role_arn
8-
}

service/build.gradle

Lines changed: 3 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
plugins {
2-
id "org.springframework.boot" version "2.1.4.RELEASE"
2+
id "org.springframework.boot" version "2.1.5.RELEASE"
33
id "io.spring.dependency-management" version "1.0.7.RELEASE"
44
id "com.palantir.docker" version "0.22.1"
55
id "com.gorylenko.gradle-git-properties" version "2.0.0"
66
}
77

88
jar {
9-
archivesBaseName = rootProject.name + "-" + project.name
9+
archivesBaseName = rootProject.name
1010
}
1111

1212
springBoot {
@@ -36,17 +36,11 @@ docker {
3636
buildArgs(['JAR_FILE': "${bootJar.archiveFileName.getOrNull()}"])
3737
}
3838

39-
dependencyManagement {
40-
imports {
41-
mavenBom "org.springframework.cloud:spring-cloud-sleuth:2.1.1.RELEASE"
42-
}
43-
}
44-
4539
dependencies {
4640
implementation project(':client')
4741
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-web'
4842
implementation group: 'org.springframework.boot', name: 'spring-boot-starter-actuator'
49-
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth'
43+
implementation group: 'org.springframework.cloud', name: 'spring-cloud-starter-sleuth', version: '2.1.1.RELEASE'
5044
implementation group: 'io.micrometer', name: 'micrometer-registry-new-relic', version: '1.1.4'
5145
testImplementation group: 'org.springframework.boot', name: 'spring-boot-starter-test'
5246
}

0 commit comments

Comments
 (0)