Skip to content

Commit 0c21df1

Browse files
committed
Check the gems directory rather than outputDir for changesa (#350)
1 parent 4c6678e commit 0c21df1

File tree

2 files changed

+4
-3
lines changed

2 files changed

+4
-3
lines changed

base-plugin/src/main/groovy/com/github/jrubygradle/JRubyPrepare.groovy

Lines changed: 4 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,6 @@ import org.gradle.api.file.FileCollection
88
import org.gradle.api.tasks.InputFiles
99
import org.gradle.api.tasks.Internal
1010
import org.gradle.api.tasks.Optional
11-
import org.gradle.api.tasks.OutputDirectory
1211
import org.gradle.api.tasks.TaskAction
1312

1413
/**
@@ -19,9 +18,12 @@ import org.gradle.api.tasks.TaskAction
1918
@CompileStatic
2019
class JRubyPrepare extends DefaultTask {
2120

21+
JRubyPrepare() {
22+
outputs.dir({ JRubyPrepare t -> new File(t.getOutputDir(), 'gems') }.curry(this))
23+
}
24+
2225
/** Target directory for GEMs. Extracted GEMs should end up in {@code outputDir + "/gems"}
2326
*/
24-
@OutputDirectory
2527
File getOutputDir() {
2628
project.file(this.outputDir)
2729
}

gradle/codenarc.groovy

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -243,7 +243,6 @@ ruleset {
243243
SystemOutPrint
244244
SystemRunFinalizersOnExit
245245
TernaryCouldBeElvis
246-
ThisReferenceEscapesConstructor
247246
ThreadGroup
248247
ThreadLocalNotStaticFinal
249248
ThreadYield

0 commit comments

Comments
 (0)