Newer
Older
import org.apache.tools.ant.filters.*
plugins {
id 'java'
id 'groovy'
id 'org.springframework.boot' version '2.2.5.RELEASE'
id "io.spring.dependency-management" version "1.0.9.RELEASE"
}
configurations {
developmentOnly
runtimeClasspath {
extendsFrom developmentOnly
}
compileOnly {
extendsFrom annotationProcessor
}
}
repositories {
mavenCentral()
}
processResources {
include '**'
filter ReplaceTokens, tokens: [
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
'assemblyDate': Long.toString(System.currentTimeMillis())
]
}
sourceCompatibility = '1.8'
bootJar {
mainClassName = 'cz.mendelu.dnaAnalyser.Application'
}
dependencies {
// Compile and developer support
compileOnly 'org.projectlombok:lombok'
annotationProcessor 'org.projectlombok:lombok'
developmentOnly 'org.springframework.boot:spring-boot-devtools'
runtimeOnly 'net.bull.javamelody:javamelody-spring-boot-starter:1.+'
//runtimeOnly 'net.bull.javamelody:javamelody-spring-boot-starter:1.79.0'
// Spring boot framework
implementation 'org.springframework.boot:spring-boot-starter-web'
implementation 'org.springframework.boot:spring-boot-starter-actuator'
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'org.springframework.boot:spring-boot-starter-security'
// Database
runtimeOnly 'com.h2database:h2:1.4.196' // Newest version are not supported.
runtimeOnly 'org.postgresql:postgresql'
implementation 'org.flywaydb:flyway-core'
implementation 'org.mybatis:mybatis:3.4.6'
// JWT Token
implementation 'io.jsonwebtoken:jjwt:0.9.+'
implementation "com.google.guava:guava:16+"
// Swagger documentation
implementation 'io.springfox:springfox-boot-starter:3.+'
// Apache commons libraries
implementation 'org.apache.commons:commons-lang3:3.+'
implementation 'org.apache.commons:commons-email:1.+'
implementation 'commons-io:commons-io:2.+'
// Export to CSV
implementation'com.opencsv:opencsv:4.0'
// Unit testing
testImplementation('org.springframework.boot:spring-boot-starter-test') {
exclude group: 'org.junit.vintage', module: 'junit-vintage-engine'
}
testImplementation 'org.codehaus.groovy:groovy-test:2.4.+'
testImplementation 'org.spockframework:spock-core:1.1-groovy-2.4'
testImplementation 'org.spockframework:spock-spring:1.1-groovy-2.4'
testImplementation'cglib:cglib-nodep:3.+'
}