build.gradle 1.86 KB
Newer Older
1
plugins {
Daniel Gerhardt's avatar
Daniel Gerhardt committed
2
	id "org.gretty" version "2.3.1"
3 4 5
	id "org.sonarqube" version "2.7"
}

6
apply plugin: 'war'
7
apply plugin: 'jacoco'
8 9

jar {
10 11 12
	manifest {
		attributes 'Implementation-Title': 'Connector-Service', 'Implementation-Version': version
	}
13 14
}

15
repositories {
Daniel Gerhardt's avatar
Daniel Gerhardt committed
16
	jcenter()
17 18 19
	mavenCentral()
	mavenLocal()
}
20 21

dependencies {
22
	compile project (':connector-model')
23 24 25 26 27 28 29 30 31 32
	implementation group: 'commons-codec', name: 'commons-codec'
	implementation group: 'org.springframework', name: 'spring-context'
	implementation group: 'org.springframework', name: 'spring-webmvc'
	implementation group: 'org.springframework', name: 'spring-jdbc'
	implementation group: 'org.springframework.security', name: 'spring-security-web'
	implementation group: 'org.springframework.security', name: 'spring-security-config'
	implementation group: 'org.springframework.security', name: 'spring-security-ldap'
	implementation group: 'cglib', name: 'cglib', version: '3.1'
	implementation group: 'ch.qos.logback', name: 'logback-classic'
	implementation group: 'org.json', name: 'json', version: '20141113'
33 34

	providedCompile group: 'javax.servlet', name: 'javax.servlet-api', version: '3.0.1'
35

36 37
	providedRuntime group: 'mysql', name: 'mysql-connector-java', version: '8.0.16'

38 39 40 41
	testImplementation group: 'junit', name: 'junit'
	testImplementation group: 'org.mockito', name: 'mockito-core'
	testImplementation group: 'org.dbunit', name: 'dbunit', version: '2.5.0'
	testImplementation group: 'org.hsqldb', name: 'hsqldb', version: '2.3.2'
42 43
}

44
test { systemProperties 'property': 'value' }
45

Daniel Gerhardt's avatar
Daniel Gerhardt committed
46 47 48 49
gretty {
	servletContainer = 'jetty9.4'
}

50 51 52 53
sonarqube {
	properties {
		property "sonar.sourceEncoding", "UTF-8"
		property "sonar.language", "java"
54 55 56 57
		property "sonar.jacoco.reportPath", "$buildDir/jacoco/test.exec"
		property "sonar.host.url", project.hasProperty('sonarServerUrl') ?  sonarServerUrl : ''
	}
}
Daniel Gerhardt's avatar
Daniel Gerhardt committed
58 59

tasks.compileJava.dependsOn(':connector-model:xjc')