Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrade to kr.motd.maven:os-maven-plugin:1.3.0.Final and expose linux variants. #1

Merged
merged 2 commits into from
Aug 19, 2015

Conversation

zhangkun83
Copy link
Collaborator

public Release getRelease() {
Object releaseId = impl.detectedProperties.get(Detector.DETECTED_RELEASE);
if (releaseId == null) {
throw new UnsupportedOperationException("release is not available for " + getClassifier());
Copy link
Contributor

Choose a reason for hiding this comment

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

Maybe just return null? Also, should we have an isReleaseSupported()?

Copy link
Collaborator Author

Choose a reason for hiding this comment

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

I am OK with returning a null. isReleaseSupported() is probably unnecessary because it's idiomatic in Groovy to check a null return value. null is evaluated as false in conditional statement:

if (osdetector.release) {
  osdetector.release.isLike(...)
}

Copy link
Contributor

Choose a reason for hiding this comment

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

sgtm

@nmittler
Copy link
Contributor

@zhangkun83 looks great! Just a few minor comments.

@zhangkun83
Copy link
Collaborator Author

@nmittler PTAL.

@ejona86
Copy link
Collaborator

ejona86 commented Aug 19, 2015

@zhangkun83 LGTM

@zhangkun83
Copy link
Collaborator Author

1.3.0 has been released on Maven Central.

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

Successfully merging this pull request may close these issues.

3 participants