2020-02-20 14:22:37 +00:00
|
|
|
plugins {
|
|
|
|
id 'org.springframework.boot' version '2.2.4.RELEASE'
|
|
|
|
id 'io.spring.dependency-management' version '1.0.9.RELEASE'
|
|
|
|
id 'java'
|
2020-05-07 11:39:08 +00:00
|
|
|
id 'jacoco'
|
|
|
|
id "org.sonarqube" version "2.8"
|
2020-02-20 14:22:37 +00:00
|
|
|
}
|
2020-03-17 13:13:34 +00:00
|
|
|
group = 'ch.usi.inf.sa4.sanmarinoes'
|
2020-02-20 14:22:37 +00:00
|
|
|
version = '0.0.1-SNAPSHOT'
|
2020-03-17 13:13:34 +00:00
|
|
|
sourceCompatibility = '11'
|
2020-02-20 14:22:37 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
2020-04-18 10:38:52 +00:00
|
|
|
|
2020-02-20 14:22:37 +00:00
|
|
|
}
|
|
|
|
dependencies {
|
2020-02-22 22:19:34 +00:00
|
|
|
compile 'org.hibernate.javax.persistence:hibernate-jpa-2.1-api:1.0.0.Final'
|
2020-03-17 13:13:34 +00:00
|
|
|
compile "org.springframework.boot:spring-boot-starter-websocket"
|
2020-02-20 14:22:37 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter'
|
2020-03-04 15:55:53 +00:00
|
|
|
implementation 'com.sun.mail:javax.mail:1.6.2'
|
2020-02-22 22:19:34 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
|
2020-02-25 16:51:45 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-security'
|
2020-02-27 20:39:38 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-mail'
|
2020-03-11 15:23:58 +00:00
|
|
|
implementation 'org.springframework.boot:spring-boot-starter-websocket'
|
|
|
|
implementation 'org.springframework:spring-websocket:5.2.4.RELEASE'
|
2020-02-25 16:51:45 +00:00
|
|
|
implementation 'io.jsonwebtoken:jjwt:0.9.1'
|
2020-02-25 14:03:41 +00:00
|
|
|
implementation 'org.springframework.security:spring-security-web'
|
2020-02-22 22:19:34 +00:00
|
|
|
implementation 'org.postgresql:postgresql'
|
2020-03-05 11:42:53 +00:00
|
|
|
implementation 'com.google.code.gson:gson'
|
|
|
|
compile 'io.springfox:springfox-swagger2:2.9.2'
|
|
|
|
compile 'io.springfox:springfox-swagger-ui:2.9.2'
|
2020-03-12 15:23:02 +00:00
|
|
|
compile 'org.springframework.boot:spring-boot-configuration-processor'
|
2020-03-12 15:57:50 +00:00
|
|
|
testCompile 'org.springframework.boot:spring-boot-starter-webflux'
|
2020-02-20 20:58:23 +00:00
|
|
|
implementation('org.springframework.boot:spring-boot-starter-web') {
|
|
|
|
exclude group: 'org.springframework.boot', module: 'spring-boot-starter-json'
|
|
|
|
}
|
2020-02-20 14:22:37 +00:00
|
|
|
testImplementation('org.springframework.boot:spring-boot-starter-test') {
|
|
|
|
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
|
|
|
|
}
|
2020-03-05 11:42:53 +00:00
|
|
|
testImplementation 'org.springframework.security:spring-security-test'
|
2020-03-12 15:23:02 +00:00
|
|
|
testImplementation 'com.h2database:h2:1.4.200'
|
2020-03-05 11:42:53 +00:00
|
|
|
// Fixes https://stackoverflow.com/a/60455550
|
|
|
|
testImplementation group: 'org.apache.httpcomponents', name: 'httpclient', version: '4.5.11'
|
2020-02-20 14:22:37 +00:00
|
|
|
}
|
2020-04-18 10:38:52 +00:00
|
|
|
|
|
|
|
gradle.projectsEvaluated {
|
|
|
|
tasks.withType(JavaCompile) {
|
|
|
|
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2020-02-20 14:22:37 +00:00
|
|
|
test {
|
|
|
|
useJUnitPlatform()
|
2020-05-07 06:48:57 +00:00
|
|
|
}
|
2020-05-07 11:39:08 +00:00
|
|
|
|
|
|
|
jacocoTestReport {
|
|
|
|
reports {
|
|
|
|
xml.enabled true
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
|
|
|
plugins.withType(JacocoPlugin) {
|
|
|
|
tasks["test"].finalizedBy 'jacocoTestReport'
|
|
|
|
}
|