Skip to content
This repository has been archived by the owner on Jun 10, 2021. It is now read-only.

Use toString() representation of project.version #39

Merged
merged 1 commit into from
Dec 20, 2014
Merged

Use toString() representation of project.version #39

merged 1 commit into from
Dec 20, 2014

Conversation

jnehlmeier
Copy link
Contributor

Gradle allows project.version to be of type Object and always calls
toString() on the version to get a String representation. Instead of
assuming that project.version is always a String, we need to do the same.

Fixes issue #38

@bmuschko
Copy link
Owner

Thanks for your pull request. I am going to look over it later today.

*/
public static final List<Object> VERIFIED_1_0_RELEASE_VERSION_TYPES = [
"'1.0'",
'new Object() { ' +
Copy link
Owner

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Could you make this less Java-ish? This would be more readable:

"new Object() { String toString() { '1.0' } }"

Gradle allows project.version to be of type Object and always calls
toString() on the version to get a String representation. Instead of
assuming that project.version is always a String, we need to do the same.

Fixes issue #38
@jnehlmeier
Copy link
Contributor Author

Hehe yeah I am more of a Java guy. I applied your suggestions.

bmuschko added a commit that referenced this pull request Dec 20, 2014
Use toString() representation of project.version
@bmuschko bmuschko merged commit 7467669 into bmuschko:master Dec 20, 2014
@bmuschko bmuschko added the Bug label Dec 20, 2014
@bmuschko bmuschko self-assigned this Dec 20, 2014
@bmuschko bmuschko added this to the v2.2 milestone Dec 20, 2014
@bmuschko
Copy link
Owner

It's published. Thanks again.

Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants