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.
|
|
|
|
*/
|
|
|
|
|
2018-05-29 00:22:13 +00:00
|
|
|
plugins {
|
|
|
|
id 'java'
|
|
|
|
id 'idea'
|
|
|
|
id 'war'
|
2018-09-08 13:22:48 +00:00
|
|
|
id 'org.springframework.boot' version '2.0.4.RELEASE'
|
|
|
|
id 'com.devsoap.vaadin-flow' version '1.0.0.M5'
|
2018-05-29 00:22:13 +00:00
|
|
|
id 'io.spring.dependency-management' version '1.0.5.RELEASE'
|
|
|
|
id 'cn.bestwu.propdeps' version '0.0.10'
|
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
|
|
|
|
2018-07-14 10:43:17 +00:00
|
|
|
vaadin {
|
2018-09-08 13:22:48 +00:00
|
|
|
version '10.0.5'
|
2018-07-14 10:43:17 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
|
|
|
|
// Automatically configure repositories and dependencies. For a more fine-grained example see
|
|
|
|
// https://github.com/devsoap/gradle-vaadin-flow/wiki/Dependency-management
|
|
|
|
vaadin.autoconfigure()
|
|
|
|
|
2017-12-14 17:33:27 +00:00
|
|
|
group 'com.faendir'
|
2018-06-26 22:59:36 +00:00
|
|
|
version = '0.5.0'
|
2017-12-14 17:33:27 +00:00
|
|
|
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
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2018-09-08 13:22:48 +00:00
|
|
|
configurations {
|
|
|
|
all*.exclude module : 'slf4j-simple'
|
|
|
|
}
|
|
|
|
|
2017-12-14 17:33:27 +00:00
|
|
|
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.springframework:spring-orm'
|
2018-05-23 01:04:48 +00:00
|
|
|
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'
|
2017-12-19 00:49:14 +00:00
|
|
|
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"
|
2018-06-17 21:54:32 +00:00
|
|
|
compile "com.querydsl:querydsl-apt:$queryDslVersion:jpa"
|
2017-12-19 04:50:35 +00:00
|
|
|
//vaadin
|
2018-07-14 10:43:17 +00:00
|
|
|
compile "com.vaadin:vaadin-spring-boot-starter:${vaadin.version}"
|
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'
|
|
|
|
compile 'org.apache.commons:commons-collections4:4.1'
|
|
|
|
compile 'commons-fileupload:commons-fileupload:1.3.2'
|
2017-12-19 00:49:14 +00:00
|
|
|
compile 'org.apache.commons:commons-text:1.1'
|
2018-06-01 03:46:16 +00:00
|
|
|
compile 'org.xbib:time:1.0.0'
|
2017-12-14 17:33:27 +00:00
|
|
|
compile 'com.faendir.acra:acra-javacore:5.0.0-rc2'
|
|
|
|
compile 'com.diffplug.durian:durian:3.4.0'
|
2018-06-08 00:12:46 +00:00
|
|
|
compile 'com.faendir.proguard:retrace:1.3'
|
2018-01-07 14:45:11 +00:00
|
|
|
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'
|
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
|
|
|
}
|
|
|
|
|
2017-12-19 00:49:14 +00:00
|
|
|
compileJava.dependsOn(processResources)
|
|
|
|
|
2017-12-14 17:33:27 +00:00
|
|
|
war {
|
|
|
|
archiveName = 'acra.war'
|
|
|
|
version = version
|
2017-12-19 00:49:14 +00:00
|
|
|
enabled = true
|
2018-06-05 02:20:19 +00:00
|
|
|
}
|
|
|
|
|
2018-06-26 22:16:31 +00:00
|
|
|
test {
|
|
|
|
testLogging {
|
|
|
|
events "failed"
|
|
|
|
exceptionFormat "full"
|
|
|
|
}
|
|
|
|
}
|