Upgrade do Spring Boot 2.2.0.M4

This commit is contained in:
Antoine Rey
2019-07-09 08:44:22 +02:00
parent ecd663f097
commit 84d95ab51f
3 changed files with 27 additions and 13 deletions

View File

@@ -2,16 +2,17 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
project.description = "Kotlin version of the Spring Petclinic application"
project.group = "org.springframework.samples"
// Align with Spring Version
project.version = "2.1.6"
project.version = "2.2.0.M4"
plugins {
val kotlinVersion = "1.3.21"
id("org.springframework.boot") version "2.1.6.RELEASE"
id("org.jetbrains.kotlin.jvm") version kotlinVersion
id("org.jetbrains.kotlin.plugin.spring") version kotlinVersion
val kotlinVersion = "1.3.31"
id("org.springframework.boot") version "2.2.0.M4"
id("io.spring.dependency-management") version "1.0.7.RELEASE"
id("com.google.cloud.tools.jib") version "1.3.0"
kotlin("jvm") version kotlinVersion
kotlin("plugin.spring") version kotlinVersion
}
val boostrapVersion = "3.3.6"
@@ -33,6 +34,8 @@ tasks.withType<Test> {
repositories {
mavenCentral()
maven { url = uri("https://repo.spring.io/snapshot") }
maven { url = uri("https://repo.spring.io/milestone") }
}
dependencies {
@@ -61,11 +64,9 @@ dependencies {
runtimeOnly("mysql:mysql-connector-java")
}
jib {
to {
image = "springcommunity/spring-petclinic-kotlin"
tags = setOf(project.version.toString(), "latest")
}
}

View File

@@ -83,6 +83,11 @@ into the [Docker Hub](https://cloud.docker.com/u/springcommunity/repository/dock
repository.
The [build.gradle.kts](build.gradle.kts) has been configured to publish the image with a the `springcommunity/spring-petclinic-kotlin` image name.
Build and push the container image of Petclinic to the Docker Hub registry:
```
gradle jib -Djib.to.auth.username=<username> -Djib.to.auth.password=<password>
```
## Interesting Spring Petclinic forks
@@ -94,12 +99,6 @@ hosted in a special GitHub org: [spring-petclinic](https://github.com/spring-pet
If you have a special interest in a different technology stack
that could be used to implement the Pet Clinic then please join the community there.
Build and push the container image of Petclinc to the Docker Hub registry:
T
```
gradle jib -Djib.to.auth.username=<username> -Djib.to.auth.password=<password>
```
## Interaction with other open source projects

14
settings.gradle.kts Normal file
View File

@@ -0,0 +1,14 @@
pluginManagement {
repositories {
maven { url = uri("https://repo.spring.io/snapshot") }
maven { url = uri("https://repo.spring.io/milestone") }
gradlePluginPortal()
}
resolutionStrategy {
eachPlugin {
if (requested.id.id == "org.springframework.boot") {
useModule("org.springframework.boot:spring-boot-gradle-plugin:${requested.version}")
}
}
}
}