1 Star 0 Fork 9

wufajian/Scada-LTS

forked from IPCUN/Scada-LTS 
加入 Gitee
与超过 1200万 开发者一起发现、参与优秀开源项目,私有仓库也完全免费 :)
免费加入
文件
克隆/下载
build.gradle 1.40 KB
一键复制 编辑 原始数据 按行查看 历史
Artur Wolak 提交于 2021-04-19 09:12 . build.gradle fix #1534
/*
*
* BETA FEATURE (not-stable, still under development)
* We advise to use ANT build instead of gradle.
*
* Scada-LTS gradle build configuration
* Based on the ANT "build.xml" file. This file provide the information
* where the source set is located, where are located the java libraries
* and use subproject tasks to include an NewUI contents inside Scada-LTS app.
*/
plugins {
id 'war'
id 'java'
}
sourceCompatibility = 1.11
targetCompatibility = 1.11
// Environment variables to change
subprojects {
ext {
buildUi = true
}
}
repositories {
jcenter()
}
dependencies {
providedCompile fileTree(include: ['*.jar'], dir:'WebContent/WEB-INF/lib')
providedCompile fileTree(include: ['*.jar'], dir: System.getenv("CATALINA_HOME") + '/lib')
}
sourceSets {
main {
java {
srcDirs = ['src']
}
}
test {
java {
srcDirs = ['test']
}
}
}
war {
dependsOn(':scadalts-ui:copyNewUiImages')
from 'WebContent'
}
task clearDockerDir(type: Delete) {
delete files("docker/volumes/webapps/ScadaBR.war")
}
task copyWarToDocker(type: Copy, dependsOn: clearDockerDir) {
from "build/libs/"
into "docker/volumes/webapps/"
include('Scada-LTS.war')
rename('Scada-LTS.war', "ScadaBR.war")
}
task installWebDependency(type: Exec) {
workingDir "./WebContent/resources"
commandLine "npm", "install"
}
Loading...
马建仓 AI 助手
尝试更多
代码解读
代码找茬
代码优化
1
https://gitee.com/wufajian/Scada-LTS.git
[email protected]:wufajian/Scada-LTS.git
wufajian
Scada-LTS
Scada-LTS
develop

搜索帮助