I am migrating my jdk 11 project to jdk 17 and from gradle 6.6 to 7.4
My build is failing in npmInstall task –
In plugin 'com.moowork.gradle.node.NodePlugin' type 'com.moowork.gradle.node.task.NpmInstallTask' property 'args' is missing an input or output annotation.
Reason: A property without annotation isn't considered during up-to-date checking.
Possible solutions:
1. Add an input or output annotation.
2. Mark it as @Internal.
I tried searching and everyone recommends to switch new plugin “com.github.node-gradle:gradle-node-plugin” rather than moowork which is not maintained.
Below is my build.gradle file please help me how can I handle grunt task in new plugin –
buildscript {
repositories {........}
dependencies {
classpath 'com.moowork.gradle:gradle-grunt-plugin:0.13'
classpath 'com.moowork.gradle:gradle-node-plugin:0.12'
}
}
apply plugin: 'com.moowork.grunt'
apply plugin: 'java'
apply plugin: 'war'
node {
version = '16.19.1'
distBaseUrl = 'https://somelink'
download = true
workDir = file("${project.projectDir}")
}
grunt {
workDir = file("${project.projectDir}")
colors = true
bufferOutput = false
}
grunt_bowercopy.dependsOn 'npmInstall'
grunt_copy.dependsOn 'npmInstall'
war.dependsOn ':project-ui:buildAngularApp'
war.dependsOn grunt_bowercopy
war.dependsOn grunt_copy
war.dependsOn grunt_less
war.dependsOn grunt_stylus
New contributor
Arjun is a new contributor to this site. Take care in asking for clarification, commenting, and answering.
Check out our Code of Conduct.