|
|
@ -241,3 +241,51 @@ test {
|
|
|
|
exclude '**/*'
|
|
|
|
exclude '**/*'
|
|
|
|
//useJUnitPlatform()
|
|
|
|
//useJUnitPlatform()
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
/*
|
|
|
|
|
|
|
|
def frontendDir = "../xit-opst-fo"
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
sourceSets {
|
|
|
|
|
|
|
|
main {
|
|
|
|
|
|
|
|
resources {
|
|
|
|
|
|
|
|
srcDirs = ["$projectDir/src/main/resources"]
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
processResources {
|
|
|
|
|
|
|
|
dependsOn "copyReactBuildFiles"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task installReact(type: Exec) {
|
|
|
|
|
|
|
|
workingDir "$frontendDir"
|
|
|
|
|
|
|
|
inputs.dir "$frontendDir"
|
|
|
|
|
|
|
|
group = BasePlugin.BUILD_GROUP
|
|
|
|
|
|
|
|
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
|
|
|
|
|
|
|
|
commandLine "npm.cmd", "audit", "fix"
|
|
|
|
|
|
|
|
commandLine 'npm.cmd', 'install'
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
commandLine "npm", "audit", "fix"
|
|
|
|
|
|
|
|
commandLine 'npm', 'install'
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task buildReact(type: Exec) {
|
|
|
|
|
|
|
|
dependsOn "installReact"
|
|
|
|
|
|
|
|
workingDir "$frontendDir"
|
|
|
|
|
|
|
|
inputs.dir "$frontendDir"
|
|
|
|
|
|
|
|
group = BasePlugin.BUILD_GROUP
|
|
|
|
|
|
|
|
if (System.getProperty('os.name').toLowerCase(Locale.ROOT).contains('windows')) {
|
|
|
|
|
|
|
|
commandLine "npm.cmd", "run-script", "build"
|
|
|
|
|
|
|
|
} else {
|
|
|
|
|
|
|
|
commandLine "npm", "run-script", "build"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
|
task copyReactBuildFiles(type: Copy) {
|
|
|
|
|
|
|
|
dependsOn "buildReact"
|
|
|
|
|
|
|
|
from "$frontendDir/build"
|
|
|
|
|
|
|
|
into "$buildDir/resources/main/static"
|
|
|
|
|
|
|
|
}
|
|
|
|
|
|
|
|
*/
|