Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
Original file line number Diff line number Diff line change
Expand Up @@ -85,24 +85,19 @@ if (project == rootProject) {
".gitattributes",
".gitconfig",
".editorconfig",
"**/*.md",
"**/*.sh",
"**/*.dockerfile",
"**/gradle.properties"
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

the leading **/ causes slowness b/c searching entire directory tree

Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

there are .md files in instrumentation too

"*.md",
"gradle.properties",
".github/**/*.md",
".github/**/*.sh",
"docs/**/*.md",
"examples/**/*.md",
"examples/**/gradle.properties",
"licenses/**/*.md"
)
leadingTabsToSpaces()
trimTrailingWhitespace()
endWithNewline()
}
groovy {
target("**/*.groovy")
targetExclude("**/build/**")
licenseHeaderFile(
rootProject.file("buildscripts/spotless.license.java"),
"(package|import|(?:abstract )?class)"
)
endWithNewline()
}
Comment on lines -97 to -105
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

only 1 module (grails) has groovy files so moved this there

predeclareDeps()
}

Expand Down
11 changes: 11 additions & 0 deletions instrumentation/grails-3.0/javaagent/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -61,6 +61,17 @@ configurations.testRuntimeClasspath {
}
}

spotless {
groovy {
target("src/**/*.groovy")
licenseHeaderFile(
rootProject.file("buildscripts/spotless.license.java"),
"(package|import|(?:abstract )?class)"
)
endWithNewline()
}
}

tasks {
withType<Test>().configureEach {
systemProperty("testLatestDeps", latestDepTest)
Expand Down
Loading