Skip to content
Snippets Groups Projects
build.gradle 2.52 KiB
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()
}



Michal Petrovič's avatar
Michal Petrovič committed
group = 'cz.dnaAnalyser'
Michal Petrovič's avatar
Michal Petrovič committed
version = '0.0.1-SNAPSHOT'
processResources {
    include '**'
    filter ReplaceTokens, tokens: [
Michal Petrovič's avatar
Michal Petrovič committed
            'gitVersion': version,
            '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.+'

}