@TestOnly should be allowed for ElementType.PACKAGE
Nobody has claimed this yet.
Assessment
- Difficulty
- 2/5
- Estimated time
- 1-3 hours
- Newbie friendliness
- 65/100
Research direction
Start by reading the @TestOnly declaration and its ElementType targets. Check how package-info.java can apply the annotation, then verify that package-level use is accepted and the existing project checks pass.
Written by the indexing model from the issue text.
Description
I have a maven module which should only be used for tests in other modules.
Therefore, it would be very useful to be able to provide the package with @TestOnly in a package-info.java and not to provide every single class of the module with it.
- Dominant language
- Kotlin
- Stars
- 464
- Forks
- 73
- PR merge metrics
- No merged PRs in 30d
Contributor guide
First steps
- Read the whole issue, then the project's contributing guide.
- Comment on the issue to say you are picking it up — it saves two people doing the same work.
- Fork the repository and make your change on a branch.
- Open a pull request that references the issue number.
More from JetBrains/java-annotations
-
Difficulty 5/5 Over a week Newbie friendliness 25/100
JetBrains/java-annotations#134 · 6 comments · 1 reaction ·
-
JetBrains/java-annotations#125 · 1 reaction · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 35/100
JetBrains/java-annotations#122 · 2 comments ·
-
JetBrains/java-annotations#117 · 4 comments · 1 assignee ·
-
Difficulty 4/5 3-5 days Newbie friendliness 45/100
JetBrains/java-annotations#113 · 4 comments ·
All issues in JetBrains/java-annotations
Similar issues
-
bug
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
Difficulty 2/5 1-3 hours Newbie friendliness 76/100
bitcoindevkit/bdk-ffi#1125 ·
-
Issue: Bug
Difficulty 1/5 Under an hour Newbie friendliness 91/100
OpenAPITools/openapi-generator#24978 ·
-
helsemelding-json-schema json-schema-core
Difficulty 2/5 1-3 hours Newbie friendliness 68/100
-
contributor: external needs review
Difficulty 2/5 1-3 hours Newbie friendliness 82/100