-
Notifications
You must be signed in to change notification settings - Fork 33
Chore/upgrade spring to 5 3 #216
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
base: master
Are you sure you want to change the base?
Changes from 5 commits
3f2c8bd
8e76f03
763db07
ef58af8
5fd2c58
3c626d9
5002fc7
7ed1fc4
29d42d8
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,4 +5,5 @@ | |
| /*.iml | ||
| .idea | ||
| .springBeans | ||
| .DS_Store | ||
| overlays | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,4 +1,5 @@ | ||
| # Gateway SSO Configuration | ||
| *THIS PORTLET TYPE IS DEPRECATED* | ||
|
|
||
|  | ||
|
|
||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -58,9 +58,11 @@ | |
| <commons-lang.version>2.6</commons-lang.version> | ||
| <portlet-api.version>2.0</portlet-api.version> | ||
| <resource-server.version>1.0.44</resource-server.version> | ||
| <servlet-api.version>2.5</servlet-api.version> | ||
| <spring.version>4.3.30.RELEASE</spring.version> | ||
| <servlet.version>3.1.0</servlet.version> | ||
| <spring.version>5.3.28</spring.version> | ||
| <portletmvc4spring.version>5.2.0</portletmvc4spring.version> | ||
| <logbackVersion>1.3.5</logbackVersion> | ||
| <lombok.version>1.18.28</lombok.version> | ||
| <slf4jVersion>2.0.6</slf4jVersion> | ||
| <mockito.version>4.9.0</mockito.version> | ||
| <portlet.mvc.util.version>1.1.3</portlet.mvc.util.version> | ||
|
|
@@ -87,8 +89,8 @@ | |
| </dependency> | ||
| <dependency> | ||
| <groupId>javax.servlet</groupId> | ||
| <artifactId>servlet-api</artifactId> | ||
| <version>${servlet-api.version}</version> | ||
| <artifactId>javax.servlet-api</artifactId> | ||
| <version>${servlet.version}</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
|
|
@@ -97,11 +99,6 @@ | |
| <version>${junit.version}</version> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>net.sf.ehcache</groupId> | ||
| <artifactId>ehcache-core</artifactId> | ||
| <version>2.6.11</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.httpcomponents</groupId> | ||
| <artifactId>httpclient</artifactId> | ||
|
|
@@ -131,14 +128,12 @@ | |
| <groupId>org.jasig.portal</groupId> | ||
| <artifactId>uPortal-spring</artifactId> | ||
| <version>${uportal-libs.version}</version> | ||
| <!-- | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>commons-collections</groupId> | ||
| <artifactId>commons-collections</artifactId> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>log4j-over-slf4j</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| --> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.jasig.resourceserver</groupId> | ||
|
|
@@ -177,9 +172,14 @@ | |
| <version>${spring.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.springframework</groupId> | ||
| <artifactId>spring-webmvc-portlet</artifactId> | ||
| <version>${spring.version}</version> | ||
| <groupId>com.liferay.portletmvc4spring</groupId> | ||
| <artifactId>com.liferay.portletmvc4spring.framework</artifactId> | ||
| <version>${portletmvc4spring.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.liferay.portletmvc4spring</groupId> | ||
| <artifactId>com.liferay.portletmvc4spring.security</artifactId> | ||
| <version>${portletmvc4spring.version}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.springframework</groupId> | ||
|
|
@@ -198,40 +198,23 @@ | |
| </dependency> | ||
|
|
||
| <!-- For sl4j/logback logging, see https://wiki.jasig.org/display/PLT/Logging+Best+Practices --> | ||
| <dependency> | ||
| <groupId>commons-logging</groupId> | ||
| <artifactId>commons-logging</artifactId> | ||
| <version>1.2</version> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
|
Comment on lines
-201
to
-206
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. Why was this removed? When I deploy the portlet to Tomcat, I see both these jars in WEB-INF/lib, but I think we only want the slf4j one:
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. For logging, the goal is logback (via the slf4j api). All other logging implementations (even transitive ones) should be removed. I'll look into how commons-logging is still getting deployed. The JCL bridges (-over-) are now included in spring-jcl, so we don't have to explicitly declare them in the pom, however, I'll need to check if
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. So, lines 201-206 actually prevent any dependency from pulling in commons-logging, which is why I think it should remain. Otherwise, you have to find which dependencies are pulling in commons-logging and add excludes.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. discussed in PR - change the parent pom to have a |
||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| <version>${slf4jVersion}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>jul-to-slf4j</artifactId> | ||
| <version>${slf4jVersion}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>log4j-over-slf4j</artifactId> | ||
| <version>${slf4jVersion}</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>jcl-over-slf4j</artifactId> | ||
| <version>${slf4jVersion}</version> | ||
| </dependency> | ||
cbeach47 marked this conversation as resolved.
Show resolved
Hide resolved
|
||
| <dependency> | ||
| <groupId>ch.qos.logback</groupId> | ||
| <artifactId>logback-classic</artifactId> | ||
| <version>${logbackVersion}</version> | ||
| <scope>runtime</scope> | ||
| </dependency> | ||
| <!-- End of logging section --> | ||
|
|
||
| <dependency> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> | ||
| <version>${lombok.version}</version> | ||
| </dependency> | ||
| </dependencies> | ||
| </dependencyManagement> | ||
|
|
||
|
|
@@ -264,18 +247,14 @@ | |
| </dependency> | ||
| <dependency> | ||
| <groupId>javax.servlet</groupId> | ||
| <artifactId>servlet-api</artifactId> | ||
| <artifactId>javax.servlet-api</artifactId> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>junit</groupId> | ||
| <artifactId>junit</artifactId> | ||
| <scope>test</scope> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>net.sf.ehcache</groupId> | ||
| <artifactId>ehcache-core</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.apache.httpcomponents</groupId> | ||
| <artifactId>httpclient</artifactId> | ||
|
|
@@ -318,8 +297,12 @@ | |
| <artifactId>spring-webmvc</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.springframework</groupId> | ||
| <artifactId>spring-webmvc-portlet</artifactId> | ||
| <groupId>com.liferay.portletmvc4spring</groupId> | ||
| <artifactId>com.liferay.portletmvc4spring.framework</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>com.liferay.portletmvc4spring</groupId> | ||
| <artifactId>com.liferay.portletmvc4spring.security</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>taglibs</groupId> | ||
|
|
@@ -364,24 +347,17 @@ | |
| <groupId>org.slf4j</groupId> | ||
| <artifactId>slf4j-api</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>jul-to-slf4j</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>log4j-over-slf4j</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.slf4j</groupId> | ||
| <artifactId>jcl-over-slf4j</artifactId> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>ch.qos.logback</groupId> | ||
| <artifactId>logback-classic</artifactId> | ||
| <scope>runtime</scope> | ||
| </dependency> | ||
| <!-- End of logging section --> | ||
| <dependency> | ||
| <groupId>org.projectlombok</groupId> | ||
| <artifactId>lombok</artifactId> | ||
| <scope>provided</scope> | ||
| </dependency> | ||
| </dependencies> | ||
|
|
||
| <build> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -29,6 +29,7 @@ | |
| * @author James Wennmacher, [email protected] | ||
| * @version $Id: $Id | ||
| */ | ||
| @Deprecated // No known usage of this portlet type. Remove when we jump to Java 17. | ||
| public class BaseGatewayPortletController { | ||
| /** | ||
| * <p>removeInaccessibleEntries.</p> | ||
|
|
||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -37,6 +37,7 @@ | |
| * @author Jen Bourey, [email protected] | ||
| * @version $Id: $Id | ||
| */ | ||
| @Deprecated // No known usage of this portlet type. Remove when we jump to Java 17. | ||
| public class GatewayEntry { | ||
|
|
||
| private String name; | ||
|
|
||
Uh oh!
There was an error while loading. Please reload this page.