question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Remove cglib dependency

See original GitHub issue

I was working on an older code base and it had cglib among other versions that should be removed when performing a migration to 5.x. Here were the entries that should be removed:

<dependency>
  <groupId>org.aspectj</groupId>
  <artifactId>aspectjrt</artifactId>
  <version>1.6.0</version>
</dependency>

<dependency>
  <groupId>org.aspectj</groupId>
  <artifactId>aspectjweaver</artifactId>
  <version>1.6.0</version>
</dependency>

<dependency>
  <groupId>aopalliance</groupId>
  <artifactId>aopalliance</artifactId>
  <version>1.0</version>
</dependency>

<dependency>
  <groupId>cglib</groupId>
  <artifactId>cglib</artifactId>
  <version>2.2.2</version>
</dependency>

Issue Analytics

  • State:closed
  • Created a year ago
  • Comments:6 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
rdifrangocommented, May 12, 2022

Thank you @pway99 !

1reaction
rdifrangocommented, May 10, 2022

The need for cglib explicitly was removed back in Spring 3.2 as they now repackage it within Spring APP:

https://docs.spring.io/spring-framework/docs/3.2.0.RELEASE/spring-framework-reference/html/migration-3.2.html

Read more comments on GitHub >

github_iconTop Results From Across the Web

Why Spring 3 needs explicit cglib dependency declaration ...
As of Spring 3.2, it is no longer necessary to add CGLIB to your project classpath, as CGLIB classes are repackaged under org.springframework...
Read more >
Remove CGLIB · Issue #327 - GitHub
In this issue I want to discuss the pros and cons to remove CGLIB and to base p6spy on manual wrapper objects for...
Read more >
Introduction to cglib - Baeldung
To use cglib in your project, just add a Maven dependency (latest version can be found here): <dependency> <groupId>cglib</groupId> ...
Read more >
CGLIB is required to process @Configuration classes
Either add CGLIB to the classpath or remove the following ... If not, add below dependency in your pom.xml file, which will solve...
Read more >
Java 17 support - Google Groups
In the latest release (5.0.1) the CGLIB dependency has been removed leaving ASM as the only shaded dependency - because it's shaded it...
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found