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

Add type to plugin tasks #216

Open
JavierSegoviaCordoba opened this issue Apr 18, 2023 · 2 comments
Open

Add type to plugin tasks #216

JavierSegoviaCordoba opened this issue Apr 18, 2023 · 2 comments
Labels
enhancement New feature or request

Comments

@JavierSegoviaCordoba
Copy link
Contributor

publishingProject.tasks.register(...) { }

As it is not using any type, I can't filter with withType if I want to disable the publishing tasks, and by name, it can have tons of tasks.

@szpak szpak added the enhancement New feature or request label Apr 18, 2023
@szpak
Copy link
Contributor

szpak commented Apr 18, 2023

Yes, it was just an umbrella tasks to simplify task orchestration. Would you see it as a new custom type or rather reuse something existing from Gradle?

@JavierSegoviaCordoba
Copy link
Contributor Author

I am unsure if it is possible to reuse PublishToMavenRepository maybe a combination of both, PublishToSonatype extending PublishToMavenRepository, so it can be configured in a more granular way by the consumer.

Adding an option to the plugin extension, such as disableIf { ... }, can also be great.

Another workaround I am using is changing the root project version in order to allow publishing specific subprojects based on tag prefixes with different versions, but this would be a different issue (I think there is one already opened).

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

No branches or pull requests

2 participants