From a69ad8fd5e5d83f663fb79594e6335b73d3a6b11 Mon Sep 17 00:00:00 2001 From: Yujun Zou Date: Mon, 8 Sep 2025 21:04:55 -0700 Subject: [PATCH] refactor: Centralize logging exclusions and update maven plugin POM This change moves the Spring Boot logging exclusions to the dependencyManagement section in the dev/pom.xml. This simplifies individual module POMs, such as the one for tutorials/city-time-weather, by removing the need for repeated exclusions. The maven_plugin/pom.xml is also updated to reflect its new role, though it appears to contain erroneously duplicated content. PiperOrigin-RevId: 804711972 --- dev/pom.xml | 38 +++++++++++++++++++++ maven_plugin/pom.xml | 51 +---------------------------- tutorials/city-time-weather/pom.xml | 10 ------ 3 files changed, 39 insertions(+), 60 deletions(-) diff --git a/dev/pom.xml b/dev/pom.xml index eb206e76..edb8ea3f 100644 --- a/dev/pom.xml +++ b/dev/pom.xml @@ -45,6 +45,40 @@ pom import + + + org.springframework.boot + spring-boot-starter-web + ${spring-boot.version} + + + org.springframework.boot + spring-boot-starter-logging + + + + + org.springframework.boot + spring-boot-starter-websocket + ${spring-boot.version} + + + org.springframework.boot + spring-boot-starter-logging + + + + + org.springframework.boot + spring-boot-starter-test + ${spring-boot.version} + + + org.springframework.boot + spring-boot-starter-logging + + + @@ -57,6 +91,10 @@ org.springframework.boot spring-boot-starter-web + + org.slf4j + slf4j-simple + org.springframework.boot spring-boot-starter-websocket diff --git a/maven_plugin/pom.xml b/maven_plugin/pom.xml index 53aa4e71..c9f3cb2b 100644 --- a/maven_plugin/pom.xml +++ b/maven_plugin/pom.xml @@ -55,55 +55,6 @@ google-adk-dev ${project.version} - - - - org.springframework.boot - spring-boot-starter-web - - - ch.qos.logback - logback-classic - - - org.springframework.boot - spring-boot-starter-logging - - - - - - org.springframework.boot - spring-boot-starter-websocket - - - ch.qos.logback - logback-classic - - - org.springframework.boot - spring-boot-starter-logging - - - - - - - org.slf4j - slf4j-simple - - - - - org.apache.httpcomponents.client5 - httpclient5 - - - - - guru.nidi - graphviz-java - @@ -187,4 +138,4 @@ - \ No newline at end of file + diff --git a/tutorials/city-time-weather/pom.xml b/tutorials/city-time-weather/pom.xml index 64c1704b..f39aad65 100644 --- a/tutorials/city-time-weather/pom.xml +++ b/tutorials/city-time-weather/pom.xml @@ -37,16 +37,6 @@ com.google.adk google-adk-dev ${project.version} - - - ch.qos.logback - logback-classic - - - - - org.slf4j - slf4j-simple