Closed ziccardi closed 2 years ago
Seems to be there: https://repo1.maven.org/maven2/org/testcontainers/testcontainers/1.16.3/testcontainers-1.16.3.pom
make sure that your Gradle repositories are configured correctly.
Hi @bsideup !
I'm ok with you to close the issue, but the error wasmodule not found
, not a gradle configuration issue.
By looking at the link I provided, you can see that the error is about a Java 9 module based project: I even provided a whole project you can clone to replicate the issue and see it is not a gradle misconfiguration.
I discussed with @kiview on slack about it: the problem is that since testcontainers
doesn't have a Automatic-Module-Name
in the metainf, gradle puts the jar into the unnamed module
, which is not visible from named modules.
I worked around that by adding java9-modularity plugin
to gradle to be able to use testcontainers
as a named module.
That worked for me because I used a custom docker image, but if you need to use one of the others Testcontainers deps you will get a split package
error because different testcontainer artifacts are sharing the same package.
Ah, I see. Well, Testcontainers isn't a Java Module. We are considering making it modular in 2.0.
See https://github.com/testcontainers/testcontainers-java/issues/521 & https://github.com/testcontainers/testcontainers-java/issues/1523 for more context.
Description
Hello guys, I have a
module not found
error in this branch: testcontainers.The testcontainer dependency is added here and the module is required here
Any idea about what I am missing here?
Steps to reproduce
You can reproduce the error by cloning the repo, move to the
testcontainers
branch and run:My environment
Thank you in advance!