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.

4.1.69 Release breaks Java modular build

See original GitHub issue

On the previous version (4.1.68.Final) I included io.netty:netty-all:4.1.68.Final in my Gradle build and used requires io.netty.all; in my module-info.java. That worked like a charm. But with version 4.1.69.Final the io.netty.all (automatic) module is gone and replaced by modules for all sub-jars. Even if I require them all I get errors like this: error: module io.netty.buffer reads package io.netty.handler.codec.xml from both io.netty.codec and io.netty.codec.xml

The full build log: https://gist.github.com/iTitus/59e0effedcba03f319d069f47d927176

Issue Analytics

  • State:closed
  • Created 2 years ago
  • Comments:8 (2 by maintainers)

github_iconTop GitHub Comments

1reaction
iTituscommented, Oct 12, 2021

It builds & runs locally with the BOM -> https://github.com/iTitus/skat-java/commit/31e8120fa98c036283006f36e33324d7053f5556

But it breaks when trying to use jlink:

error: package reactor.blockhound.integration does not exist
    provides reactor.blockhound.integration.BlockHoundIntegration with io.netty.util.internal.Hidden.NettyBlockHoundIntegration;
                                           ^

I’ll have to try to manually disable this service.

0reactions
iTituscommented, Nov 6, 2021

You might need to tell your dependency provider (be it Maven or Gradle) that you do not want the transitive dependencies of your direct dependencies. Then include all the netty modules that are needed.

Read more comments on GitHub >

github_iconTop Results From Across the Web

Netty 4.1.69.Final released - Netty.news
This release changes the way how the netty-all artifact is packaged / produced. While before it did contain all the code of all...
Read more >
ODL Parent release notes - OpenDaylight Documentation
This is a major upgrade from version 10, with breaking changes; downstream projects may need to make changes to upgrade to this version....
Read more >
Release Notes | SAP Cloud SDK
Release notes of SAP Cloud SDK for Java, stay up to date with the recent features, fixes, dependency updates and recommendedations.
Read more >
Bigtop Project Release Notes
' broke Zeppelin build. [BIGTOP-2187] - toolchain creates user with different ids on different systems; [BIGTOP-2188] - bigtop/puppet:ubuntu- ...
Read more >
Release Notes - Documentation ・ CoreMedia
CMS-19344: Deprecated Hoverfly Extension Classes in LiveContext Test Modules. • CMS-19643: GraphQL Java Library updated from 16.1 to Version 16.2.
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