Skip to content
This repository has been archived by the owner on Oct 23, 2022. It is now read-only.

Commit

Permalink
Update build.gradle
Browse files Browse the repository at this point in the history
  • Loading branch information
WinningBean committed Apr 6, 2020
1 parent e607cac commit f22e5c2
Showing 1 changed file with 5 additions and 33 deletions.
38 changes: 5 additions & 33 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -59,10 +59,6 @@ dependencies {

def webappDir = "$projectDir/frontend"

processResources {
dependsOn("frontCopy")
}

task frontBuild {
doLast {
exec {
Expand All @@ -76,34 +72,10 @@ task frontBuild {
}
}

task frontCopy {
dependsOn("frontBuild")
doLast {
exec {
workingDir "${projectDir}/build"
commandLine "mkdir", "resources", "resources/main", "resources/main/static"
}
exec {
workingDir "${projectDir}"
commandLine "cp", "-r", "frontend/build/", "build/resources/main/static/"
}
}
task copyWebApp(type: Copy) {
from 'frontend/build'
into 'build/resources/main/static/.'
}

//task appNpmInstall(type: Exec) {
// workingDir("${webappDir}")
// commandLine "npm", "install"
//}
//
//task npmBuild(type: NpmTask) {
// dependsOn("appNpmInstall")
// workingDir = file("${webappDir}")
// args = ['run-script', 'build']
//}
//
//task copyWebApp(type: Copy) {
// from 'frontend/build'
// into 'build/resources/main/static/.'
//}
//
//compileJava.dependsOn("copyWebApp")
copyWebApp.dependsOn frontBuild
compileJava.dependsOn copyWebApp

0 comments on commit f22e5c2

Please sign in to comment.