-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
42 lines (37 loc) · 963 Bytes
/
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
plugins {
id 'io.github.gradle-nexus.publish-plugin' version '1.0.0'
}
allprojects {
group = 'dev.gradleplugins'
}
version = '1.6.10'
// Configure javadoc
allprojects {
pluginManager.withPlugin('java') {
tasks.named('javadoc', Javadoc) {
exclude('**/internal/**')
}
}
}
// Configure gradle-fixtures-* versions
subprojects {
if (project.name.startsWith('gradle-fixtures') || project.name.startsWith('gradle-runner-kit')) {
version = '0.0.140'
}
}
nexusPublishing {
repositories {
sonatype()
}
}
def releaseTask = tasks.register('release') {
dependsOn('publishToSonatype', 'closeAndReleaseSonatypeStagingRepository')
}
subprojects {
pluginManager.withPlugin('maven-publish') {
releaseTask.configure { dependsOn('publishToSonatype')}
}
pluginManager.withPlugin('com.gradle.plugin-publish') {
releaseTask.configure { dependsOn('publishPlugins') }
}
}