From 10043732a240cb1431bac904a01b3403dbf4aa05 Mon Sep 17 00:00:00 2001 From: Devin AI <158243242+devin-ai-integration[bot]@users.noreply.github.com> Date: Wed, 15 Apr 2026 17:44:23 +0000 Subject: [PATCH] Migrate configuration files from Java 8 to Java 11 - pom.xml: Update java.version to 11, Spring Boot to 2.7.18, add maven-compiler-plugin with release 11 - build.gradle: Update sourceCompatibility/targetCompatibility to 11, Spring Boot plugin to 2.7.18, migrate compile/testCompile to implementation/testImplementation, add missing jdbc and h2 dependencies - gradle-wrapper.properties: Upgrade Gradle from 4.6 to 7.6.4 (required by Spring Boot 2.7.x) - maven-wrapper.properties: Upgrade Maven from 3.3.9 to 3.6.3 - gs-spring-boot.iml: Update LANGUAGE_LEVEL to JDK_11 - .idea/misc.xml: Update languageLevel and project-jdk-name to 11 - .idea/compiler.xml: Update bytecode target to 11 - README.md: Update title and prerequisites to reflect Java 11 - gradlew/mvnw: Set executable permissions Co-Authored-By: Daniella Grimberg --- .idea/compiler.xml | 4 ++-- .idea/misc.xml | 4 ++-- .mvn/wrapper/maven-wrapper.properties | 2 +- README.md | 8 ++++---- build.gradle | 12 +++++++----- gradle/wrapper/gradle-wrapper.properties | 2 +- gradlew | 0 gs-spring-boot.iml | 4 ++-- mvnw | 0 pom.xml | 13 +++++++++++-- 10 files changed, 30 insertions(+), 19 deletions(-) mode change 100644 => 100755 gradlew mode change 100644 => 100755 mvnw diff --git a/.idea/compiler.xml b/.idea/compiler.xml index daa2f90..720d23e 100644 --- a/.idea/compiler.xml +++ b/.idea/compiler.xml @@ -2,7 +2,7 @@ - + - \ No newline at end of file + diff --git a/.idea/misc.xml b/.idea/misc.xml index 01b5b5c..a2abf7c 100644 --- a/.idea/misc.xml +++ b/.idea/misc.xml @@ -12,7 +12,7 @@ - + - \ No newline at end of file + diff --git a/.mvn/wrapper/maven-wrapper.properties b/.mvn/wrapper/maven-wrapper.properties index c954cec..be4fea7 100644 --- a/.mvn/wrapper/maven-wrapper.properties +++ b/.mvn/wrapper/maven-wrapper.properties @@ -1 +1 @@ -distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.3.9/apache-maven-3.3.9-bin.zip +distributionUrl=https://repo1.maven.org/maven2/org/apache/maven/apache-maven/3.6.3/apache-maven-3.6.3-bin.zip diff --git a/README.md b/README.md index 2b09400..2b25fa7 100644 --- a/README.md +++ b/README.md @@ -1,5 +1,5 @@ -# springboot-java8 -The project is made on spring boot. The project summarize the new features present in Java 8. +# springboot-java11 +The project is made on spring boot. The project summarize the new features present in Java 8 and has been migrated to Java 11. It contain list of harcoded topics list. You can call the apis's with POSTMAN to add,delete,update Topic list In addition, it uses 1) Java 8 NIO methods @@ -76,7 +76,7 @@ GET /datetime ### Prerequisites -1) Java sdk +1) Java 11 SDK 2) POSTMAN ### Installing @@ -129,6 +129,6 @@ https://dzone.com/articles/java-8-friday-goodies-new-new ## Authors -* **Rehman Murad Ali** +* **Rehman Murad Ali** diff --git a/build.gradle b/build.gradle index 09f1083..b5022ad 100644 --- a/build.gradle +++ b/build.gradle @@ -3,7 +3,7 @@ buildscript { mavenCentral() } dependencies { - classpath("org.springframework.boot:spring-boot-gradle-plugin:2.0.2.RELEASE") + classpath("org.springframework.boot:spring-boot-gradle-plugin:2.7.18") } } @@ -22,11 +22,13 @@ repositories { mavenCentral() } -sourceCompatibility = 1.8 -targetCompatibility = 1.8 +sourceCompatibility = 11 +targetCompatibility = 11 dependencies { - compile("org.springframework.boot:spring-boot-starter-web") - testCompile("junit:junit") + implementation("org.springframework.boot:spring-boot-starter-web") + implementation("org.springframework.boot:spring-boot-starter-jdbc") + implementation("com.h2database:h2") + testImplementation("junit:junit") } diff --git a/gradle/wrapper/gradle-wrapper.properties b/gradle/wrapper/gradle-wrapper.properties index a2ff3cc..03a8d13 100644 --- a/gradle/wrapper/gradle-wrapper.properties +++ b/gradle/wrapper/gradle-wrapper.properties @@ -3,4 +3,4 @@ distributionBase=GRADLE_USER_HOME distributionPath=wrapper/dists zipStoreBase=GRADLE_USER_HOME zipStorePath=wrapper/dists -distributionUrl=https\://services.gradle.org/distributions/gradle-4.6-bin.zip +distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.4-bin.zip diff --git a/gradlew b/gradlew old mode 100644 new mode 100755 diff --git a/gs-spring-boot.iml b/gs-spring-boot.iml index ad195a8..12b2673 100644 --- a/gs-spring-boot.iml +++ b/gs-spring-boot.iml @@ -1,6 +1,6 @@ - + @@ -55,4 +55,4 @@ - \ No newline at end of file + diff --git a/mvnw b/mvnw old mode 100644 new mode 100755 diff --git a/pom.xml b/pom.xml index 63f5cbd..6b9465e 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,7 @@ org.springframework.boot spring-boot-starter-parent - 2.0.2.RELEASE + 2.7.18 @@ -35,7 +35,7 @@ - 1.8 + 11 @@ -45,6 +45,15 @@ org.springframework.boot spring-boot-maven-plugin + + org.apache.maven.plugins + maven-compiler-plugin + + 11 + 11 + 11 + +