-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
143 lines (123 loc) · 4.55 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
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
import java.nio.file.OpenOption;
import org.apache.tools.ant.filters.*
import org.ajoberstar.grgit.operation.OpenOp
buildscript {
ext {
groovyVersion = '2.4.7'
springBootVersion = '1.4.2.RELEASE'
}
repositories {
maven { url 'http://repo.spring.io/libs-release' }
mavenCentral()
jcenter()
}
dependencies {
classpath "org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}"
classpath 'com.github.ben-manes:gradle-versions-plugin:0.12.0'
classpath 'org.ajoberstar:gradle-git:1.4.2'
classpath 'io.spring.gradle:dependency-management-plugin:0.5.6.RELEASE'
classpath 'org.kordamp.gradle:stats-gradle-plugin:0.1.5'
classpath 'org.flywaydb:flyway-gradle-plugin:3.2.1'
classpath 'org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
classpath 'org.asciidoctor:asciidoctorj-pdf:1.5.0-alpha.11'
classpath 'info.solidsoft.gradle.pitest:gradle-pitest-plugin:1.1.9'
}
}
plugins {
id "org.owasp.dependencycheck" version "1.3.5"
id 'org.ajoberstar.grgit' version '1.5.1'
id 'org.ajoberstar.release-opinion' version '1.5.1'
id 'net.ltgt.errorprone' version '0.0.8'
}
apply plugin: 'groovy'
apply plugin: 'eclipse'
//apply plugin: 'org.springframework.boot'
apply plugin: 'com.github.ben-manes.versions'
apply plugin: 'jacoco'
apply plugin: 'build-dashboard'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'org.kordamp.gradle.stats'
apply plugin: 'org.flywaydb.flyway'
apply plugin: 'org.asciidoctor.convert'
apply plugin: 'info.solidsoft.pitest'
apply from : 'gradle/codenarc.gradle'
apply from : 'gradle/deploy.gradle'
def javaVersion = JavaVersion.VERSION_1_8
sourceCompatibility = javaVersion
targetCompatibility = javaVersion
task enforceVersion << {
def foundVersion = JavaVersion.current()
if (foundVersion != javaVersion)
throw new IllegalStateException("Wrong Java version; required is "
+ javaVersion + ", but found " + foundVersion)
}
compileJava.dependsOn(enforceVersion);
asciidoctor {
backends 'html5','pdf'
attributes 'toc':'left'
}
repositories {
maven { url 'http://repo.spring.io/libs-release' }
mavenLocal()
mavenCentral()
}
dependencies {
/*
compile 'org.springframework:spring-core'
compile 'org.springframework.boot:spring-boot-starter-data-jpa'
compile ('org.springframework.boot:spring-boot-starter-web') {
// I don't need Websockets for now
exclude module: 'tomcat-embed-websocket'
}
compile 'org.springframework.boot:spring-boot-starter-actuator'
compile 'org.springframework.boot:spring-boot-starter-mail'
compile 'org.springframework.boot:spring-boot-starter-security'
compile 'org.springframework.boot:spring-boot-starter-validation'
compile 'org.springframework:spring-context-support'
*/
compile 'org.jsoup:jsoup:1.8.3'
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
compile 'commons-io:commons-io:2.4'
compile 'org.apache.commons:commons-lang3:3.4'
compile 'org.apache.poi:poi:3.13'
compile 'mysql:mysql-connector-java:5.1.37'
compile 'org.hibernate:hibernate-search:5.3.0.Final'
compile 'com.fasterxml.jackson.core:jackson-databind:2.6.3'
// TODO some maybe useful client libs, clean up here!
compile 'org.webjars:jquery:2.1.4'
compile 'org.webjars:bootstrap:3.3.5'
compile 'org.webjars:angularjs:1.4.7'
compile 'org.webjars:angular-ui-bootstrap:0.13.4'
compile 'org.webjars:font-awesome:4.5.0'
compile 'org.webjars:angular-multi-select:4.0.0'
compile 'org.webjars:angular-loading-bar:0.8.0'
compile 'org.webjars:ng-tags-input:2.3.0'
compile 'org.webjars:angular-ui-select:0.13.1'
compile 'org.webjars.bower:ng-file-upload:5.0.9'
compile 'org.webjars.bower:textAngular:1.4.6'
testCompile 'com.h2database:h2'
//testCompile 'org.springframework.boot:spring-boot-starter-test'
testCompile 'nl.jqno.equalsverifier:equalsverifier:2.0.2'
//TODO what was json-path good for?
testCompile 'com.jayway.jsonpath:json-path'
testCompile 'info.cukes:cucumber-junit:1.2.4'
testCompile 'info.cukes:cucumber-groovy:1.2.4'
testCompile 'org.spockframework:spock-core:1.0-groovy-2.4'
// cglib needed by spock test to mock non interfaces, TODO Link to doc
testRuntime 'cglib:cglib-nodep:3.2.1'
//compile 'org.flywaydb:flyway-core'
}
configurations.compile {
resolutionStrategy {
failOnVersionConflict()
}
}
// Enforce no SNAPSHOT dependencies
// source: https://discuss.gradle.org/t/enforce-no-snapshot-dependencies-in-gradle/3851
configurations.all {
resolutionStrategy.eachDependency { details ->
if (details.requested.version.endsWith("-SNAPSHOT")) {
throw new GradleException("found snapshot dependency")
}
}
}