Skip to content

Commit

Permalink
feat(artifacts): Check if default artifact was intended (#1701)
Browse files Browse the repository at this point in the history
  • Loading branch information
lwander authored Oct 16, 2017
1 parent 675bd09 commit 1c632d3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ allprojects {
group = "com.netflix.spinnaker.orca"

ext {
spinnakerDependenciesVersion = project.hasProperty('spinnakerDependenciesVersion') ? project.property('spinnakerDependenciesVersion') : '0.114.0'
spinnakerDependenciesVersion = project.hasProperty('spinnakerDependenciesVersion') ? project.property('spinnakerDependenciesVersion') : '0.116.0'
}

def checkLocalVersions = [spinnakerDependenciesVersion: spinnakerDependenciesVersion]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ class ArtifactResolver {
for (ExpectedArtifact expectedArtifact : unresolvedExpectedArtifacts) {
if (expectedArtifact.usePriorArtifact) {
throw new UnsupportedOperationException("'usePriorArtifact' is not supported yet")
} else if (expectedArtifact.defaultArtifact) {
} else if (expectedArtifact.useDefaultArtifact && expectedArtifact.defaultArtifact) {
resolvedArtifacts.add(expectedArtifact.defaultArtifact)
} else {
throw new IllegalStateException("Unmatched expected artifact ${expectedArtifact} with no fallback behavior specified")
Expand Down

0 comments on commit 1c632d3

Please sign in to comment.