Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Spring upgrade #2

Merged
merged 2 commits into from
Oct 3, 2020
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 2 additions & 2 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -10,8 +10,8 @@ only availing on profiled Maven/Gradle build and Spring profile.
The sample application is a very simple hello world web application. This application is thought for explore service composition,
client load balancing and configuration management. The web main application is composed by two pages under security:
* a web page for standard users in order to get a special hello with a randomic special message for you
* a web page for admin usera in order to managing the special message list.
* there ecist a prebuild user for both web application
* a web page for admin user in order to manage the special message list.
* there exist a prebuild user for both web application
* user name user and password secret for /index.html web application
* user name admin and password secret for /messages.html web application

Expand Down
4 changes: 2 additions & 2 deletions hello-service/build.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
plugins {
id 'org.springframework.boot' version '2.1.4.RELEASE'
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'java'

id "com.palantir.docker" version "0.21.0"
Expand All @@ -20,7 +20,7 @@ repositories {
}

ext {
set('springCloudVersion', 'Greenwich.SR1')
set('springCloudVersion', 'Hoxton.SR8')
}

dependencies {
Expand Down
2 changes: 1 addition & 1 deletion hello-service/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion hello-service/profile.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (project.hasProperty('kubernetes')) {
println("kubernetes")
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-ribbon'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-loadbalancer'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-config'
}
} else if (project.hasProperty('netflix')) {
Expand Down
14 changes: 7 additions & 7 deletions message-service/build.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
plugins {
id 'org.springframework.boot' version '2.1.4.RELEASE'
id 'org.jetbrains.kotlin.jvm' version '1.3.21'
id 'org.jetbrains.kotlin.plugin.spring' version '1.3.21'
id 'org.springframework.boot' version '2.3.4.RELEASE'
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id 'org.jetbrains.kotlin.plugin.spring' version '1.3.72'

id "com.palantir.docker" version "0.21.0"
}
Expand All @@ -10,14 +10,14 @@ apply plugin: 'io.spring.dependency-management'

group = 'it.valeriovaudi'
//version = '0.0.1-SNAPSHOT'
sourceCompatibility = '1.8'
java.sourceCompatibility = JavaVersion.VERSION_11

repositories {
mavenCentral()
}

ext {
set('springCloudVersion', 'Greenwich.SR1')
set('springCloudVersion', 'Hoxton.SR8')
}

dependencies {
Expand Down Expand Up @@ -45,14 +45,14 @@ dependencyManagement {
compileKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
jvmTarget = '11'
}
}

compileTestKotlin {
kotlinOptions {
freeCompilerArgs = ['-Xjsr305=strict']
jvmTarget = '1.8'
jvmTarget = '11'
}
}

Expand Down
2 changes: 1 addition & 1 deletion message-service/gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-5.2.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-6.6.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
2 changes: 1 addition & 1 deletion message-service/profile.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ if (project.hasProperty('kubernetes')) {
println("kubernetes")
dependencies {
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-ribbon'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-loadbalancer'
implementation 'org.springframework.cloud:spring-cloud-starter-kubernetes-config'
}
} else if (project.hasProperty('netflix')) {
Expand Down
6 changes: 3 additions & 3 deletions ui/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
<parent>
<groupId>org.springframework.boot</groupId>
<artifactId>spring-boot-starter-parent</artifactId>
<version>2.1.4.RELEASE</version>
<version>2.3.4.RELEASE</version>
<relativePath/> <!-- lookup parent from repository -->
</parent>
<groupId>it.valeriovaudi</groupId>
Expand All @@ -16,7 +16,7 @@

<properties>
<java.version>11</java.version>
<spring-cloud.version>Greenwich.SR1</spring-cloud.version>
<spring-cloud.version>Hoxton.SR8</spring-cloud.version>
</properties>

<dependencies>
Expand Down Expand Up @@ -100,7 +100,7 @@

<dependency>
<groupId>org.springframework.cloud</groupId>
<artifactId>spring-cloud-starter-kubernetes-ribbon</artifactId>
<artifactId>spring-cloud-starter-kubernetes-loadbalancer</artifactId>
</dependency>
</dependencies>
</profile>
Expand Down