Я получаю сообщение об ошибке в сборке circleci при выполнении шага публикации gradle. Я использую Gradle 5.3 и понимаю, что они изменили эту функциональность в 5.4.1. Тем не менее, я не понимаю, почему это происходит с ошибкой в версии, которую я использую.
group = 'com.talentreef.notification.commons' version = '1.0.0-SNAPSHOT' publishing { publications { maven(MavenPublication) { from components.java } } repositories { maven { def releaseRepoUrl = "https://nexus.trdev.co/nexus/content/repositories/releases" def snapshotRepoUrl = "https://nexus.trdev.co/nexus/content/repositories/snapshots" url = version.endsWith('SNAPSHOT') ? snapshotRepoUrl : releaseRepoUrl credentials { username = rootProject.ext.nexus.username password = rootProject.ext.nexus.password } } } } * What went wrong: Execution failed for task ':publishMavenPublicationToMavenRepository'. > Failed to publish publication 'maven' to repository 'maven' > Could not write to resource 'https://nexus.trdev.co/nexus/content/repositories/snapshots/com/talentreef/notification/commons/notification-commons/1.0.0-SNAPSHOT/notification-commons-1.0.0-20190619.182943-1.jar'. > Could not PUT 'https://nexus.trdev.co/nexus/content/repositories/snapshots/com/talentreef/notification/commons/notification-commons/1.0.0-SNAPSHOT/notification-commons-1.0.0-20190619.182943-1.jar'. Received status code 400 from server: Bad Request
Ладно, похоже, что это дает сбой, потому что репозиторий представляет собой тип политики "release" вместо снимка.