-
Notifications
You must be signed in to change notification settings - Fork 40
/
build.gradle.kts
37 lines (32 loc) · 1.04 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
import com.vanniktech.maven.publish.MavenPublishBaseExtension
import com.vanniktech.maven.publish.SonatypeHost
// Top-level build file where you can add configuration options common to all sub-projects/modules.
plugins {
alias(libs.plugins.android.library) apply false
alias(libs.plugins.maven.publish) apply false
alias(libs.plugins.lombok) apply false
alias(libs.plugins.test.retry) apply false
}
subprojects {
repositories {
google()
mavenCentral()
}
tasks.withType<Javadoc> {
// To prevent javadoc warnings with Java 8
options {
this as StandardJavadocDocletOptions
addBooleanOption("Xdoclint:none", true)
addBooleanOption("quiet", true)
addStringOption("Xmaxwarns", "1")
}
}
}
configure(subprojects) {
pluginManager.withPlugin("com.vanniktech.maven.publish") {
extensions.configure<MavenPublishBaseExtension> {
publishToMavenCentral(SonatypeHost.DEFAULT)
signAllPublications()
}
}
}