testcontainers / testcontainers/testcontainers-java

Please move static analysis dependencies in compileOnly scope

Open
#1,824 6 comments 0 reactions 0 assignees View on GitHub

Nobody has claimed this yet.

help wanted resolution/somedaymaybe type/feature
Dominant language
Java
Stars
8.7k
Forks
1.9k
Avg merge
2d 17h
Merged PRs (30d)
9

Description

Currently these dependencies are in compile scope:

  • org.jetbrains:annotations
  • javax.annotation:javax.annotation-api

Please move them into compileOnly. I suppose Testcontainers users don't need these libraries in classpath.

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

Locate the build configuration entries for org.jetbrains:annotations and javax.annotation:javax.annotation-api. Change their dependency scope from compile to compileOnly, then run the relevant build and tests to verify Testcontainers still compiles and tests pass without exposing these libraries on the runtime classpath.

Written by the indexing model from the issue text.

Assessment

Tech stack
java
Domain
build-system
Issue type
Refactor
Difficulty
2/5
Estimated time
1-3 hours
Activity status
Stale
Clarity
Mostly clear
Newbie friendliness
45/100

Get new issues in your inbox

A short digest of beginner-friendly GitHub issues.