40 lines
851 B
Groovy
40 lines
851 B
Groovy
plugins {
|
|
id 'org.springframework.boot' version '2.1.3.RELEASE'
|
|
id 'java'
|
|
id "com.moowork.node" version "1.3.1"
|
|
}
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
apply plugin: 'idea'
|
|
apply plugin: 'com.moowork.node'
|
|
|
|
group = 'de.hhn.labsw'
|
|
version = '0.0.1-SNAPSHOT'
|
|
sourceCompatibility = '1.8'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
|
|
dependencies {
|
|
implementation 'org.springframework.boot:spring-boot-starter-web'
|
|
runtimeOnly 'org.springframework.boot:spring-boot-devtools'
|
|
runtimeOnly 'mysql:mysql-connector-java'
|
|
testImplementation 'org.springframework.boot:spring-boot-starter-test'
|
|
}
|
|
|
|
node {
|
|
version = '11.12.0'
|
|
npmVersion = '6.9.0'
|
|
download = true
|
|
}
|
|
|
|
tasks.withType(NpmTask) {
|
|
execOverrides {
|
|
it.workingDir = 'frontend'
|
|
}
|
|
}
|
|
|
|
assemble.dependsOn npm_install
|
|
assemble.dependsOn npm_run_build
|