Acrarium/build.gradle

141 lines
4.5 KiB
Groovy
Raw Normal View History

2018-06-04 00:19:13 +00:00
/*
* (C) Copyright 2018 Lukas Morawietz (https://github.com/F43nd1r)
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
plugins {
id 'java'
id 'idea'
id 'war'
2018-11-15 14:10:00 +00:00
id 'org.springframework.boot' version '2.1.0.RELEASE'
2018-11-16 00:37:33 +00:00
id 'com.devsoap.vaadin-flow' version '1.0.0.M6'
2018-08-17 00:47:31 +00:00
id 'io.spring.dependency-management' version '1.0.6.RELEASE'
id 'cn.bestwu.propdeps' version '0.0.10'
2018-11-22 02:24:00 +00:00
id 'net.researchgate.release' version '2.7.0'
2017-12-14 17:20:04 +00:00
}
2017-12-28 17:06:53 +00:00
2018-07-14 10:43:17 +00:00
vaadin {
2018-11-29 00:17:35 +00:00
version '12.0.0.beta2'
2018-11-15 14:10:00 +00:00
submitStatistics false
2018-07-14 10:43:17 +00:00
}
2018-10-17 23:39:15 +00:00
repositories {
jcenter()
maven { url 'https://maven.google.com' }
vaadin.repositories()
}
2018-07-14 10:43:17 +00:00
2017-12-14 17:33:27 +00:00
group 'com.faendir'
sourceCompatibility = 1.8
targetCompatibility = 1.8
2018-05-22 01:38:10 +00:00
ext {
2018-06-05 03:21:15 +00:00
generated = file("$buildDir/generated")
queryDslOutput = file("$generated/querydsl/java")
2018-11-22 01:21:19 +00:00
messagesOutput = file("$generated/faendir/java")
2018-05-22 01:38:10 +00:00
}
compileJava {
doFirst {
2018-06-05 03:21:15 +00:00
queryDslOutput.mkdirs()
2018-05-22 01:38:10 +00:00
}
2018-06-05 03:21:15 +00:00
options.compilerArgs += ['-parameters', '-s', queryDslOutput]
2018-05-22 01:38:10 +00:00
}
2018-05-23 03:25:34 +00:00
idea {
module {
2018-06-05 03:21:15 +00:00
sourceDirs += queryDslOutput
generatedSourceDirs += queryDslOutput
2018-11-22 01:21:19 +00:00
sourceDirs += messagesOutput
generatedSourceDirs += messagesOutput
2018-05-23 03:25:34 +00:00
}
}
2018-09-08 13:22:48 +00:00
configurations {
all*.exclude module : 'slf4j-simple'
}
2017-12-14 17:33:27 +00:00
dependencies {
//spring
2018-10-17 23:39:15 +00:00
implementation 'org.springframework.boot:spring-boot-starter-data-jpa'
implementation 'mysql:mysql-connector-java'
implementation 'org.springframework.boot:spring-boot-starter-security'
implementation 'org.liquibase:liquibase-core'
implementation 'org.yaml:snakeyaml'
2018-11-15 14:10:00 +00:00
annotationProcessor 'org.springframework.boot:spring-boot-configuration-processor'
providedRuntime 'org.springframework.boot:spring-boot-starter-tomcat'
2018-05-22 01:38:10 +00:00
def queryDslVersion = '4.2.1'
2018-10-17 23:39:15 +00:00
implementation "com.querydsl:querydsl-jpa:$queryDslVersion"
implementation "com.querydsl:querydsl-sql:$queryDslVersion"
2018-11-15 14:10:00 +00:00
annotationProcessor "com.querydsl:querydsl-apt:$queryDslVersion:jpa"
2018-11-16 00:37:33 +00:00
annotationProcessor "javax.persistence:javax.persistence-api:2.2"
annotationProcessor "javax.annotation:javax.annotation-api:1.3.2"
2018-10-17 23:39:15 +00:00
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jdk8"
2017-12-19 04:50:35 +00:00
//vaadin
2018-10-17 23:39:15 +00:00
implementation vaadin.bom()
implementation vaadin.platform()
implementation vaadin.dependency('icons-flow')
implementation vaadin.dependency('spring-boot-starter')
2018-11-16 00:37:33 +00:00
implementation 'com.vaadin:vaadin-grid-flow:2.1.2'
2018-10-17 23:39:15 +00:00
implementation 'org.jfree:jfreechart:1.5.0'
implementation 'org.apache.xmlgraphics:batik-svggen:1.7'
2018-11-15 14:10:00 +00:00
implementation 'javax.servlet:javax.servlet-api:4.0.1'
2018-11-16 00:37:33 +00:00
implementation 'org.webjars.bowergithub.simpleelements:simple-dropdown:1.0.0'
2018-11-29 00:17:35 +00:00
implementation 'com.faendir.vaadin:jfreechart-flow:1.1.6'
2017-12-14 17:33:27 +00:00
//utility
2018-10-17 23:39:15 +00:00
implementation 'org.codeartisans:org.json:20161124'
implementation 'org.apache.commons:commons-text:1.4'
implementation 'org.xbib:time:1.0.0'
implementation 'ch.acra:acra-javacore:5.1.3'
implementation 'com.faendir.proguard:retrace:1.3'
implementation 'javax.xml.bind:jaxb-api:2.3.0'
implementation 'com.github.ziplet:ziplet:2.3.0'
implementation 'me.xdrop:fuzzywuzzy:1.1.10'
implementation 'com.talanlabs:avatar-generator:1.1.0'
implementation 'org.ektorp:org.ektorp.spring:1.5.0'
2018-06-25 22:10:02 +00:00
//testing
2018-10-17 23:39:15 +00:00
testImplementation 'org.springframework.boot:spring-boot-starter-test'
testImplementation 'org.springframework.security:spring-security-test'
testImplementation 'com.h2database:h2'
testImplementation files('libs/ojdbc6.jar')
2017-12-14 17:33:27 +00:00
}
compileJava.dependsOn(processResources)
2017-12-14 17:33:27 +00:00
war {
archiveName = 'acra.war'
version = version
enabled = true
2018-06-05 02:20:19 +00:00
}
2018-11-15 14:10:00 +00:00
task generateMessageClasses(type: com.faendir.acra.gradle.I18nClassGenerator) {
inputDirectory file('src/main/resources/i18n/com/faendir/acra')
2018-11-22 01:21:19 +00:00
outputDirectory messagesOutput
2018-11-15 14:10:00 +00:00
packageName 'com.faendir.acra.i18n'
className 'Messages'
}
compileJava.dependsOn(generateMessageClasses)
2018-06-26 22:16:31 +00:00
test {
testLogging {
events "failed"
exceptionFormat "full"
}
}
2018-11-22 02:24:00 +00:00
release {
failOnUnversionedFiles = false
tagTemplate = 'v$version'
}