File tree Expand file tree Collapse file tree 2 files changed +3
-1
lines changed
plugins/license-gather-plugin/src/main/kotlin/com/github/vlsi/gradle/license Expand file tree Collapse file tree 2 files changed +3
-1
lines changed Original file line number Diff line number Diff line change @@ -97,7 +97,7 @@ open class GatherLicenseTask @Inject constructor(
97
97
) : DefaultTask() {
98
98
init {
99
99
// TODO: capture [licenseOverrides] as input
100
- outputs.upToDateWhen { false }
100
+ outputs.upToDateWhen { licenseOverrides.isEmpty() }
101
101
}
102
102
103
103
@InputFiles
Original file line number Diff line number Diff line change @@ -24,6 +24,8 @@ class LicenseOverrides {
24
24
private val map = mutableMapOf<String , LicenseOverride >()
25
25
private val usedOverrides = mutableSetOf<String >()
26
26
27
+ fun isEmpty (): Boolean = map.isEmpty()
28
+
27
29
val unusedOverrides: Set <String > get() = map.keys.minus(usedOverrides)
28
30
29
31
fun configurationComplete () {
You can’t perform that action at this time.
0 commit comments