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

maven-publish integration in multi-module project #36

Closed
geoHeil opened this issue Feb 16, 2022 · 1 comment
Closed

maven-publish integration in multi-module project #36

geoHeil opened this issue Feb 16, 2022 · 1 comment

Comments

@geoHeil
Copy link

geoHeil commented Feb 16, 2022

I have a multi modue project in gradle.

Ideally, I want to apply the changelog plugin only once - to prevent: #24

But if I do this, the maven-publish task fails and only sets a version of undefined.

However, if I apply changelog to all projects the maven-publish task works nicely, but I can no longer execute the version bump task.
The workaround suggested here: #25 respectively https://github.com/diffplug/spotless/blob/58e53b64ee312a8f013afbdbc2bbbd1c23eae77e/gradle/changelog.gradle#L1-L22 is not what I want. Rather a single changelog for the overall modules in the project i.e. single application.

How can this be achieved?

@geoHeil
Copy link
Author

geoHeil commented Feb 16, 2022

By setting:

  • group
  • version to the spotless next version

in the allprojects section of gradle. I can achieve the desired result.

@geoHeil geoHeil closed this as completed Feb 16, 2022
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

No branches or pull requests

1 participant