testcontainers / testcontainers/testcontainers-java

[Bug]: unknown enum constant ImplementationVisibility.PACKAGE

Open
#6,940 1 comment 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

type/bug
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

Module

Core

Testcontainers version

tip

Using the latest Testcontainers version?

Yes

Host OS

windows

Host Arch

x86

Docker version
Docker Desktop 4.18.0 (104112) is currently the newest version available.
What happened?

Using JDK 17 on windows to compile

java version "17.0.2" 2022-01-18 LTS
Java(TM) SE Runtime Environment (build 17.0.2+8-LTS-86)
Java HotSpot(TM) 64-Bit Server VM (build 17.0.2+8-LTS-86, mixed mode, sharing)

Using Gradle version

Gradle 8.1.1

Build time: 2023-04-21 12:31:26 UTC
Revision: 1cf537a851c635c364a4214885f8b9798051175b

Kotlin: 1.8.10
Groovy: 3.0.15
Ant: Apache Ant(TM) version 1.10.11 compiled on July 10 2021
JVM: 17.0.2 (Oracle Corporation 17.0.2+8-LTS-86)
OS: Windows 10 10.0 amd64

Relevant log output
testcontainers-java\examples\cucumber>gradle test
Starting a Gradle Daemon (subsequent builds will be faster)

> Task :testcontainers-java:buildSrc:jar
:jar: No valid plugin descriptors were found in META-INF/gradle-plugins

> Task :testcontainers-java:testcontainers:compileJava
warning: unknown enum constant ImplementationVisibility.PACKAGE
  reason: class file for org.immutables.value.Value$Style$ImplementationVisibility not found
testcontainers-java\core\src\main\java\org\testcontainers\images\AgeBasedPullPolicy.java:14: warning: Generating equals/hashCode implementation but without a call to superclass, even though this class does not extend java.lang.Object. If this is intentional, add '@EqualsAndHashCode(callSuper=false)' to your type.
@Value
^
warning: unknown enum constant ImplementationVisibility.PACKAGE
  reason: class file for org.immutables.value.Value$Style$ImplementationVisibility not found
warning: unknown enum constant ImplementationVisibility.PACKAGE
  reason: class file for org.immutables.value.Value$Style$ImplementationVisibility not found
warning: unknown enum constant ImplementationVisibility.PACKAGE
  reason: class file for org.immutables.value.Value$Style$ImplementationVisibility not found
warning: unknown enum constant ImplementationVisibility.PACKAGE
  reason: class file for org.immutables.value.Value$Style$ImplementationVisibility not found
Note: Some input files use or override a deprecated API.
Note: Recompile with -Xlint:deprecation for details.

Deprecated Gradle features were used in this build, making it incompatible with Gradle 9.0.

You can use '--warning-mode all' to show the individual deprecation warnings and determine if they come from your own scripts or plugins.rc\main\java\org\testco
ntainers\containers\BrowserWebDriverContainer.java uses or overrides a deprecate
See https://docs.gradle.org/8.1.1/userguide/command_line_interface.html#sec:command_line_warningsith -Xlint:deprecation for details.
<============-> 93% EXECUTING [1m 14s]
BUILD SUCCESSFUL in 6m 14sng test org.testcontainers.examples.CucumberTest
Additional Information

Maybe some issue with Lombok version used

Contributor guide

Open the contributing guide

First steps

  1. Read the whole issue, then the project's contributing guide.
  2. Comment on the issue to say you are picking it up — it saves two people doing the same work.
  3. Fork the repository and make your change on a branch.
  4. Open a pull request that references the issue number.

Research direction

Reproduce the warning with gradle test from the examples/cucumber entry point using the reported JDK and Gradle versions. Inspect the build configuration and the annotation-processing context around core/src/main/java/org/testcontainers/images/AgeBasedPullPolicy.java; done means the build completes without the unknown ImplementationVisibility.PACKAGE warning.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Bug
Difficulty
3/5
Estimated time
1-2 days
Activity status
Stale
Clarity
Needs clarification
Newbie friendliness
32/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.