Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Build fails with Gradle 7 #377

Open
sergey-morenets opened this issue Apr 28, 2021 · 5 comments
Open

Build fails with Gradle 7 #377

sergey-morenets opened this issue Apr 28, 2021 · 5 comments

Comments

@sergey-morenets
Copy link

Hi

I'm using the latest version of this plugin:

plugins {
id "com.moowork.node" version "1.3.1"
}

After I've upgraded from Gradle 6.8.3 to Gradle 7 my project fails to build due to the error:


A problem was found with the configuration of task ':my-project:yarnSetup' (type 'YarnSetupTask').
  - Type 'YarnSetupTask' 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.

    Please refer to https://docs.gradle.org/7.0/userguide/validation_problems.html#missing_annotation for more details about this problem.

How can I fix it?

@deepy
Copy link

deepy commented Apr 28, 2021

It's kinda amazing that you were able to use it on Gradle 6 as the latest version supported is Gradle 5, you can see #315 for the background, but the short of it is that this plugin is no longer maintained, there's however a fork available at https://github.com/node-gradle/gradle-node-plugin which is supported (and supports Gradle 6+ and configuration cache as well)

@sergey-morenets
Copy link
Author

Hi @deepy

Thank you for your efforts. I've already migrated to new plugin.

@deanhiller
Copy link

@sergey-morenets what plugin did you migrate too? more users may mean it will last longer.

@sergey-morenets
Copy link
Author

@sergey-morenets what plugin did you migrate too? more users may mean it will last longer.

I've migrated to this one per @deepy advice: https://github.com/node-gradle/gradle-node-plugin

c4fiber added a commit to c4fiber/AllDayLong that referenced this issue Mar 8, 2022
spring boot + npm vue.js 동시작업 설정

** 기존에 사용했던 id "com.moowork.node" 는 사용불가
srs/gradle-node-plugin#377
https://plugins.gradle.org/plugin/com.github.node-gradle.node
c4fiber added a commit to c4fiber/AllDayLong that referenced this issue Mar 8, 2022
* gradle build에 npm task 추가

spring boot + npm vue.js 동시작업 설정

** 기존에 사용했던 id "com.moowork.node" 는 사용불가
srs/gradle-node-plugin#377
https://plugins.gradle.org/plugin/com.github.node-gradle.node

* Vue Framework 추가 및 프록시 연동

vue: 8080
spring boot: 8081

8080서버로 <server>/api/<page> 요청을 보내면 프록시를 거쳐 spring으로 전달된다.
gorhack added a commit to gorhack/tsr that referenced this issue Mar 31, 2022
 - task broken in 845caab
 - moowork plugin no longer maintained resulting in broken gradle task
   - srs/gradle-node-plugin#377
@vifeng
Copy link

vifeng commented Aug 18, 2022

In the node{} configuration I deleted the line npm and it worked for me.
// Version of npm to use.
npmVersion = '8.1.3'

for info, my node version = '17.1.0'
I had been configuring according to https://github.com/srs/gradle-node-plugin/blob/master/docs/node.md
remaining at your disposal

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

No branches or pull requests

4 participants