PAN-15 Created gradle tasks to start the persistence API and to start the API asynchronously
This commit is contained in:
@@ -3,6 +3,9 @@ plugins {
|
||||
id 'java'
|
||||
}
|
||||
|
||||
apply plugin: 'io.spring.dependency-management'
|
||||
apply plugin: 'org.springframework.boot'
|
||||
|
||||
description = 'Provides database access and connectivity'
|
||||
group 'edu.msudenver.tsp'
|
||||
version '1.0'
|
||||
@@ -50,3 +53,11 @@ task loadDb(type: Exec, group: 'Verification', description: 'Reloads the local d
|
||||
commandLine=['cmd','/c','loaddb.bat']
|
||||
}
|
||||
}
|
||||
|
||||
task startPersistenceApi(type: JavaExec, description: 'Starts the Persistence API') {
|
||||
dependsOn 'loadDb'
|
||||
dependsOn 'build'
|
||||
classpath = files('build/libs/persistence-1.0.jar')
|
||||
classpath += sourceSets.main.runtimeClasspath
|
||||
main = 'edu.msudenver.tsp.persistence.PersistenceApi'
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user