Skip to content

Commit c23e420

Browse files
committed
Merge branch '2.1.x' into 2.2.x
2 parents 71e3844 + dbd2783 commit c23e420

File tree

1 file changed

+8
-8
lines changed
  • ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray

1 file changed

+8
-8
lines changed

ci/images/releasescripts/src/main/java/io/spring/concourse/releasescripts/bintray/BintrayService.java

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -78,7 +78,7 @@ public boolean isDistributionStarted(ReleaseInfo releaseInfo) {
7878
logger.debug("Checking if distribution is started");
7979
RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 1);
8080
try {
81-
logger.debug("Checking bintray");
81+
logger.debug("Checking Bintray");
8282
this.restTemplate.exchange(request, PackageFile[].class).getBody();
8383
return true;
8484
}
@@ -100,7 +100,7 @@ public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requi
100100
RequestEntity<Void> request = getPackageFilesRequest(releaseInfo, 0);
101101
try {
102102
waitAtMost(timeout).with().pollDelay(Duration.ZERO).pollInterval(pollInterval).until(() -> {
103-
logger.debug("Checking bintray");
103+
logger.debug("Checking Bintray");
104104
try {
105105
PackageFile[] published = this.restTemplate.exchange(request, PackageFile[].class).getBody();
106106
return hasPublishedAll(published, requiredDigests);
@@ -111,7 +111,7 @@ public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requi
111111
});
112112
}
113113
catch (ConditionTimeoutException ex) {
114-
logger.debug("Timeout checking bintray");
114+
logger.debug("Timeout checking Bintray");
115115
return false;
116116
}
117117
return true;
@@ -132,7 +132,7 @@ private boolean hasPublishedAll(PackageFile[] published, Set<String> requiredDig
132132
logger.debug("Found all required digests");
133133
return true;
134134
}
135-
logger.debug("Some digests have not been published:");
135+
logger.debug(remaining.size() + " digests have not been published:");
136136
remaining.forEach(logger::debug);
137137
return false;
138138
}
@@ -148,18 +148,18 @@ private RequestEntity<Void> getPackageFilesRequest(ReleaseInfo releaseInfo, int
148148
* @param releaseInfo the release information
149149
*/
150150
public void publishGradlePlugin(ReleaseInfo releaseInfo) {
151-
logger.debug("Publishing Gradle Pluging");
151+
logger.debug("Publishing Gradle plugin");
152152
RequestEntity<String> requestEntity = RequestEntity
153153
.post(URI.create(BINTRAY_URL + "packages/" + this.bintrayProperties.getSubject() + "/"
154154
+ this.bintrayProperties.getRepo() + "/" + releaseInfo.getGroupId() + "/versions/"
155155
+ releaseInfo.getVersion() + "/attributes"))
156156
.contentType(MediaType.APPLICATION_JSON).body(GRADLE_PLUGIN_REQUEST);
157157
try {
158158
this.restTemplate.exchange(requestEntity, Object.class);
159-
logger.debug("Publishing Gradle Pluging complete");
159+
logger.debug("Publishing Gradle plugin complete");
160160
}
161161
catch (HttpClientErrorException ex) {
162-
logger.info("Failed to add attribute to gradle plugin.");
162+
logger.info("Failed to add attribute to Gradle plugin");
163163
throw ex;
164164
}
165165
}
@@ -184,7 +184,7 @@ public void syncToMavenCentral(ReleaseInfo releaseInfo) {
184184
logger.debug("Sync complete");
185185
}
186186
catch (HttpClientErrorException ex) {
187-
logger.info("Failed to sync.");
187+
logger.info("Failed to sync");
188188
throw ex;
189189
}
190190
}

0 commit comments

Comments
 (0)