First commit (wating to add alerts in budget)
This commit is contained in:
32
build.gradle
32
build.gradle
@@ -3,8 +3,15 @@ buildscript {
|
||||
mavenCentral()
|
||||
mavenLocal()
|
||||
jcenter()
|
||||
maven { url 'https://plugins.gradle.org/m2/' }
|
||||
maven { url 'https://repository.axelor.com/nexus/public/' }
|
||||
maven {
|
||||
url 'https://plugins.gradle.org/m2/'
|
||||
metadataSources {
|
||||
artifact()
|
||||
}
|
||||
}
|
||||
maven {
|
||||
url 'https://repository.axelor.com/nexus/public/'
|
||||
}
|
||||
}
|
||||
ext.openPlatformVersion = '5.2.2'
|
||||
ext.appVersion = '5.2.1'
|
||||
@@ -55,7 +62,7 @@ dependencies {
|
||||
}
|
||||
|
||||
wrapper {
|
||||
gradleVersion = "4.4.1"
|
||||
gradleVersion = "4.5.1"
|
||||
}
|
||||
|
||||
task("dataImport", type: JavaExec) {
|
||||
@@ -80,4 +87,23 @@ task archiveReports(type: Zip) {
|
||||
destinationDir = file("$buildDir/libs")
|
||||
}
|
||||
|
||||
war {
|
||||
destinationDir = file("C:/apache-tomcat-8.5.0/webapps")
|
||||
archiveName = "sophal2.war"
|
||||
}
|
||||
|
||||
task stopTomcat(type: Exec) {
|
||||
dependsOn stopTomcat
|
||||
workingDir 'C:/apache-tomcat-8.5.0/bin'
|
||||
commandLine 'cmd', '/c', 'shutdown.bat'
|
||||
}
|
||||
|
||||
task startTomcat(type: Exec) {
|
||||
dependsOn war
|
||||
workingDir 'C:/apache-tomcat-8.5.0/bin'
|
||||
commandLine 'cmd', '/c', 'startup.bat'
|
||||
// commandLine 'cmd', '/c', 'start', '/b', 'startup.bat'
|
||||
}
|
||||
|
||||
|
||||
build.finalizedBy archiveReports
|
||||
|
||||
Reference in New Issue
Block a user