BlueMap/BlueMapCommon/build.gradle

45 lines
887 B
Groovy
Raw Normal View History

plugins {
2021-04-24 19:59:36 +02:00
id "com.github.node-gradle.node" version "3.0.1"
}
dependencies {
2020-05-10 01:28:09 +02:00
compile 'com.mojang:brigadier:1.0.17'
compile project(':BlueMapCore')
2020-04-09 22:15:08 +02:00
compile project(':BlueMapAPI')
2021-04-24 19:59:36 +02:00
testImplementation 'org.junit.jupiter:junit-jupiter:5.4.2'
}
test {
useJUnitPlatform()
}
2020-05-10 01:28:09 +02:00
node {
2021-04-24 19:59:36 +02:00
version = '14.16.1'
download = true
nodeProjectDir = file("BlueMapVue/")
}
task cleanWebapp(type: Delete) {
delete 'BlueMapVue/dist'
}
task buildWebapp(type: NpmTask) {
dependsOn 'cleanWebapp'
dependsOn 'npmInstall'
args = ['run', 'build']
}
task zipWebapp(type: Zip) {
dependsOn 'buildWebapp'
from fileTree('BlueMapVue/dist/')
archiveName 'webapp.zip'
destinationDir(file('src/main/resources/de/bluecolored/bluemap/'))
outputs.upToDateWhen { false }
}
//always update the zip before build
processResources.dependsOn(zipWebapp)