Skip to content

Commit 2e8984b

Browse files
Brent Hartwigrjrudin
authored andcommitted
Updated example jsDoc project to use later versions of ml-gradle and Liferay's jsDoc while also specifying the versions of nodejs (via download url) and Liferay's node. The generateJsDoc task now immediately works on Win x64, at least when using Java 11.
1 parent 12ac411 commit 2e8984b

File tree

1 file changed

+19
-10
lines changed

1 file changed

+19
-10
lines changed
Lines changed: 19 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -1,21 +1,30 @@
11
buildscript {
2-
repositories {
3-
mavenCentral()
2+
dependencies {
3+
classpath group: 'com.liferay', name: 'com.liferay.gradle.plugins.jsdoc', version: '2.0.54'
44
}
55

6-
dependencies {
7-
classpath 'commons-io:commons-io:2.6'
6+
repositories {
7+
maven {
8+
url 'https://repository-cdn.liferay.com/nexus/content/groups/public'
9+
}
810
}
911
}
1012

1113
plugins {
12-
id "com.marklogic.ml-gradle" version "3.11.0"
13-
id "com.liferay.app.jsdoc" version "2.0.19"
14+
id 'com.marklogic.ml-gradle' version '4.0.4'
15+
id 'com.liferay.node' version '7.2.0'
16+
id 'com.liferay.app.jsdoc' version '2.0.54'
1417
}
1518

19+
allprojects {
20+
plugins.withId('com.liferay.node') {
21+
// Override default of v5.5.0
22+
node.nodeUrl = 'https://nodejs.org/dist/v12.18.3/node-v12.18.3-win-x64.zip'
23+
}
24+
}
1625

1726
task generateJsDoc(type:com.liferay.gradle.plugins.jsdoc.JSDocTask) {
18-
configuration = project.resources.text.fromFile(file("jsdoc.json"))
19-
destinationDir = "build/docs/jsdoc"
20-
sourceDirs = file("src/main/ml-modules/lib")
21-
}
27+
configuration = project.resources.text.fromFile(file('jsdoc.json'))
28+
destinationDir = 'build/docs/jsdoc'
29+
sourceDirs = file('src/main/ml-modules/lib')
30+
}

0 commit comments

Comments
 (0)