我试图将jshint包含到项目中并得到错误: 没有这样的属性:类的来源:com.eriwen.gradle.js.JsHintExtension_Decorated
我的conf文件:
buildscript {
ext {
springBootVersion = '1.3.3.RELEASE'
}
repositories {
maven { url 'http://nexus/content/repositories/thirdparty/' }
maven { url 'http://nexus/content/repositories/public/' }
maven { url 'http://nexus/content/repositories/cura-releases/' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath "com.eriwen:gradle-js-plugin:2.14.1"
}
}
apply from: '../version.gradle'
apply plugin: "com.eriwen.gradle.js"
javascript.source {
dev {
js {
srcDir "admin/src/main/resources/static/js"
include "**/*.js"
exclude "admin/src/main/resources/static/js/lib"
}
}
}
jshint {
tasks.jshint.source = javascript.source.dev.js.files
tasks.jshint.dest = file("${buildDir}/jshint.out")
tasks.jshint.reporter = 'checkstyle'
jshint.options = [expr: "true", unused: "true"]
}
有人能解释我的错误吗?