-
Notifications
You must be signed in to change notification settings - Fork 0
[rewrite] Add junitbuild.rewrite-conventions.gradle.kts
#14
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
base: main
Are you sure you want to change the base?
Conversation
| implementation(libs.plugins.nullaway.markerCoordinates) | ||
| implementation(libs.plugins.shadow.markerCoordinates) | ||
| implementation(libs.plugins.spotless.markerCoordinates) | ||
| implementation(libs.plugins.rewrite.markerCoordinates) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
it seems to compile but it not applied i can not execute the plugin:
- What went wrong:
Task 'rewriteRun' not found in root project 'junit-framework' and its subprojects.
please how to fix this? @vlsi
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
You need to apply id("junitbuild.rewrite-conventions") plugin like in
junit5/gradle/plugins/common/src/main/kotlin/junitbuild.base-conventions.gradle.kts
Line 4 in 786aa07
| id("junitbuild.spotless-conventions") |
junitbuild.rewrite-conventions.gradle.kts adds Gradle plugin, and you need to use it to activate.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
could you please help me fixing this step?
Extension with name 'rewrite' does not exist. Currently registered extension names: [ext, develocity, libs, versionCatalogs, projects, grolifant, asciidoctorj, pdfThemes, gitPublish, buildParameters, base, sourceSets, reporting, javaToolchains, java, testing, eclipse, spotless]
its able apply only the plugin id("org.openrewrite.rewrite"), but when trying to configure it its not findig it.
51756a1 to
372075a
Compare
| plugins { | ||
| id("org.openrewrite.rewrite") | ||
| } | ||
| rewrite { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Thanks.
Now i can execute but not configure it. When applying it fails:
An exception occurred applying plugin request [id: 'junitbuild.kotlin-library-conventions']
> Failed to apply plugin 'junitbuild.rewrite-conventions'.
> Extension with name 'rewrite' does not exist. Currently registered extension names: [ext, develocity, libs, versionCatalogs, projects, grolifant, asciidoctorj, pdfThemes, gitPublish, buildParameters, base, sourceSets, reporting, javaToolchains, java, testing, eclipse, spotless]
Signed-off-by: Vincent Potucek <[email protected]>
372075a to
7e0af0e
Compare
I hereby agree to the terms of the JUnit Contributor License Agreement.
Definition of Done
@APIannotations