-
Notifications
You must be signed in to change notification settings - Fork 11
/
build.gradle.kts
66 lines (54 loc) · 1.58 KB
/
build.gradle.kts
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
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
import org.jetbrains.dokka.DokkaConfiguration
import org.jetbrains.dokka.gradle.DokkaTask
import java.net.URL
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
jcenter()
}
dependencies {
classpath(Classpaths.gradleClasspath)
classpath(Classpaths.kotlinClasspath)
classpath(Classpaths.dokkaClasspath)
}
}
plugins {
id("com.github.ben-manes.versions") version ("0.51.0")
}
allprojects {
repositories {
google()
jcenter()
}
}
tasks.register("clean", Delete::class) {
delete = setOf(rootProject.buildDir)
}
tasks.named<DependencyUpdatesTask>("dependencyUpdates") {
isCheckForGradleUpdate = true
outputFormatter = "json"
outputDir = "build/dependencyUpdates"
reportfileName = "report"
}
subprojects {
apply(from = "$rootDir/versions.gradle.kts")
buildscript.repositories {
jcenter()
mavenCentral()
}
}
tasks.withType<DokkaTask> {
outputFormat = "html"
outputDirectory = "$buildDir/docs/dokka"
externalDocumentationLink(delegateClosureOf<DokkaConfiguration.ExternalDocumentationLink.Builder> {
url = URL("https://docs.spring.io/spring-framework/docs/5.1.0.BUILD-SNAPSHOT/javadoc-api/")
})
jdkVersion = 8
// Do not output deprecated members
skipDeprecated = true
// Emit warnings about not documented members.
reportUndocumented = true
}
defaultTasks("clean", "tasks", "--all")