Summary Table

Categories Total Count
PII 0
URL 0
DNS 0
EKL 0
IP 0
PORT 0
VsID 0
CF 0
AI 0
VPD 0
PL 0
Other 0

File Content

apply plugin: 'war'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'maven-publish'
apply plugin: 'project-report'
apply plugin: 'groovy'
apply from: 'jacoco.gradle'

task writeClasspath << {
buildDir.mkdirs()
File outputFile = new File(buildDir, 'classpath.txt')
outputFile.write sourceSets.main.runtimeClasspath.asPath + "\n"
}
writeClasspath.dependsOn(war)

ext {
contextVersion = '%%APP_CONTEXT_VERSION%%'
warBaseName = project.name + '-' + contextVersion
implementationTitle = project.name + '/' + contextVersion
}

war.doFirst {
println 'Building MANIFEST.MF ...'
manifest {
attributes 'Implementation-Title': implementationTitle,
'Implementation-Version': version,
'Implementation-Build-Mode': buildMode,
'Implementation-Timestamp': timestamp,
'Commit-Branch': commitBranch,
'Commit-Count': commitCount,
'Commit-Revision': commitRevision
}
war.manifest.writeTo(file('src/main/webapp/manifest.html'))
}

war.baseName = warBaseName

publishing {
publications {
maven(MavenPublication) {
groupId 'gov.va.vamf.service'
artifactId project.name
from components.web
}
}
}

dependencies {
compile(group: 'com.agilex.messaging', name: 'VamfServiceBus', version: '0.9')
compile(group: 'com.agilex.messaging', name: 'BeanStalkProvider', version: '0.9')
compile 'javax.mail:mail:1.4.6'
compile('agilex:agilex-commons:0.3.4') {
exclude group: 'org.mongodb'
}

compile(group: 'com.agilex.vamf', name: 'HealthAdapterLib', version: '3.4.1'){
exclude module: 'HealthCheck'
exclude module: 'HAAuthorizationServicesLib'
exclude module: 'AuthServicesLib'
exclude module: 'jersey-core'
exclude module: 'jersey-client'
}

compile(group: 'com.agilex.auth', name: 'AuthorizationServicesLib', version: '4.3.0') {
exclude module: 'HealthAdapterLib'
}

compile "gov.va.vamf.lib:jwt-security-lib:1.7.3", {
exclude group: 'org.mongodb'
}

compile 'com.fasterxml.jackson.core:jackson-databind:2.9.3'

compile 'org.springframework:spring-context:5.0.7.RELEASE'
compile 'org.springframework:spring-context-support:5.0.7.RELEASE'
compile 'org.springframework:spring-webmvc:5.0.7.RELEASE'
compile 'org.springframework:spring-orm:5.0.7.RELEASE'

compile 'org.springframework.data:spring-data-mongodb:1.10.12.RELEASE', {
exclude group: 'org.mongodb'
}
compile 'org.mongodb:mongo-java-driver:3.6.3'

compile 'org.glassfish.jersey.containers:jersey-container-servlet-core:2.27'
compile 'org.glassfish.jersey.core:jersey-server:2.27'
compile 'org.glassfish.jersey.core:jersey-client:2.27'
compile 'org.glassfish.jersey.ext:jersey-spring4:2.27'
compile (group:'org.glassfish.jersey.media', name:'jersey-media-json-jackson', version:'2.27') {
exclude module: 'jackson-annotations'
}

compile 'javax.el:javax.el-api:2.2.5'
compile 'org.glassfish.web:javax.el:2.2.5'

compile 'javax.ws.rs:javax.ws.rs-api:2.0.1'

compile "javax.servlet:servlet-api:2.5"
compile "javax.servlet:jstl:1.2"

compile ('io.swagger:swagger-jaxrs:1.5.18') {
exclude module: 'jsr311-api'
exclude group: 'com.google.guava'
}

testCompile "org.springframework:spring-test:5.0.7.RELEASE"
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.1-groovy-2.4'
testCompile group: 'org.spockframework', name: 'spock-spring', version: '1.1-groovy-2.4'

runtime "xerces:xercesImpl:2.11.0"
runtime 'net.sourceforge.jtds:jtds:1.2.8'
}

if (System.properties['useEnunciate'] == 'true') {
ant.properties['env.ENUNCIATE_HOME']=System.getenv()['ENUNCIATE_HOME']
ant.importBuild '../ant-builds/enunciate/targets.xml'
}

ant.importBuild '../ant-builds/tomcat/targets.xml'
ant.properties['deployment.war.name'] = war.baseName
ant.properties['deployment.war.file.path'] = war.archivePath

if (System.properties['useEnunciate'] == 'true') {
ant.properties['enunciate.baseSourceDirectory']=file('src/main/java')
ant.properties['enunciate.destinationDirectory']= file('build/enunciate-working-area/generated-icd')
ant.properties['enunciate.app.dependencies']=configurations.runtime.asPath
ant.properties['enunciate.artifact']=project.name+'-'+version
}

ant.propertyfile(file: "src/main/resources/properties/swagger.properties") {
entry( key: "swagger.basePath", value: '/' + implementationTitle + '/rest')
entry( key: "swagger.version", value: version)
}

test {
testLogging {
exceptionFormat = 'full'
}
}