-
Notifications
You must be signed in to change notification settings - Fork 7
/
sonatype-publish-util.gradle
52 lines (48 loc) · 2.55 KB
/
sonatype-publish-util.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
task sonatypeAssembleApptentiveModules(type: GradleBuild) {
buildName = "sonatypeAssembleApptentiveModules"
tasks = ['apptentive-core:assembleRelease',
'apptentive-core-ui:assembleRelease',
'apptentive-feedback:assembleRelease',
'apptentive-enjoyment-dialog:assembleRelease',
'apptentive-in-app-review:assembleRelease',
'apptentive-initiator:assembleRelease',
'apptentive-navigate-to-link:assembleRelease',
'apptentive-notes:assembleRelease',
'apptentive-message-center:assembleRelease',
'apptentive-ratings:assembleRelease',
'apptentive-survey:assembleRelease']
}
// Do this first
task sonatypePublishApptentiveModules(type: GradleBuild) {
buildName = "sonatypePublishApptentiveModules"
startParameter.projectProperties = project.gradle.startParameter.projectProperties
tasks = ['apptentive-core:publishMavenPublicationToMavenLocal',
'apptentive-core-ui:publishMavenPublicationToMavenLocal',
'apptentive-feedback:publishMavenPublicationToMavenLocal',
'apptentive-enjoyment-dialog:publishMavenPublicationToMavenLocal',
'apptentive-in-app-review:publishMavenPublicationToMavenLocal',
'apptentive-initiator:publishMavenPublicationToMavenLocal',
'apptentive-navigate-to-link:publishMavenPublicationToMavenLocal',
'apptentive-notes:publishMavenPublicationToMavenLocal',
'apptentive-message-center:publishMavenPublicationToMavenLocal',
'apptentive-ratings:publishMavenPublicationToMavenLocal',
'apptentive-survey:publishMavenPublicationToMavenLocal']
dependsOn sonatypeAssembleApptentiveModules
}
task sonatypeAssembleApptentiveKitModule(type: GradleBuild) {
buildName = "sonatypeAssembleApptentiveModules"
tasks = ['apptentive-kit-android:assembleRelease']
}
// Do this second
task sonatypePublishApptentiveKitModule(type: GradleBuild) {
buildName = "sonatypePublishApptentiveModules"
startParameter.projectProperties = project.gradle.startParameter.projectProperties
tasks = ['apptentive-kit-android:publishMavenPublicationToMavenLocal']
dependsOn sonatypeAssembleApptentiveKitModule
}
// Do this third
task sonatypePublishAndCloseApptentiveStagingRepository(type: GradleBuild) {
buildName = "sonatypePublishApptentiveStagingRepository"
startParameter.projectProperties = project.gradle.startParameter.projectProperties
tasks = ['publishToSonatype', 'closeSonatypeStagingRepository']
}