-
Notifications
You must be signed in to change notification settings - Fork 539
[rewrite] fix GradleBestPractices
#2727
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
Changes from all commits
File filter
Filter by extension
Conversations
Jump to
Diff view
Diff view
There are no files selected for viewing
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -4,37 +4,14 @@ equoIde { | |
| welcome().openUrl('https://github.com/diffplug/spotless/blob/main/CONTRIBUTING.md') | ||
| gradleBuildship().autoImport('.') | ||
| } | ||
|
|
||
| repositories { | ||
| mavenCentral() | ||
| } | ||
|
|
||
| apply from: rootProject.file('gradle/java-publish.gradle') | ||
| apply from: rootProject.file('gradle/changelog.gradle') | ||
| allprojects { | ||
| apply from: rootProject.file('gradle/error-prone.gradle') | ||
| apply from: rootProject.file('gradle/rewrite.gradle') | ||
| apply from: rootProject.file('gradle/spotless.gradle') | ||
| } | ||
| apply from: rootProject.file('gradle/changelog.gradle') | ||
| apply from: rootProject.file('gradle/java-publish.gradle') | ||
| apply from: rootProject.file('gradle/rewrite.gradle') | ||
| apply from: rootProject.file('gradle/spotless-freshmark.gradle') | ||
|
Comment on lines
-11
to
19
Member
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more.
That's a risky change. I think they depend on each other, but it takes time to confirm, and we won't notice it's broken until a publish fails. Try to make your PR's more focused on a single change and they are easier to merge. |
||
|
|
||
| spotless { | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. is this possible to move and merge with the dedicated project config? or do we need this to be divided? |
||
| groovyGradle { | ||
| target '*.gradle', 'gradle/*.gradle' | ||
| } | ||
| format 'dotfiles', { | ||
| target '.gitignore', '.gitattributes', '.editorconfig' | ||
| leadingTabsToSpaces(2) | ||
| trimTrailingWhitespace() | ||
| endWithNewline() | ||
| } | ||
| } | ||
|
|
||
| dependencies { | ||
| rewrite(platform('org.openrewrite.recipe:rewrite-recipe-bom:3.16.0')) | ||
| rewrite('org.openrewrite.recipe:rewrite-migrate-java:3.19.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-java-security:3.19.2') | ||
| rewrite('org.openrewrite.recipe:rewrite-rewrite:0.14.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-static-analysis:2.19.0') | ||
| rewrite('org.openrewrite.recipe:rewrite-third-party:0.29.0') | ||
| } | ||
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,7 +1,8 @@ | ||
| distributionBase=GRADLE_USER_HOME | ||
| distributionPath=wrapper/dists | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.1.0-bin.zip | ||
| distributionUrl=https\://services.gradle.org/distributions/gradle-9.2.1-bin.zip | ||
| networkTimeout=10000 | ||
| validateDistributionUrl=true | ||
| zipStoreBase=GRADLE_USER_HOME | ||
| zipStorePath=wrapper/dists | ||
| distributionSha256Sum=72f44c9f8ebcb1af43838f45ee5c4aa9c5444898b3468ab3f4af7b6076c5bc3f | ||
|
Author
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. |
||
Uh oh!
There was an error while loading. Please reload this page.