Skip to content

Commit

Permalink
upgrade configuration-server to Spring Boot 2.2.9
Browse files Browse the repository at this point in the history
  • Loading branch information
Artemas-Muzanenhamo committed Mar 24, 2024
1 parent 0d54be9 commit ad05419
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 47 deletions.
27 changes: 13 additions & 14 deletions configuration-server/build.gradle
Original file line number Diff line number Diff line change
@@ -1,28 +1,27 @@
plugins {
id 'java'
id 'maven'
id 'org.springframework.boot' version '2.1.2.RELEASE'
id 'org.springframework.boot' version '2.2.9.RELEASE'
id 'io.spring.dependency-management' version '1.1.4'
}

group = 'com.gov.zw'
version = "${releaseVersion}"
description = 'config'
sourceCompatibility = 11
targetCompatibility = 11

repositories {
mavenCentral()
}

dependencies {
implementation "org.springframework.cloud:spring-cloud-config-server:${springVersion}"
testImplementation "org.junit.jupiter:junit-jupiter-api:${junit5Version}"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:${junit5Version}"
testCompile "org.springframework:spring-test:${springTestVersion}"
testCompile "org.springframework.boot:spring-boot-starter-test:${springVersion}"
implementation "org.springframework.cloud:spring-cloud-config-server:2.2.8.RELEASE"
testCompile "org.springframework.boot:spring-boot-starter-test"
}

group = 'com.gov.zw'
version = "${releaseVersion}"
description = 'config'
sourceCompatibility = "${javaVersion}"

tasks.withType(JavaCompile) {
options.encoding = "${charset}"
options.encoding = 'UTF8'
}

bootRun {
Expand All @@ -32,6 +31,6 @@ bootRun {
test {
useJUnitPlatform()
testLogging {
events = ["passed", "failed", "skipped"]
events = ["PASSED", "FAILED", "SKIPPED"]
}
}
}
31 changes: 1 addition & 30 deletions configuration-server/gradle.properties
Original file line number Diff line number Diff line change
@@ -1,34 +1,5 @@
#Spring
springVersion=2.1.2.RELEASE
springTestVersion=5.1.8.RELEASE
springCloudVersion=Greenwich.RELEASE
springCloudServicesVersion=2.0.3.RELEASE
springJdbcVersion=4.3.9.RELEASE
reactorTestVersion=3.1.7.RELEASE
#Lombok
lombokVersion=1.18.8
#Junit5
junit5Version=5.4.2
#Pact
pactJunit5Version=3.6.11
#RestAssured
restAssuredVersion=4.0.0
#Embedded Mongo
mongoVersion=2.0.3
#HttpClient
httpClientVersion=4.5.9
#Gson
gsonVersion=2.8.5
#Java
javaVersion=11
javaXmlVersion=2.3.0
springCloudServicesVersion=2.2.8.RELEASE
#Application
releaseVersion=1.0.1
#Encoding
charset=UTF-8
#Mockito
mockitoJunit5Version=3.0.0
#Json
jsonSmartVersion=2.3
#Rest Client Drive
restClientDriverVersion=2.0.0
Original file line number Diff line number Diff line change
@@ -1,11 +1,8 @@
package com.gov.zw;

import org.junit.jupiter.api.Test;
import org.junit.jupiter.api.extension.ExtendWith;
import org.springframework.boot.test.context.SpringBootTest;
import org.springframework.test.context.junit.jupiter.SpringExtension;

@ExtendWith(SpringExtension.class)
@SpringBootTest
class ConfigApplicationTests {

Expand Down

0 comments on commit ad05419

Please sign in to comment.