You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Try to build the example project which uses the Groovy DSL. The build will fail:
C:\diktat\examples\gradle-groovy-dsl>gradle build FAILURE: Build failed with an exception.* Where:Build file 'C:\diktat\examples\gradle-groovy-dsl\build.gradle' line: 9* What went wrong:A problem occurred evaluating root project 'gradle-groovy-dsl'.
> No signature of method: build_8ip68wiz5ht9rnwfbccz91le2.diktat() is applicable for argument types: (build_8ip68wiz5ht9rnwfbccz91le2$_run_closure2) values: [build_8ip68wiz5ht9rnwfbccz91le2$_run_closure2@408bf572] Possible solutions: getAt(java.lang.String), with(groovy.lang.Closure), tap(groovy.lang.Closure)* Try:
> Run with --stacktrace option to get the stack trace.
> Run with --info or --debug option to get more log output.
> Run with --scan to get full insights.* Get more help at https://help.gradle.orgBUILD FAILED in 1s
Apparently, the Groovy DSL doesn't understand this Kotlin signature:
/** * Configure input files for diktat task * * @param action configuration lambda for `PatternFilterable`*/funinputs(action:PatternFilterable.() ->Unit) {
action.invoke(patternSet)
}
It can be used in Groovy with it parameter, for reasons described in this answer. We should update docs and check why our functional tests haven't captured this
### What's done:
* Update build.gradle in examples
* Add functional test for Groovy DSL with explicit inputs
* Fix docs for `diktatExtension.output`: reporter treats any non-empty string as a file name, there are no special values
* Remove `dependsOn` relation between `test` and `functionalTest`, use `shouldRunAfter` instead
This pull request closes#1422
Try to build the example project which uses the Groovy DSL. The build will fail:
Apparently, the Groovy DSL doesn't understand this Kotlin signature:
An empty
inputs { }
block is ok:Any attempt to specify the include or exclude rules within the block will lead to a failure.
Environment information
The text was updated successfully, but these errors were encountered: