-
Notifications
You must be signed in to change notification settings - Fork 77
/
build.gradle
executable file
·86 lines (70 loc) · 2.61 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
buildscript {
repositories { jcenter() }
dependencies {
classpath 'com.netflix.nebula:gradle-aggregate-javadocs-plugin:2.2.+'
}
}
//apply plugin: 'nebula-aggregate-javadocs'
Project rootProject = project.rootProject
rootProject.gradle.projectsEvaluated {
Set<Project> javaSubprojects = rootProject.subprojects.findAll { subproject -> subproject.plugins.hasPlugin(JavaPlugin) }
if (!javaSubprojects.isEmpty()) {
rootProject.task("aggregateJavadocs", type: Javadoc) {
title = '<h1>Reveno Framework </h1>'
options.bottom = '<i>Copyright © 2019 Artem Dmitriev. All Rights Reserved.</i>'
description = 'Aggregates Javadoc API documentation of all subprojects.'
group = JavaBasePlugin.DOCUMENTATION_GROUP
dependsOn javaSubprojects.javadoc
source javaSubprojects.javadoc.source
destinationDir rootProject.file("$rootProject.buildDir/docs/javadoc")
classpath = rootProject.files(javaSubprojects.javadoc.classpath)
}
}
}
allprojects {
apply plugin: "java"
apply plugin: "idea"
group = 'org.reveno'
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compile "org.slf4j:slf4j-api:$slf4jVersion"
compile "org.slf4j:slf4j-log4j12:$log4jVersion"
testCompile "com.google.guava:guava:$guavaVersion"
testCompile "junit:junit:$junitVersion"
testCompile "org.easymock:easymock:$easymockVersion"
}
def forks = Math.max(1, (int) (Runtime.runtime.availableProcessors()))
test {
minHeapSize = "256m"
maxHeapSize = "256m"
maxParallelForks = forks
forkEvery = 1
systemProperty 'protostuff.runtime.collection_schema_on_repeated_fields', 'true'
testLogging {
showExceptions = true
showCauses = true
showStackTraces = true
events "passed", "skipped", "failed", "standardOut", "standardError"
}
}
tasks.withType(Javadoc) {
options.addStringOption('Xdoclint:none', '-quiet')
options.setMemberLevel(JavadocMemberLevel.PUBLIC)
}
javadoc {
title = '<h1>Reveno Framework </h1>'
options.bottom = '<i>Copyright © 2019 Artem Dmitriev. All Rights Reserved.</i>'
options.addStringOption('XDignore.symbol.file', '-quiet')
include '**/api/**'
include '**/commons/**'
include '**/core/**'
include '**/utils/**'
include '**/metrics/**'
exclude '**/acceptance/**'
exclude '**/test/**'
}
defaultTasks 'clean', 'build'
}