Skip to content

Commit 36479c2

Browse files
committed
chore: optimize spotlessFreshmark integration
1 parent f059e34 commit 36479c2

File tree

1 file changed

+8
-5
lines changed

1 file changed

+8
-5
lines changed

build-logic/src/main/groovy/buildlogic.spotless-markdown-conventions.gradle

Lines changed: 8 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@ spotless {
1111
// provide lib versions to freshmark
1212
properties(new FreshmarkPropertiesAction(rootProject, project))
1313
properties {
14-
it.put('changeThisValueToForceCacheMiss', '9040f43e-a15b-40a4-a755-6742a2c03a27')
14+
it.put('changeThisValueToForceCacheMiss', '1f31705c-b1c6-4bce-9831-98881431b721')
1515
}
1616
prettier() // prettier for markdown formatting
1717
endWithNewline()
@@ -87,7 +87,10 @@ class UsageHelp implements Serializable {
8787
}
8888
}
8989

90-
//tasks.named('spotlessFreshmark').configure {
91-
// dependsOn(':app:generateUsage') // to make sure usage files are generated before spotlessFreshmark
92-
// inputs.files(rootProject.project(':app').tasks.named('generateUsage').get().inputs.files)
93-
//}
90+
tasks.named('spotlessFreshmark').configure {
91+
it.mustRunAfter(tasks.withType(Test))
92+
it.mustRunAfter(project(':app').tasks.withType(Test))
93+
94+
it.mustRunAfter(project(':app').tasks.named('generateUsage'))
95+
it.inputs.dir('app/build/generated-usages')
96+
}

0 commit comments

Comments
 (0)