eriwen / gradle-js-plugin

Gradle plugin for working with JS
http://eriwen.github.io/gradle-js-plugin
Apache License 2.0
382 stars 113 forks source link

Unable to run JSDOC #151

Open asrikanth1990 opened 7 years ago

asrikanth1990 commented 7 years ago

I am getting following error if i try to run gradle jsdoc

Could not set unknown property 'source' for object of type com.eriwen.gradle.js.JsDocExtension.

I am using gradle 4.0.1.

gradle js 2.14.1

Here is what i have tried

jsdoc {

source = ["src/js/first.js", "src/js/second.js"]
destinationDir = file("${buildDir}/jsdoc")

}

falkoschumann commented 7 years ago

Same problem with gradle jshint.

asrikanth1990 commented 7 years ago

If i change it into following way , I can run. But generated document is empty

task jsDoc(type: com.eriwen.gradle.js.tasks.JsDocTask){ source = javascript.source.dev.js.files destinationDir = file("${buildDir}/jsdoc") }

gradle jsDoc

BUILD SUCCESSFUL in 0s 1 actionable task: 1 up-to-date

GENERATED FILE <!DOCTYPE html>

JSDoc: Home

Home


Documentation generated by JSDoc 3.3.2 on Mon Jul 24 2017 16:23:06 GMT+0530 (IST)
brunogirin commented 6 years ago

I've got the same problem with gradle 4.1.