Acrarium/build.gradle

162 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-08-17 00:47:31 +00:00
id 'org.springframework.boot' version '2.0.4.RELEASE'
id 'com.devsoap.plugin.vaadin' version '1.3.1'
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-08-17 00:47:31 +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
repositories {
jcenter()
maven { url 'https://maven.google.com' }
maven { url 'https://maven.vaadin.com/vaadin-addons' }
2017-05-17 15:42:01 +00:00
}
2017-12-28 17:06:53 +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-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-05-23 03:25:34 +00:00
}
}
2017-12-14 17:33:27 +00:00
vaadin {
2018-08-17 00:47:31 +00:00
version '8.5.1'
2017-12-14 17:33:27 +00:00
push true
}
2018-01-16 02:30:56 +00:00
vaadinCompile {
2018-01-24 00:11:55 +00:00
style 'PRETTY'
2018-01-16 02:30:56 +00:00
outputDirectory 'src/main/resources'
strict true
widgetset 'com.faendir.acra.AppWidgetset'
}
vaadinThemeCompile {
themesDirectory 'src/main/resources/VAADIN/themes'
}
vaadinSuperDevMode {
noserver false
extraArgs ""
}
2017-12-14 17:33:27 +00:00
dependencyManagement {
imports {
mavenBom "com.vaadin:vaadin-bom:${vaadin.version}"
}
}
dependencies {
//spring
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile 'mysql:mysql-connector-java'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.liquibase:liquibase-core'
compile 'org.yaml:snakeyaml'
2017-12-19 04:50:35 +00:00
optional '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'
compile "com.querydsl:querydsl-jpa:$queryDslVersion"
2018-06-01 03:46:16 +00:00
compile "com.querydsl:querydsl-sql:$queryDslVersion"
compile "com.querydsl:querydsl-apt:$queryDslVersion:jpa"
2017-12-19 04:50:35 +00:00
//vaadin
compile 'com.vaadin:vaadin-spring-boot-starter'
2017-12-14 17:33:27 +00:00
compile 'com.vaadin:vaadin-push'
compile('org.vaadin.addon:jfreechartwrapper:4.0.0') {
exclude group: 'javax.servlet', module: 'servlet-api'
2017-12-19 04:50:35 +00:00
exclude group: 'jfree'
2017-12-14 17:33:27 +00:00
}
2018-03-24 04:18:49 +00:00
compile 'com.vaadin:vaadin-icons:3.0.1'
2017-12-19 04:50:35 +00:00
compile 'org.jfree:jfreechart:1.5.0'
2017-12-14 17:33:27 +00:00
compile 'javax.servlet:javax.servlet-api:3.1.0'
compile 'org.vaadin.addons:stepper:2.4.0'
//utility
compile 'org.codeartisans:org.json:20161124'
2018-08-17 00:47:31 +00:00
compile 'org.apache.commons:commons-text:1.4'
2018-06-01 03:46:16 +00:00
compile 'org.xbib:time:1.0.0'
2018-07-30 19:48:30 +00:00
compile 'ch.acra:acra-javacore:5.1.3'
2018-06-08 00:12:46 +00:00
compile 'com.faendir.proguard:retrace:1.3'
compile 'javax.xml.bind:jaxb-api:2.3.0'
2018-06-14 20:09:43 +00:00
compile 'com.github.ziplet:ziplet:2.3.0'
compile 'me.xdrop:fuzzywuzzy:1.1.10'
2018-07-29 18:42:59 +00:00
compile 'com.talanlabs:avatar-generator:1.1.0'
2018-08-15 12:27:04 +00:00
compile 'org.ektorp:org.ektorp.spring:1.5.0'
2018-06-25 22:10:02 +00:00
//testing
testCompile 'org.springframework.boot:spring-boot-starter-test'
2018-06-26 16:48:31 +00:00
testCompile 'org.springframework.security:spring-security-test'
2018-06-25 22:10:02 +00:00
testCompile 'com.h2database:h2'
testCompile 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-17 17:26:14 +00:00
dependsOn vaadinThemeCompile, vaadinCompile
}
2017-12-14 17:33:27 +00:00
2018-06-05 02:20:19 +00:00
task generateThemeClasses(type: com.faendir.acra.gradle.ThemeClassGenerator) {
themesDirectory file('src/main/resources/VAADIN/themes')
2018-06-05 03:21:15 +00:00
outputDirectory file("$generated/faendir/java")
2018-06-05 02:20:19 +00:00
}
compileJava.dependsOn(generateThemeClasses)
2018-08-16 14:34:25 +00:00
task generateMessageClasses(type: com.faendir.acra.gradle.I18nClassGenerator) {
inputDirectory file('src/main/resources/i18n/com/faendir/acra')
outputDirectory file("$generated/faendir/java")
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-07-30 13:55:58 +00:00
release {
failOnUnversionedFiles = false
tagTemplate = 'v$version'
}