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

[Bug] Workflow receive-pr fails - Task 'licenseFormat' not found #54

Closed
timo-a opened this issue May 12, 2024 · 1 comment
Closed

[Bug] Workflow receive-pr fails - Task 'licenseFormat' not found #54

timo-a opened this issue May 12, 2024 · 1 comment
Assignees
Labels
bug Something isn't working

Comments

@timo-a
Copy link

timo-a commented May 12, 2024

I have forked this repository and created a PR on my fork, but the job upload-patch in the workflow receive-pr
https://github.com/timo-a/rewrite-recipe-starter/actions/runs/9051981890/job/24869151089?pr=1
fails:

Task 'licenseFormat' not found in root project 'rewrite-recipe-starter'.

I could not spot any such task in https://github.com/openrewrite/rewrite-migrate-java/blob/main/build.gradle.kts but that repo has a LICENSE file whereas this repo doesn't. Maybe that's the issue? Just tried it on my fork, adding such a file alone is not the solution.

I inadvertently created the same PR against this repo as well: #53.
If the workflow is approved there I expect the same error. Maybe that helps in the investigation, otherwise the PR can be closed.

@timtebeek
Copy link
Contributor

Thanks for pointing this out! We recently reshuffled how this project uses our shared build plugins, to make it easier to adopt for folks in more restrictive environments (openrewrite/rewrite-build-gradle-plugin@7f0b11d & 15bdd28). As part of that I guess the licenseFormat plugin was dropped, but the workflow wasn't updated. I've fixed that now in 97d48ac, thanks to your help. :)

@timtebeek timtebeek added the bug Something isn't working label May 12, 2024
@timtebeek timtebeek self-assigned this May 12, 2024
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants