2017-12-14 17:20:04 +00:00
|
|
|
buildscript {
|
|
|
|
ext {
|
2018-05-21 16:23:49 +00:00
|
|
|
springBootVersion = '2.0.2.RELEASE'
|
2017-12-14 17:20:04 +00:00
|
|
|
}
|
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
maven { url 'https://repo.spring.io/libs-snapshot' }
|
2017-12-19 00:49:14 +00:00
|
|
|
maven { url 'http://repo.spring.io/plugins-release' }
|
2017-12-14 17:20:04 +00:00
|
|
|
maven { url "https://plugins.gradle.org/m2/" }
|
|
|
|
}
|
|
|
|
dependencies {
|
|
|
|
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
|
2018-03-24 04:18:49 +00:00
|
|
|
classpath "com.devsoap.plugin:gradle-vaadin-plugin:1.3.1"
|
2017-12-19 00:49:14 +00:00
|
|
|
classpath 'io.spring.gradle:propdeps-plugin:0.0.9.RELEASE'
|
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' }
|
|
|
|
maven { url 'https://oss.sonatype.org/content/repositories/vaadin-snapshots/' }
|
|
|
|
maven { url 'https://repo.spring.io/libs-snapshot' }
|
2017-05-17 15:42:01 +00:00
|
|
|
}
|
2017-12-28 17:06:53 +00:00
|
|
|
|
2017-12-14 17:33:27 +00:00
|
|
|
apply plugin: 'java'
|
|
|
|
apply plugin: 'org.springframework.boot'
|
|
|
|
apply plugin: 'com.devsoap.plugin.vaadin'
|
|
|
|
apply plugin: 'io.spring.dependency-management'
|
|
|
|
apply plugin: 'idea'
|
2017-12-19 00:49:14 +00:00
|
|
|
apply plugin: 'war'
|
|
|
|
apply plugin: 'propdeps'
|
|
|
|
apply plugin: 'propdeps-idea'
|
2017-05-17 15:42:01 +00:00
|
|
|
|
2017-12-14 17:33:27 +00:00
|
|
|
group 'com.faendir'
|
2018-03-27 18:57:48 +00:00
|
|
|
version = '0.3.1-SNAPSHOT'
|
2017-12-14 17:33:27 +00:00
|
|
|
sourceCompatibility = 1.8
|
|
|
|
targetCompatibility = 1.8
|
|
|
|
|
2018-05-22 01:38:10 +00:00
|
|
|
ext {
|
|
|
|
javaGeneratedSources = file("$buildDir/generated/java")
|
|
|
|
}
|
|
|
|
|
|
|
|
compileJava {
|
|
|
|
doFirst {
|
|
|
|
javaGeneratedSources.mkdirs()
|
|
|
|
}
|
|
|
|
options.compilerArgs += [
|
|
|
|
'-parameters', '-s', javaGeneratedSources
|
|
|
|
]
|
|
|
|
}
|
|
|
|
|
2018-05-23 03:25:34 +00:00
|
|
|
idea {
|
|
|
|
module {
|
|
|
|
sourceDirs += javaGeneratedSources
|
|
|
|
generatedSourceDirs += javaGeneratedSources
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2017-12-14 17:33:27 +00:00
|
|
|
vaadin {
|
2018-05-21 16:23:49 +00:00
|
|
|
version '8.4.2'
|
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.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"
|
|
|
|
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'
|
|
|
|
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'
|
2017-12-14 17:33:27 +00:00
|
|
|
compile 'org.ocpsoft.prettytime:prettytime:3.2.7.Final'
|
|
|
|
compile 'com.faendir.acra:acra-javacore:5.0.0-rc2'
|
|
|
|
compile 'com.diffplug.durian:durian:3.4.0'
|
2017-12-28 17:06:53 +00:00
|
|
|
compile 'com.faendir.proguard:retrace:1.2'
|
2018-01-07 14:45:11 +00:00
|
|
|
compile 'javax.xml.bind:jaxb-api:2.3.0'
|
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
|
|
|
|
}
|
2017-12-14 17:33:27 +00:00
|
|
|
|