-
Notifications
You must be signed in to change notification settings - Fork 208
Open
Description
I started a new gradle app, in which I want to do reactjs FE.
I am unable to run my build due to the following error:
* What went wrong:
Execution failed for task ':nodeSetup'.
> Could not resolve all files for configuration ':detachedConfiguration1'.
> Could not find org.nodejs:node:10.15.3.
Searched in the following locations:
- https://nodejs.org/dist/v10.15.3/ivy.xml
Required by:
project :
My build.gradle looks like this:
plugins {
id 'org.springframework.boot' version '2.2.5.RELEASE'
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
id 'java'
id "com.moowork.node" version "1.3.1"
}
group = 'com.traveling.owl'
version = '0.0.1-SNAPSHOT'
sourceCompatibility = '11'
repositories {
mavenCentral()
}
node {
download = true
workDir = file("${project.projectDir}/src/main/reactjs/nodejs")
npmWorkDir = file("${project.projectDir}/src/main/reactjs/npm")
nodeModulesDir = file("${project.projectDir}/src/main/reactjs")
}
task npmInstallDependencies(type: NpmTask) {
dependsOn 'npmSetup'
execOverrides {
it.ignoreExitValue = true
it.workingDir = 'src/main/reactjs'
}
args = ['install']
}
task npmBuild(type: NpmTask) {
dependsOn 'npmInstallDependencies'
execOverrides {
it.workingDir = 'src/main/reactjs'
}
args = ['run', 'build']
}
task copyBuild(type: Copy) {
dependsOn 'npmBuild'
from "$projectDir/src/main/reactjs/build"
into "$buildDir/src/main/resources/static"
}
processResources {
dependsOn 'copyBuild'
}
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-rest'
implementation 'org.springframework.boot:spring-boot-starter-thymeleaf'
implementation 'org.springframework.boot:spring-boot-starter-web'
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
}
test {
useJUnitPlatform()
}
I only have nodejs v10.15.3
installed.
What can be the problem in my case?
dipu-bd, rmorrise and joffrey-bion
Metadata
Metadata
Assignees
Labels
No labels