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

Refined mandatory ivy libs handling #1490

Merged
merged 3 commits into from
Sep 23, 2021

Conversation

lefou
Copy link
Member

@lefou lefou commented Sep 23, 2021

Add JavaModule.mandatoryIvyDeps target to contain typical required ivy dependencies without the need to override and include super.ivyDeps.

This fixes #1487 and streamlines platform dependency handling for downstream modules like ScalaModule, ScalaJSModule, ScalaNativeModule. It's probably also useful for other modules which need to bring-in additional dependencies.

This PR includes and refines PR #1489.

lolgab and others added 2 commits September 23, 2021 00:38
`PublishModule` extends JavaModule so doesn't know about
`scalaLibraryIvyDeps`. To make it insert the `scalaLibraryIvyDeps`
into the pom we introduce two new targets in `JavaModule`:
`mandatoryIvyDeps` which will contain libraries users unlikely will want
remove, like the content of `scalaLibraryIvyDeps`, and `alIvyDeps`,
which will be useful for consumers to get all the ivyDeps without missing
the mandatory ones.
* Removed newly introduced `JavaModule.allIvyDeps` target
* Added test case for `PublishModule.ivy` target
* Some cleanups, e.g. removed obsolete overrides in ScalaModule
* Some ScalaDoc
@lefou lefou requested a review from lolgab September 23, 2021 10:59
Copy link
Member

@lolgab lolgab left a comment

Choose a reason for hiding this comment

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

I was uncertain too about the allIvyDeps target. Good move to remove it.
It's so nice when you remove things and fix bugs at the same time.
LGTM! 👍

@lefou lefou merged commit de6c421 into com-lihaoyi:main Sep 23, 2021
@lefou lefou deleted the scala-library-in-ivy-deps-3 branch September 23, 2021 14:38
@lefou lefou added this to the after 0.10.0-M2 milestone Sep 23, 2021
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.

scala-library dependency is not added to published jars' pom.xml
2 participants