-
Notifications
You must be signed in to change notification settings - Fork 87
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
don't leak Anvil's annotation artifacts to the target project's compile classpath #822
Conversation
ec9fd64
to
3167ff2
Compare
50e232e
to
0d3cc7d
Compare
0d3cc7d
to
81cb9f4
Compare
* For this test, we're testing what dependencies Anvil adds to the target project's own | ||
* `runtimeClasspath` and `compileClasspath` configurations. Specifically, it adds the Anvil | ||
* annotations dependency -- but is it added correctly as a `compileOnly` dependency, | ||
* or is it being added as `implementation` or something else? |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This comment is great 👍
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks 😄 I think the coffee had just kicked in.
* or is it being added as `implementation` or something else? | ||
*/ | ||
@TestFactory | ||
fun `annotations aren't in the runtime classpath`() = listOf( |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Nit: Since we also care about verifying that the annotations are included in the compile classpath, something like annotations are only included in the compile classpath
might be better for encoding the expectations
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
That's an excellent point. Thanks!
81cb9f4
to
e6a8d35
Compare
No description provided.