-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
141 lines (121 loc) · 4.1 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
buildscript {
ext {
javaVersion = '1.8'
jgivenVersion = '0.15.3'
logbackVersion = '1.2.3'
lombokVersion = '1.18.10'
javaxJsonVersion = '1.1.4'
slf4jVersion = '2.0.0-alpha0'
junit4Version = '4.13-beta-3'
junitJupiterVersion = '5.5.2'
asciidoctorjPdfVersion = '1.5.0-alpha.16'
ozarkVersion = '1.0.0-m03' // TODO: FIXME: Migrate 1.0.0-m03 -> 1.0.0-m04
}
dependencies {
classpath "org.asciidoctor:asciidoctorj-pdf:$asciidoctorjPdfVersion"
}
}
plugins {
id 'idea'
id 'io.franzbecker.gradle-lombok' version '3.1.0'
id 'com.github.ben-manes.versions' version '0.25.0'
id 'com.avast.gradle.docker-compose' version '0.6.13'
id 'org.asciidoctor.convert' version '1.5.7' apply false
id 'org.ajoberstar.git-publish' version '0.3.0' apply false
}
wrapper {
gradleVersion = '5.6.2'
distributionType = 'BIN'
}
idea {
module {
downloadJavadoc = false
downloadSources = true
}
}
allprojects {
apply plugin: 'base'
clean.doFirst {
[
project.buildDir,
project.file('out'),
project.file('bin'),
project.file('build'),
project.file('target'),
project.file('public'),
project.file('.allure'),
project.file('.project'),
project.file('.settings'),
project.file('.classpath'),
project.file("$rootDir/dist"),
project.file('allure-report'),
project.file('allure-results'),
project.file("$rootDir/src/main/resources/public/docs"),
].each { delete it }
// rm -rf $(find . -name 'ajcore.*.txt')
delete fileTree(rootDir).matching {
include '**/ajcore.*.txt'
include '**/allure-results/**'
include '**/allure-report/**'
include '**/.allure/**'
}
}
}
allprojects {
buildscript {
apply from: "$rootDir/gradle/repositories-config.gradle"
}
apply from: "$rootDir/gradle/repositories-config.gradle"
}
//tag::dependencies[]
allprojects {
//end::dependencies[]
apply plugin: 'java'
version = '0.0.2'
group = 'com.github.daggerok'
sourceCompatibility = targetCompatibility = "$javaVersion"
apply plugin: 'war'
war {
archiveName = "${project.name}.war"
}
defaultTasks 'clean', 'build'
compileJava.dependsOn(processResources)
//tag::dependencies[]
dependencies {
implementation 'org.webjars:material-design-icons:3.0.1'
implementation 'org.webjars:materializecss:1.0.0'
implementation 'javax.mvc:javax.mvc-api:1.0-pr'
implementation "org.mvc-spec.ozark:ozark-resteasy:$ozarkVersion"
implementation "org.mvc-spec.ozark.ext:ozark-thymeleaf:$ozarkVersion", {
exclude group: 'org.thymeleaf', module: 'thymeleaf'
}
implementation 'org.thymeleaf:thymeleaf:3.0.11.RELEASE'
//end::dependencies[]
/*
implementation 'org.thymeleaf.extras:thymeleaf-extras-java8time:3.0.1.RELEASE',
'org.thymeleaf.extras:thymeleaf-extras-tiles2:2.1.1.RELEASE',
'org.thymeleaf.extras:thymeleaf-extras-conditionalcomments:2.1.2.RELEASE'
testImplementation 'org.thymeleaf:thymeleaf-testing:3.0.3.RELEASE'
*/
//// In java we trust...
implementation 'io.vavr:vavr:0.10.2'
compileOnly "org.projectlombok:lombok:$lombokVersion"
testCompileOnly "org.projectlombok:lombok:$lombokVersion"
annotationProcessor "org.projectlombok:lombok:$lombokVersion"
testAnnotationProcessor "org.projectlombok:lombok:$lombokVersion"
providedCompile 'javax:javaee-api:8.0.1'
providedCompile 'com.h2database:h2:1.4.199'
implementation 'org.hibernate:hibernate-core:4.2.18.Final'
implementation "javax.json:javax.json-api:$javaxJsonVersion"
implementation "org.glassfish:javax.json:$javaxJsonVersion"
implementation 'org.jboss.resteasy:resteasy-json-p-provider:4.3.0.Final'
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation "org.slf4j:slf4j-jdk14:$slf4jVersion"
//tag::dependencies[]
}
}
//end::dependencies[]
apply from: "$rootDir/gradle/junit.gradle"
apply from: "$rootDir/gradle/findbugs.gradle"
apply from: "$rootDir/gradle/docker-compose.gradle"
apply from: "$rootDir/gradle/docs.gradle"