Closed osipxd closed 2 years ago
The only workaround I found - manually activate version using the following code in the build script:
import com.gradle.publish.OAuthHttpClient
import com.gradle.publish.protocols.v1.models.publish.PublishActivateRequest
val client = OAuthHttpClient(
/* baseUrl = */ "https://plugins.gradle.org",
/* publishKey = */ property("gradle.publish.key").toString(),
/* publishSecret = */ property("gradle.publish.secret").toString(),
)
val request = PublishActivateRequest("com.redmadrobot.publish", "0.16.2")
client.send(request)
The plugin is published now
FYI the preferred way to reach out to Gradle is by opening an issue on this repository or via the following link: https://plugins.gradle.org/docs/get-help.
Yes, the plugin is published using workaround I've mentioned before. But it wasn't the point of the issue. The point is to prevent such situations further.
Possible solutions I see:
publishPlugins
task again
I've published a plugin using
publishPlugins
task, but for some reason activation failed and the plugin stuck in the state when it is uploaded but not activated.After this error, I've restarted
publishPlugins
(without login) and "Unauthorized" error just gone. But now I get another error:Expected Behavior
There is possibility to activate or delete uploaded version, via website, for example.
Current Behavior
I can't publish version again (it is already uploaded) as well as I can't delete the uploaded version because it is not activated.
Your Environment
com.gradle.plugin-publish:0.21.0