-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
90 lines (80 loc) · 1.87 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
buildscript {
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
jcenter()
mavenCentral()
}
dependencies {
classpath 'org.postgresql:postgresql:42.2.0'
classpath('org.liquibase:liquibase-gradle-plugin:1.2.1') {
exclude group: "org.liquibase", module: "liquibase-core"
}
classpath "org.liquibase:liquibase-core:3.5.3"
}
}
plugins {
id "net.ltgt.errorprone" version "0.0.13"
}
apply plugin: 'org.liquibase.gradle'
apply plugin: 'java'
sourceCompatibility = 1.8
targetCompatibility = 1.8
compileJava.options.encoding = 'UTF-8'
// build jars with sources
jar {
from sourceSets.main.allSource
}
apply plugin: 'findbugs'
findbugsMain {
ignoreFailures = true
reports {
xml.enabled = false
html.enabled = true
}
}
findbugs {
sourceSets = [sourceSets.main]
}
subprojects {
apply plugin: "net.ltgt.errorprone"
tasks.withType(JavaCompile) {
options.compilerArgs += ['-Xep:MissingCasesInEnumSwitch:ERROR']
}
configurations.errorprone {
resolutionStrategy.force 'com.google.errorprone:error_prone_core:2.1.3'
}
apply plugin: 'idea'
idea {
module {
name = "$project.parent.name $name"
}
}
repositories {
mavenLocal()
mavenCentral()
jcenter()
maven {
url 'http://repository.jboss.org/nexus/content/groups/public'
}
}
}
liquibase {
activities {
main {
changeLogFile 'sql/changelog.xml'
url 'jdbc:postgresql://localhost/govhack_portal'
username 'govhack'
password ''
}
}
runList = 'main'
}
apply plugin: 'idea'
idea {
module {
excludeDirs += file('app/node_modules')
excludeDirs += file('web/src/main/resources/resources')
}
}