From 6cd59fd007859dfce32137b5398c1f66094ab377 Mon Sep 17 00:00:00 2001 From: Richard Eckart de Castilho Date: Fri, 28 Jun 2024 00:44:36 +0200 Subject: [PATCH] #4909 - Upgrade dependencies - Exclude jcl-over-log4j, commons-logging and commons-logging-api in favor of spring-jcl - liquibase-slf4j -> 5.0.0 - Remove Wicket Webjars workaround for bug in WicketStuff 10.1.0 - Remove/exclude dependencies on all commons-logging stuff except spring-jcl --- inception/inception-app-webapp/pom.xml | 9 +- inception/inception-dependencies/pom.xml | 113 ++++++++++++++---- inception/inception-ui-core/pom.xml | 4 - .../ui/core/WicketApplicationBase.java | 11 +- inception/pom.xml | 21 ++-- 5 files changed, 101 insertions(+), 57 deletions(-) diff --git a/inception/inception-app-webapp/pom.xml b/inception/inception-app-webapp/pom.xml index 25c797d9e6e..e1e7bcae81a 100644 --- a/inception/inception-app-webapp/pom.xml +++ b/inception/inception-app-webapp/pom.xml @@ -531,10 +531,6 @@ org.slf4j jul-to-slf4j - - org.slf4j - jcl-over-slf4j - org.slf4j log4j-over-slf4j @@ -570,6 +566,11 @@ org.liquibase liquibase-core + + com.mattbertolini + liquibase-slf4j + 5.0.0 + org.hibernate.orm diff --git a/inception/inception-dependencies/pom.xml b/inception/inception-dependencies/pom.xml index f6c0d9d1a49..f5d92ecdbbd 100644 --- a/inception/inception-dependencies/pom.xml +++ b/inception/inception-dependencies/pom.xml @@ -576,6 +576,10 @@ org.glassfish jakarta.json + + org.slf4j + jcl-over-slf4j + @@ -969,6 +973,12 @@ org.apache.solr solr-solrj ${solr.version} + + + org.slf4j + jcl-over-slf4j + + org.apache.solr @@ -1024,6 +1034,12 @@ commons-validator commons-validator 1.9.0 + + + commons-logging + commons-logging + + com.github.ben-manes.caffeine @@ -1051,6 +1067,17 @@ + + org.dkpro.core + dkpro-core-api-datasets-asl + ${dkpro.version} + + + commons-logging + commons-logging-api + + + org.dkpro.core dkpro-core-io-xml-asl @@ -1073,6 +1100,28 @@ + + org.dkpro.core + dkpro-core-api-resources-asl + ${dkpro.version} + + + commons-logging + commons-logging-api + + + + + org.dkpro.core + dkpro-core-io-pdf-asl + ${dkpro.version} + + + commons-logging + commons-logging-api + + + org.eclipse.rdf4j @@ -1092,6 +1141,39 @@ + + org.eclipse.rdf4j + rdf4j-rio-jsonld + ${rdf4j.version} + + + org.slf4j + jcl-over-slf4j + + + + + org.eclipse.rdf4j + rdf4j-http-client + ${rdf4j.version} + + + org.slf4j + jcl-over-slf4j + + + + + org.eclipse.rdf4j + rdf4j-rio-api + ${rdf4j.version} + + + org.slf4j + jcl-over-slf4j + + + org.cyberborean @@ -1186,6 +1268,12 @@ org.opensearch.client opensearch-rest-client ${opensearch.version} + + + commons-logging + commons-logging + + org.opensearch.client @@ -1363,31 +1451,6 @@ pom import - - org.dkpro.core - dkpro-core-api-resources-asl - ${dkpro.version} - - - - - - org.apache.ivy ivy diff --git a/inception/inception-ui-core/pom.xml b/inception/inception-ui-core/pom.xml index 1ead4a56993..ad474466658 100644 --- a/inception/inception-ui-core/pom.xml +++ b/inception/inception-ui-core/pom.xml @@ -198,10 +198,6 @@ de.agilecoders.wicket wicket-bootstrap-extensions - - de.agilecoders.wicket.webjars - wicket-webjars - jakarta.persistence jakarta.persistence-api diff --git a/inception/inception-ui-core/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/core/WicketApplicationBase.java b/inception/inception-ui-core/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/core/WicketApplicationBase.java index a877bba4ef3..8304613ecc5 100644 --- a/inception/inception-ui-core/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/core/WicketApplicationBase.java +++ b/inception/inception-ui-core/src/main/java/de/tudarmstadt/ukp/clarin/webanno/ui/core/WicketApplicationBase.java @@ -79,7 +79,6 @@ import de.agilecoders.wicket.core.Bootstrap; import de.agilecoders.wicket.core.settings.IBootstrapSettings; -import de.agilecoders.wicket.webjars.WicketWebjars; import de.tudarmstadt.ukp.clarin.webanno.security.SpringAuthenticatedWebSession; import de.tudarmstadt.ukp.clarin.webanno.ui.config.FontAwesomeResourceBehavior; import de.tudarmstadt.ukp.clarin.webanno.ui.core.page.ApplicationPageBase; @@ -116,7 +115,7 @@ protected void init() { super.init(); - CompoundAuthorizationStrategy authorizationStrategy = new CompoundAuthorizationStrategy(); + var authorizationStrategy = new CompoundAuthorizationStrategy(); authorizationStrategy.add(new RoleAuthorizationStrategy(this)); getSecuritySettings().setAuthorizationStrategy(authorizationStrategy); @@ -249,14 +248,6 @@ private void initPageRequestTracker() getRequestCycleListeners().add(new PageRequestHandlerTracker()); } - @Override - protected void internalInit() - { - super.internalInit(); - - WicketWebjars.install(this); - } - protected void initWebFrameworks() { initJQueryResourceReference(); diff --git a/inception/pom.xml b/inception/pom.xml index 300b1d9e8f0..d11185d92e5 100644 --- a/inception/pom.xml +++ b/inception/pom.xml @@ -85,12 +85,6 @@ log4j-over-slf4j runtime - - - org.slf4j - jcl-over-slf4j - provided - org.slf4j @@ -106,13 +100,6 @@ org.springframework spring-jcl - runtime - - - - commons-logging - commons-logging - provided @@ -440,7 +427,6 @@ org.apache.logging.log4j:log4j-layout-template-json org.apache.logging.log4j:log4j-core org.slf4j:log4j-over-slf4j - org.slf4j:jcl-over-slf4j org.slf4j:jul-to-slf4j commons-logging:commons-logging org.springframework:spring-jcl @@ -515,6 +501,13 @@ [${maven.compiler.release},) + + + commons-logging:commons-logging + commons-logging:commons-logging-api + org.slf4j:jcl-over-slf4j + +