From e2869c84efc8fdf980310abbf3d55973e90c0a07 Mon Sep 17 00:00:00 2001 From: michelefiori Date: Fri, 16 May 2025 08:48:02 +0200 Subject: [PATCH] Updated Gradle for Spring --- build.gradle | 29 ++++------------------------- 1 file changed, 4 insertions(+), 25 deletions(-) diff --git a/build.gradle b/build.gradle index 645947c..882b192 100644 --- a/build.gradle +++ b/build.gradle @@ -1,7 +1,8 @@ plugins { id "com.google.protobuf" version "0.8.10" // for GRPC id "java" - id "war" // for REST + id 'org.springframework.boot' version '2.4.0' + id 'io.spring.dependency-management' version '1.0.15.RELEASE' } group 'org.example' @@ -27,30 +28,8 @@ dependencies { compile 'com.google.code.gson:gson:2.7' // REST Dependencies - // https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-core-asl - compile group: 'org.codehaus.jackson', name: 'jackson-core-asl', version: '1.9.2' - // https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-jaxrs - compile group: 'org.codehaus.jackson', name: 'jackson-jaxrs', version: '1.9.2' - // https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-mapper-asl - compile group: 'org.codehaus.jackson', name: 'jackson-mapper-asl', version: '1.9.2' - // https://mvnrepository.com/artifact/org.codehaus.jackson/jackson-xc - compile group: 'org.codehaus.jackson', name: 'jackson-xc', version: '1.9.2' - // https://mvnrepository.com/artifact/com.sun.jersey/jersey-client - compile group: 'com.sun.jersey', name: 'jersey-client', version: '1.19.1' - // https://mvnrepository.com/artifact/com.sun.jersey/jersey-core - compile group: 'com.sun.jersey', name: 'jersey-core', version: '1.19.1' - // https://mvnrepository.com/artifact/com.sun.jersey/jersey-json - compile group: 'com.sun.jersey', name: 'jersey-json', version: '1.19.1' - // https://mvnrepository.com/artifact/com.sun.jersey/jersey-server - compile group: 'com.sun.jersey', name: 'jersey-server', version: '1.19.1' - // https://mvnrepository.com/artifact/com.sun.jersey/jersey-servlet - compile group: 'com.sun.jersey', name: 'jersey-servlet', version: '1.19.1' - // https://mvnrepository.com/artifact/org.codehaus.jettison/jettison - compile group: 'org.codehaus.jettison', name: 'jettison', version: '1.1' - // https://mvnrepository.com/artifact/javax.ws.rs/jsr311-api - compile group: 'javax.ws.rs', name: 'jsr311-api', version: '1.1.1' - // https://mvnrepository.com/artifact/com.sun.jersey/jersey-server - compile group: 'com.sun.jersey', name: 'jersey-server', version: '1.2' + // Spring Web for REST + implementation 'org.springframework.boot:spring-boot-starter-web' -- 2.18.1