Skip to content
This repository has been archived by the owner on Jul 17, 2022. It is now read-only.

Unable to run JSDOC #151

Open
asrikanth1990 opened this issue Jul 21, 2017 · 3 comments
Open

Unable to run JSDOC #151

asrikanth1990 opened this issue Jul 21, 2017 · 3 comments

Comments

@asrikanth1990
Copy link

asrikanth1990 commented Jul 21, 2017

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
Copy link

Same problem with gradle jshint.

@asrikanth1990
Copy link
Author

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

<title>JSDoc: Home</title>
<script src="scripts/prettify/prettify.js"> </script>
<script src="scripts/prettify/lang-css.js"> </script>
<!--[if lt IE 9]>
  <script src="//html5shiv.googlecode.com/svn/trunk/html5.js"></script>
<![endif]-->
<link type="text/css" rel="stylesheet" href="styles/prettify-tomorrow.css">
<link type="text/css" rel="stylesheet" href="styles/jsdoc-default.css">
<h1 class="page-title">Home</h1>

  <h3> </h3>

Home


Documentation generated by JSDoc 3.3.2 on Mon Jul 24 2017 16:23:06 GMT+0530 (IST) <script> prettyPrint(); </script> <script src="scripts/linenumber.js"> </script>

@brunogirin
Copy link

I've got the same problem with gradle 4.1.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

No branches or pull requests

3 participants