-
Notifications
You must be signed in to change notification settings - Fork 2
Expand file tree
/
Copy pathbuild.gradle
More file actions
49 lines (42 loc) · 1.86 KB
/
build.gradle
File metadata and controls
49 lines (42 loc) · 1.86 KB
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
group = 'com.onemillionworlds'
// --- Central Publisher API staging (no network) ---
ext.centralPortalStagingDir = file("${buildDir}/central-portal-staging")
// Clean the staging repo to avoid stale artifacts from previous runs
tasks.register('cleanCentralPortalStaging', Delete) {
group = 'publishing'
description = 'Deletes the local Central Portal staging directory.'
delete centralPortalStagingDir
}
// Aggregate task to publish all subproject publications to the local staging repo
tasks.register('publishAllToCentralPortalStaging') {
group = 'publishing'
description = 'Publishes all module publications to the local Central Portal staging directory.'
dependsOn(
'cleanCentralPortalStaging',
':tamarin-core:publishMavenJavaPublicationToCentralPortalStagingRepository',
':tamarin-desktop:publishMavenJavaPublicationToCentralPortalStagingRepository',
':tamarin-android:publishReleasePublicationToCentralPortalStagingRepository'
)
}
// Zip the staging dir into a single bundle
tasks.register('zipCentralPortalBundle', Zip) {
group = 'publishing'
description = 'Zips the Central Portal staging directory into build/central-bundle.zip'
dependsOn 'publishAllToCentralPortalStaging'
mustRunAfter 'cleanCentralPortalStaging'
from(centralPortalStagingDir)
archiveFileName = 'central-bundle.zip'
destinationDirectory = file("${buildDir}")
}
// Main entrypoint for CI to prepare the bundle
tasks.register('prepareCentralBundle') {
group = 'publishing'
description = 'Stages and zips artifacts ready for Central Publisher Portal upload (no network).'
dependsOn 'zipCentralPortalBundle'
}
subprojects {
tasks.withType(Javadoc).configureEach {
// Prevent the build complaining there isn't an @param on every singple parameter
options.addStringOption('Xdoclint:none', '-quiet')
}
}