Cleared TODO, updated comment
We already have unit tests
@@ -94,14 +94,14 @@ public class BintrayPlugin implements Plugin<Project> {
}
});
- //TODO unit test, create static wrapper over env variables that we use for testing
LazyConfiguration.lazyConfiguration(bintrayUpload, new Runnable() {
public void run() {
String key = notNull(bintray.getKey(), "BINTRAY_API_KEY",
"Missing 'bintray.key' value.\n" +
" Please configure Bintray extension or export 'BINTRAY_API_KEY' env variable.");
bintray.setKey(key);
- // api key is set basing on 'bintray.key' before lazy configuration so it has to be set again here
+ // api key is set by Bintray plugin, based on 'bintray.key' value, before lazy configuration.
+ // Hence we need to set it again here:
bintrayUpload.setApiKey(key);
//workaround for https://github.com/bintray/gradle-bintray-plugin/issues/170
