build.gradle 2.67 KB
Newer Older
1
2
apply plugin: 'eclipse-wtp'
apply plugin: 'war'
3
4
apply plugin: 'jacoco'
apply plugin: 'sonar-runner'
5
6

jar {
7
8
9
	manifest {
		attributes 'Implementation-Title': 'Connector-Service', 'Implementation-Version': version
	}
10
11
}

12
13
14
15
repositories {
	mavenCentral()
	mavenLocal()
}
16
17

dependencies {
18
	compile project (':connector-model')
Daniel Gerhardt's avatar
Daniel Gerhardt committed
19
20
	compile group: 'commons-collections', name: 'commons-collections', version: '3.2.1'
	compile group: 'commons-codec', name: 'commons-codec', version: '1.9'
21
22
23
24
	compile group: 'org.springframework', name: 'spring-context', version: springVersion
	compile group: 'org.springframework', name: 'spring-webmvc', version: springVersion
	compile group: 'org.springframework', name: 'spring-jdbc', version: springVersion
	compile group: 'org.springframework', name: 'spring-tx', version: springVersion
25
	compile group: 'org.springframework', name: 'spring-orm', version: springVersion
Daniel Gerhardt's avatar
Daniel Gerhardt committed
26
	compile group: 'org.springframework.data', name: 'spring-data-jpa', version: '1.7.0.RELEASE'
27
28
29
	compile group: 'org.springframework.security', name: 'spring-security-web', version: springSecurityVersion
	compile group: 'org.springframework.security', name: 'spring-security-config', version: springSecurityVersion
	compile group: 'org.springframework.security', name: 'spring-security-ldap', version: springSecurityVersion
Daniel Gerhardt's avatar
Daniel Gerhardt committed
30
	compile group: 'mysql', name: 'mysql-connector-java', version: '5.1.32'
31
32
	compile group: 'org.hsqldb', name: 'hsqldb', version: '2.3.2'
	compile group: 'cglib', name: 'cglib', version: '3.1'
33
	compile group: 'org.apache.openjpa', name: 'openjpa', version: '2.3.0'
34
	compile group: 'org.slf4j', name: 'slf4j-log4j12', version: '1.7.7'
35
	compile group: 'org.json', name: 'json', version: '20140107'
36
37

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

39
40
41
	testCompile group: 'junit', name: 'junit', version: '4.11'
	testCompile group: 'org.mockito', name: 'mockito-core', version: '1.9.5'
	testCompile group: 'org.dbunit', name: 'dbunit', version: '2.5.0'
42
43
}

44
test { systemProperties 'property': 'value' }
45
46
47
48
49
50
51
52
53
54
55

sonarRunner {
	sonarProperties {
		property "sonar.jacoco.reportPath", "$buildDir/jacoco/test.exec"
		property "sonar.host.url", project.hasProperty('sonarServerUrl') ?  sonarServerUrl : ''
		property "sonar.jdbc.url", project.hasProperty('sonarDatabaseUrl') ?  sonarDatabaseUrl : ''
		property "sonar.jdbc.driverClassName",  project.hasProperty('sonarDatabaseDriverClassName') ?  sonarDatabaseDriverClassName : ''
		property "sonar.jdbc.username", project.hasProperty('sonarDatabaseUsername') ?  sonarDatabaseUsername : ''
		property "sonar.jdbc.password", project.hasProperty('sonarDatabasePassword') ?  sonarDatabasePassword : ''
	}
}
Daniel Gerhardt's avatar
Daniel Gerhardt committed
56
57

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