PAN-7 Updated the build.gradle files

This commit is contained in:
2019-02-17 23:17:15 -07:00
parent abefb397e3
commit da673068bb
6 changed files with 23 additions and 30 deletions
@@ -1,6 +1,7 @@
import org.gradle.internal.os.OperatingSystem
plugins {
id 'java'
id 'application'
}
description = 'Provides database access and connectivity'
@@ -9,6 +10,12 @@ version '1.0'
sourceCompatibility = 1.8
sonarqube {
properties {
property "sonar.projectName", 'Persistence Tier'
}
}
repositories {
mavenCentral()
}
@@ -17,17 +24,14 @@ dependencies {
compile group: 'org.springframework.data', name: 'spring-data-jpa', version: '2.0.5.RELEASE'
compile group: 'org.apache.tomcat', name: 'tomcat-jdbc', version: '9.0.16'
compile group: 'org.springframework.boot', name: 'spring-boot-devtools', version: '2.0.5.RELEASE'
// compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-elasticsearch', version: '2.1.2.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-web', version: '2.0.5.RELEASE'
compile group: 'org.springframework', name: 'spring-aspects', version: '5.1.5.RELEASE'
compile group: 'org.hibernate', name: 'hibernate-core', version: '5.4.1.Final'
compile group: 'com.vladmihalcea', name: 'hibernate-types-52', version: '2.4.1'
compile fileTree(dir: 'lib', include: '**/*.jar')
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.15'
// compile 'javax.validation:validation-api:1.1.0.Final'
compile('com.googlecode.log4jdbc:log4jdbc:1.2') {
exclude(group: 'org.slf4j')
}
@@ -38,6 +42,8 @@ dependencies {
}
mainClassName = 'edu.msudenver.tsp.persistence.PersistenceApi'
task loadDb(type: Exec, group: 'Verification', description: 'Reloads the local database.') {
if (OperatingSystem.current().isLinux() || OperatingSystem.current().isMacOsX()) {
workingDir "./scripts/mysql"