@Mojo(name="major-release") public class MajorMojo extends BaseMojo
| Modifier and Type | Field and Description |
|---|---|
protected String |
hashtag
The hashtag to use (legacy)
|
protected Map<String,String> |
platforms
Platform to downloable URL mappings.
|
protected String |
releaseNotesUrl
The URL where the release notes can be found
|
protected String |
url
The URL from where the candidate version can be downloaded
|
apiHost, candidate, consumerKey, consumerToken, https, version| Constructor and Description |
|---|
MajorMojo() |
| Modifier and Type | Method and Description |
|---|---|
protected org.apache.http.client.methods.HttpEntityEnclosingRequestBase |
createAnnounceHttpRequest() |
protected org.apache.http.client.methods.HttpEntityEnclosingRequestBase |
createDefaultHttpRequest() |
protected org.apache.http.client.methods.HttpEntityEnclosingRequestBase |
createHttpRequest() |
protected void |
doExecute() |
protected org.apache.http.HttpResponse |
executeMajorRelease() |
protected Map<String,String> |
getAnnouncePayload() |
protected Map<String,String> |
getReleasePayload() |
createURI, execCall, execute, getPayload@Parameter(property="sdkman.hashtag") protected String hashtag
@Parameter(property="sdkman.url") protected String url
@Parameter(property="sdkman.platforms") protected Map<String,String> platforms
"MAC_OSX" :"https://host/micronaut-x.y.z-macosx.zip"
"LINUX_64" :"https://host/micronaut-x.y.z-linux64.zip"
"WINDOWS_64":"https://host/micronaut-x.y.z-win.zip"
@Parameter(property="sdkman.release.notes.url") protected String releaseNotesUrl
protected org.apache.http.client.methods.HttpEntityEnclosingRequestBase createHttpRequest()
createHttpRequest in class BaseMojoprotected void doExecute()
throws org.apache.maven.plugin.MojoExecutionException
protected org.apache.http.HttpResponse executeMajorRelease()
throws IOException
IOExceptionprotected org.apache.http.client.methods.HttpEntityEnclosingRequestBase createAnnounceHttpRequest()
protected org.apache.http.client.methods.HttpEntityEnclosingRequestBase createDefaultHttpRequest()
Copyright © 2015–2021 SDKMAN!. All rights reserved.