-
Notifications
You must be signed in to change notification settings - Fork 211
Conversation
fixes #22 |
should we add to the readme a link to this PR and say version can also be supplied on the command line see here |
@@ -42,4 +43,8 @@ class ReleasePlugin implements Plugin<Project> { | |||
} | |||
} | |||
|
|||
private String getString(Project project, String propertyName, String defaultValue) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
private def getProperty
?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
but String defaultValue
Once released, the wiki needs to be updated as well |
LGETM 👍 |
@@ -36,8 +36,8 @@ publish { | |||
userOrg = 'novoda' | |||
groupId = 'com.novoda' | |||
artifactId = 'bintray-release' | |||
version = '0.2.7' | |||
description = 'Oh hi, this is a nice description for a project right?' | |||
version = '0.2.8' // since 0.2.8, version can also be supplied on the command line. [See here](https://github.com/novoda/bintray-release/pull/23) |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
not sure if this comment should be here
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
yeah same - looks more like something in the wiki/release notes when you create a tag
yeah either add it to the wiki or the README https://github.com/novoda/bintray-release/wiki |
22/Use version property if available
do we want to do a release with this change? |
release often,.. [image: --] 2015-03-26 18:29 GMT+01:00 Adam Brown [email protected]:
|
This change broke releasing without specifying the version via the properties |
😱 what shouldn't we have done? |
as @ouchadam mentioned to me the issue might be that |
Yes, hasProperty returns true, but getProperty returns unspecified. [image: --] 2015-04-02 12:46 GMT+02:00 Xavi Rigau [email protected]:
|
This PR adds the possibility to make publish.version optional and define the version of the release as a project property, e.g. in a gradle file
or as a command line parameter