Skip to content
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

Extend behaviour for Maven classifiers and types #53

Merged
merged 3 commits into from
Aug 14, 2020
Merged

Extend behaviour for Maven classifiers and types #53

merged 3 commits into from
Aug 14, 2020

Conversation

gemelen
Copy link
Contributor

@gemelen gemelen commented Aug 1, 2020

Proposed changeset adds new behaviour in corner cases related to test artifacts for dependent modules.
Mostly it covers test-jar case more extensively than in previous attempts and translates such occurrences into Ivy's "test->test" configuration of module.

Also, tests are provided to illustrate a bug and a successful solution (to some degree).
Minimalist test Maven project is based on Maven-side of Apache Spark build file.

Seems to cover #38 #37 and reiterates an idea from PR #14

Please review and comment, it'd be very nice to add this to plugin and replace Spark's fork with upstream (which is my current goal).

Add test case with fixed version of plugin to demonstrate bug.
Add test case with new version of plugin and expected success.
@gemelen
Copy link
Contributor Author

gemelen commented Aug 1, 2020

Travis build is a bit outdated and slightly dead :)

@gemelen
Copy link
Contributor Author

gemelen commented Aug 3, 2020

Trying direct mention, sorry for that: @dwijnand @metasim

Copy link
Member

@jsuereth jsuereth left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Change looks great! Nice handling of test artifacts. I'd like to see Travis happy with it before submit. Will look into that this week.

@gemelen
Copy link
Contributor Author

gemelen commented Aug 4, 2020

Awesome.
If I could help with build please let me know, I'd be glad to to offload effort from you.

@dongjoon-hyun
Copy link

Hi, All. Travis CI seems to be not happy for some other reasons still. Is there any update?

@gemelen
Copy link
Contributor Author

gemelen commented Aug 8, 2020

I guess because CI script tries to setup JDK6 and fails, since it's not supported anymore.

@jsuereth jsuereth merged commit c5e0091 into sbt:master Aug 14, 2020
@lightbend-cla-validator

Hi @gemelen,

Thank you for your contribution! We really value the time you've taken to put this together.

Before we proceed with reviewing this pull request, please sign the Lightbend Contributors License Agreement:

https://www.lightbend.com/contribute/cla

@gemelen gemelen deleted the experiment/inter-deps-scope-check branch August 18, 2020 07:58
@@ -0,0 +1,2 @@
> parent/compile
> parent/Test/compile
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This test failed during the auto publishing, so I had to disable it - https://travis-ci.org/github/sbt/sbt-pom-reader/jobs/719975106

[info] [info] Compiling 1 Java source to /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/common/module1/target/scala-2.12/test-classes ...
[info] [info] Done compiling.
[info] [info] Compiling 1 Scala source and 1 Java source to /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/core/target/scala-2.12/test-classes ...
[info] [error] /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/core/src/test/java/net/gemelen/example/core/JavaCoreTest.java:3:1: cannot find symbol
[info] [error]   symbol:   class MarkerTest
[info] [error]   location: package net.gemelen.example.annotation
[info] [error] import net.gemelen.example.annotation.MarkerTest;
[info] [error] /tmp/sbt_fffa9bf1/can-handle-classifiers-and-types/core/src/test/java/net/gemelen/example/core/JavaCoreTest.java:7:1: cannot find symbol
[info] [error]   symbol:   class MarkerTest
[info] [error]   location: class net.gemelen.example.core.JavaCoreTest
[info] [error]     @MarkerTest
[info] [error] (core / Test / compileIncremental) javac returned non-zero exit code
[info] [error] Total time: 1 s, completed Aug 21, 2020 4:22:27 PM
[error] x reactor-pom / can-handle-classifiers-and-types 

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

5 participants