@@ -78,7 +78,7 @@ public boolean isDistributionStarted(ReleaseInfo releaseInfo) {
78
78
logger .debug ("Checking if distribution is started" );
79
79
RequestEntity <Void > request = getPackageFilesRequest (releaseInfo , 1 );
80
80
try {
81
- logger .debug ("Checking bintray " );
81
+ logger .debug ("Checking Bintray " );
82
82
this .restTemplate .exchange (request , PackageFile [].class ).getBody ();
83
83
return true ;
84
84
}
@@ -100,7 +100,7 @@ public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requi
100
100
RequestEntity <Void > request = getPackageFilesRequest (releaseInfo , 0 );
101
101
try {
102
102
waitAtMost (timeout ).with ().pollDelay (Duration .ZERO ).pollInterval (pollInterval ).until (() -> {
103
- logger .debug ("Checking bintray " );
103
+ logger .debug ("Checking Bintray " );
104
104
try {
105
105
PackageFile [] published = this .restTemplate .exchange (request , PackageFile [].class ).getBody ();
106
106
return hasPublishedAll (published , requiredDigests );
@@ -111,7 +111,7 @@ public boolean isDistributionComplete(ReleaseInfo releaseInfo, Set<String> requi
111
111
});
112
112
}
113
113
catch (ConditionTimeoutException ex ) {
114
- logger .debug ("Timeout checking bintray " );
114
+ logger .debug ("Timeout checking Bintray " );
115
115
return false ;
116
116
}
117
117
return true ;
@@ -132,7 +132,7 @@ private boolean hasPublishedAll(PackageFile[] published, Set<String> requiredDig
132
132
logger .debug ("Found all required digests" );
133
133
return true ;
134
134
}
135
- logger .debug ("Some digests have not been published:" );
135
+ logger .debug (remaining . size () + " digests have not been published:" );
136
136
remaining .forEach (logger ::debug );
137
137
return false ;
138
138
}
@@ -148,18 +148,18 @@ private RequestEntity<Void> getPackageFilesRequest(ReleaseInfo releaseInfo, int
148
148
* @param releaseInfo the release information
149
149
*/
150
150
public void publishGradlePlugin (ReleaseInfo releaseInfo ) {
151
- logger .debug ("Publishing Gradle Pluging " );
151
+ logger .debug ("Publishing Gradle plugin " );
152
152
RequestEntity <String > requestEntity = RequestEntity
153
153
.post (URI .create (BINTRAY_URL + "packages/" + this .bintrayProperties .getSubject () + "/"
154
154
+ this .bintrayProperties .getRepo () + "/" + releaseInfo .getGroupId () + "/versions/"
155
155
+ releaseInfo .getVersion () + "/attributes" ))
156
156
.contentType (MediaType .APPLICATION_JSON ).body (GRADLE_PLUGIN_REQUEST );
157
157
try {
158
158
this .restTemplate .exchange (requestEntity , Object .class );
159
- logger .debug ("Publishing Gradle Pluging complete" );
159
+ logger .debug ("Publishing Gradle plugin complete" );
160
160
}
161
161
catch (HttpClientErrorException ex ) {
162
- logger .info ("Failed to add attribute to gradle plugin. " );
162
+ logger .info ("Failed to add attribute to Gradle plugin" );
163
163
throw ex ;
164
164
}
165
165
}
@@ -184,7 +184,7 @@ public void syncToMavenCentral(ReleaseInfo releaseInfo) {
184
184
logger .debug ("Sync complete" );
185
185
}
186
186
catch (HttpClientErrorException ex ) {
187
- logger .info ("Failed to sync. " );
187
+ logger .info ("Failed to sync" );
188
188
throw ex ;
189
189
}
190
190
}
0 commit comments