Select Git revision
build.gradle.kts
Code owners
Assign users and groups as approvers for specific file changes. Learn more.
build.gradle 4.78 KiB
buildscript {
ext {
springBootVersion = '1.5.15.RELEASE'
}
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath 'com.github.ben-manes:gradle-versions-plugin:0.17.0'
classpath 'org.owasp:dependency-check-gradle:3.3.1'
classpath 'org.springframework:springloaded:1.2.8.RELEASE'
}
}
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'idea'
apply plugin: 'org.springframework.boot'
//apply plugin: 'io.spring.dependency-management'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'org.owasp.dependencycheck'
apply plugin: 'jacoco'
jar {
baseName = 'queue'
version = '0.0.1-SNAPSHOT'
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
repositories {
mavenLocal()
mavenCentral()
}
ext['thymeleaf.version'] = '3.0.9.RELEASE'
ext['thymeleaf-layout-dialect.version'] = '2.3.0'
dependencies {
compile 'org.hibernate:hibernate-core:5.2.17.Final'
compile 'org.hibernate:hibernate-entitymanager:5.2.17.Final'
compile 'org.hibernate:hibernate-java8:5.2.17.Final'
//compile("org.springframework.boot:spring-boot-properties-migrator")
compile("org.springframework.boot:spring-boot-starter-data-jpa")
compile("org.springframework.boot:spring-boot-starter-thymeleaf")
compile("org.springframework.boot:spring-boot-starter-web")
compile("org.springframework.boot:spring-boot-starter-security")
compile("org.springframework.boot:spring-boot-devtools")
compile("org.springframework.boot:spring-boot-starter-websocket")
compile("org.springframework.boot:spring-boot-starter-actuator")
compile("org.springframework:spring-messaging")
compile group: "org.springframework.security.extensions", name: "spring-security-saml2-core", version: "1.0.3.RELEASE"
compile group: 'org.springframework.boot', name: 'spring-boot-starter-parent', version: "${springBootVersion}", ext: 'pom'
compile 'org.springframework.session:spring-session:1.3.3.RELEASE'
compile group: 'org.springframework.boot', name: 'spring-boot-starter-data-redis', version: "${springBootVersion}"
compile("org.thymeleaf.extras:thymeleaf-extras-springsecurity4:3.0.2.RELEASE")
compile("org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.1.RELEASE")
compile("nz.net.ultraq.thymeleaf:thymeleaf-layout-dialect")
compile("com.h2database:h2")
compile("org.apache.httpcomponents:fluent-hc:4.5.5")
compile("org.bouncycastle:bcprov-jdk15on:1.59")
compile("org.bouncycastle:bcpkix-jdk15on:1.59")
// compile("org.json:json")
compile group: 'org.json', name: 'json', version: '20180130'
compile("nl.martijndwars:web-push:3.1.1")
compile group: 'com.fasterxml.jackson.module', name: 'jackson-modules-java8', version: '2.9.4', ext: 'pom'
// compile("org.postgresql:postgresql:9.4.1208.jre7")
compile group: 'mysql', name: 'mysql-connector-java', version: '8.0.12'
compile("org.jooq:jool:0.9.12")
compile("com.querydsl:querydsl-jpa:4.2.1")
compile("com.querydsl:querydsl-apt:4.2.1:jpa")
compile group: 'net.anthavio', name: 'airbrake-logback', version: '1.0.3'
// Assets
compile 'org.webjars:jquery:3.3.1'
compile group: 'org.webjars.npm', name: 'popper.js', version: '1.13.0'
compile 'org.webjars.npm:ramda:0.25.0'
compile 'org.webjars:bootstrap:4.0.0'
compile 'org.webjars.bower:fontawesome:4.7.0'
compile 'org.webjars.bower:momentjs:2.20.1'
compile 'org.webjars:stomp-websocket:2.3.3-1'
compile 'org.webjars.bower:sockjs-client:1.1.4'
compile 'org.webjars:handlebars:4.0.6'
compile group: 'org.webjars', name: 'chartjs', version: '2.7.0'
compile "com.sun.mail:javax.mail:1.6.2"
compile group: 'org.apache.commons', name: 'commons-lang3', version: '3.0'
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile group: 'org.springframework.security', name: 'spring-security-test', version: '4.2.7.RELEASE'
}
compileJava {
options.compilerArgs << "-s"
options.compilerArgs << "$projectDir/generated"
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
doFirst {
file(new File(projectDir, "/generated")).mkdirs()
}
}
eclipse {
classpath {
containers.remove('org.eclipse.jdt.launching.JRE_CONTAINER')
containers 'org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8'
}
}
bootRun {
addResources = true
}
idea {
module {
sourceDirs += file('generated/')
generatedSourceDirs += file('generated/')
inheritOutputDirs = false
outputDir = file("$buildDir/classes/main/")
}
}
jacocoTestReport {
group = "Reporting"
reports {
xml.enabled = true
csv.enabled = false
html.destination file("${buildDir}/reports/coverage")
}
}
// to get it to work again with JDK 10
//tasks.withType(AbstractCompile) {
// options.compilerArgs += ["--add-modules", "java.xml.bind"]
//}
//tasks.withType(Test) {
// jvmArgs += ["--add-modules", "java.xml.bind"]
//}