bksaville
bksaville

Reputation: 288

Cannot publish grails plugin

I am trying to publish a new version of the Spring Security OAuth2 Provider grails plugin (2.0-RC1), and it seems to upload the artifacts correctly (see here), but the plugin page on grails.org is not updated. Here is the output from publishing - I'm not sure what do about the error honestly:

~>grailsw publish-plugin --grailsCentral --stacktrace
| Plugin packaged grails-spring-security-oauth2-provider-2.0-RC2.zip
| Plugin packaged grails-spring-security-oauth2-provider-2.0-RC2.zip
| POM generated: target/pom.xml
Publishing to Grails Central
Publishing to http://grails.org/api/v1.0/publish/spring-security-oauth2-provider/2.0-RC2
| Error Failed to publish plugin: Could not read JSON: Can not deserialize instance of java.lang.String out of START_OBJECT token
 at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@74f0437f; line: 1, column: 1]; nested exception is com.fasterxml.jackson.databind.JsonMappingException: Can not deserialize instance of java.lang.String out of START_OBJECT token
 at [Source: sun.net.www.protocol.http.HttpURLConnection$HttpInputStream@74f0437f; line: 1, column: 1]

I'm using the release plugin version 3.0.1 and grails 2.3.8. I'm also on Windows 7 x64 with Java 7 x64.

Upvotes: 0

Views: 103

Answers (1)

bksaville
bksaville

Reputation: 288

Found the solution after finally taking the time to dig into the publish plugin code. The problem was actually that I had a newer version of the rest-client-builder overriding the version bundled with the release plugin. I was using version 2.0.1 instead of 1.0.3.

Changing the rest-client-builder plugin version to 1.0.3 fixed the issue (using release plugin 3.0.1).

Upvotes: 0

Related Questions