-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathneed-publish-module.gradle
More file actions
41 lines (29 loc) · 1.41 KB
/
need-publish-module.gradle
File metadata and controls
41 lines (29 loc) · 1.41 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
apply from: "./check-module-version-exists.gradle"
apply from: "./check-module-changes.gradle"
ext.needPublishTwilsock = { twilsockVersion ->
def twilsockExists =
checkVersionExists("com/twilio/twilsock/$twilsockVersion/twilsock-${twilsockVersion}.pom")
println "twilsockExists: $twilsockExists"
if (twilsockExists) {
ensureNoChanges(twilsockVersion, "twilsock", "${project(":utils").projectDir}/twilsock-version.gradle")
}
return !twilsockExists
}
ext.needPublishSharedInternal = { sharedInternalVersion ->
def sharedInternalExists =
checkVersionExists("com/twilio/shared-internal/$sharedInternalVersion/shared-internal-${sharedInternalVersion}.pom")
println "shared-internal exists : $sharedInternalExists"
if (sharedInternalExists) {
ensureNoChanges(sharedInternalVersion, "shared-internal", "${project(":utils").projectDir}/shared-internal-version.gradle")
}
return !sharedInternalExists
}
ext.needPublishSharedPublic = { sharedPublicVersion ->
def sharedPublicExists =
checkVersionExists("com/twilio/shared-public/$sharedPublicVersion/shared-public-${sharedPublicVersion}.pom")
println "shared-public exists : $sharedPublicExists"
if (sharedPublicExists) {
ensureNoChanges(sharedPublicVersion, "shared-public", "${project(":utils").projectDir}/shared-public-version.gradle")
}
return !sharedPublicExists
}