This commit is contained in:
2022-02-11 18:01:52 +09:00
parent 608acb5f0c
commit eb14f1ae39

View File

@@ -2,7 +2,7 @@ plugins {
id 'org.springframework.boot' version '2.6.3'
id 'io.spring.dependency-management' version '1.0.11.RELEASE'
id 'java'
id "com.github.node-gradle.node" version "3.2.0"
id "com.moowork.node" version "1.3.1" // npm plugin
}
group = 'com.crypto'
@@ -17,11 +17,9 @@ configurations {
repositories {
mavenCentral()
maven { url "https://plugins.gradle.org/m2"}
gradlePluginPortal() // https://plugins.gradle.org/m2/
}
apply plugin: "com.github.node-gradle.node"
dependencies {
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-web'
@@ -32,7 +30,7 @@ dependencies {
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
annotationProcessor 'org.projectlombok:lombok'
testImplementation 'org.springframework.boot:spring-boot-starter-test'
classpath "com.github.node-gradle:gradle-node-plugin:2.2.4"
implementation "com.moowork.gradle:gradle-node-plugin:1.3.1"
}
tasks.named('test') {
@@ -54,6 +52,8 @@ processResources {
dependsOn "copyWebApp"
}
apply plugin: "com.moowork.node"
task copyWebApp(type: Copy) {
dependsOn "buildReact"
from "$webappDir/build"