title: Upgrading Spring Boot Application to Latest Version
body: <p>I have a Spring Boot project which is based on <br> <code>Spring Framework 4.3.7.RELEASE</code> and <code>Spring Boot 1.5.2.RELEASE</code>. <br> I use the Java configuration approach. How Do I upgrade this project to the latest version of Spring Boot and Spring Framework (<code>Spring Boot 2.x</code>, <code>Spring Framework 5.x</code>)? I have checked out <a href="https://github.com/spring-projects/spring-framework/wiki/Upgrading-to-Spring-Framework-5.x" rel="noreferrer">this page</a>, but unfortunately it was of no real help to me. Would be glad to receive any further guidance on this.</p>
  
  <p>This is how my <code>build.gradle</code> file looks like:</p>
  
  <pre><code>buildscript {
      ext {
          springBootVersion = '1.5.2.RELEASE'
      }
      repositories {
          mavenCentral()
      }
      dependencies {
          classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
      }
  }
  
  apply plugin: 'java'
  apply plugin: 'eclipse'
  apply plugin: 'org.springframework.boot'
  
  version = '0.1.0-alpha.2'
  sourceCompatibility = 1.8
  
  repositories {
      mavenCentral()
  }
  
  bootRun.systemProperties = System.properties
  
  springBoot {
      executable = true
  }
  
  dependencies {
      compile('org.springframework.boot:spring-boot-starter-web')
      compile('org.springframework.boot:spring-boot-starter-data-jpa')
      compile('org.springframework.boot:spring-boot-starter-security')
      compile('mysql:mysql-connector-java')
      compile('org.modelmapper:modelmapper:1.1.0')
      compile('com.fasterxml.jackson.datatype:jackson-datatype-jsr310')
      testCompile('org.springframework.boot:spring-boot-starter-test')
      testCompile('org.springframework.security:spring-security-test')
      testCompile('org.modelmapper:modelmapper:1.1.0')
  }
  </code></pre>