Skip to content

Commit

Permalink
🔖 0.15.5
Browse files Browse the repository at this point in the history
  • Loading branch information
calvertdw committed Dec 6, 2018
1 parent 11ad261 commit decbddc
Show file tree
Hide file tree
Showing 2 changed files with 12 additions and 7 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ plugins {
}

group = "us.ihmc"
version = "0.15.4"
version = "0.15.5"

pluginBundle {
website = "https://github.com/ihmcrobotics/ihmc-build"
Expand Down
17 changes: 11 additions & 6 deletions src/main/kotlin/us/ihmc/build/IHMCBuildExtension.kt
Original file line number Diff line number Diff line change
Expand Up @@ -646,13 +646,16 @@ open class IHMCBuildExtension(val project: Project)
childVersion += "-$integrationNumber"
closestVersion = matchVersionFromRepositories(groupId, artifactId, childVersion)
}
if (closestVersion.contains("NOT-FOUND") && isBranchBuild) // Try latest from branch
else // this was a bug for a long time where child builds could use an older snapshot with no warning
{
closestVersion = latestPOMCheckedVersionFromRepositories(groupId, artifactId, "SNAPSHOT-$branchName")
}
if (closestVersion.contains("NOT-FOUND")) // Try latest without branch
{
closestVersion = latestPOMCheckedVersionFromRepositories(groupId, artifactId, "SNAPSHOT")
if (closestVersion.contains("NOT-FOUND") && isBranchBuild) // Try latest from branch
{
closestVersion = latestPOMCheckedVersionFromRepositories(groupId, artifactId, "SNAPSHOT-$branchName")
}
if (closestVersion.contains("NOT-FOUND")) // Try latest without branch
{
closestVersion = latestPOMCheckedVersionFromRepositories(groupId, artifactId, "SNAPSHOT")
}
}
externalDependencyVersion = closestVersion
}
Expand Down Expand Up @@ -936,6 +939,8 @@ open class IHMCBuildExtension(val project: Project)

private fun latestPOMCheckedVersionFromRepositories(groupId: String, artifactId: String, versionMatcher: String): String
{
logInfo(logger, "Looking for latest version: $groupId:$artifactId:$versionMatcher")

var highestVersion = highestBuildNumberVersion(groupId, artifactId, versionMatcher)

if (highestVersion.contains("NOT-FOUND"))
Expand Down

0 comments on commit decbddc

Please sign in to comment.