Skip to content

Commit

Permalink
add bandages (#10)
Browse files Browse the repository at this point in the history
add bandages
  • Loading branch information
stone-wall authored Oct 4, 2019
2 parents b59c0f5 + 094e096 commit 55d76ef
Showing 1 changed file with 10 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -64,6 +64,13 @@ class StrapController() : Controller() {
}
}

private fun addStaticDependencies() {
//bandage for static artifacts
newBootstrap.artifacts.addAll(bootstrap.artifacts.filter {
artifact -> artifact.path.contains("nexus.thatgamerblue.com")
|| artifact.path.contains("natives") }.toList())
}


private fun buildBootstrap(dir: File) {
newBootstrap.launcherJvm11Arguments = bootstrap.launcherJvm11Arguments
Expand All @@ -78,7 +85,6 @@ class StrapController() : Controller() {
processDependencyURL(it.path, it)
Bootstrap.validationQueue.add(it)
}
addBuildArtifacts(dir)
}


Expand Down Expand Up @@ -142,6 +148,9 @@ class StrapController() : Controller() {

if (projectVersion.isNotEmpty()) {
buildBootstrap(dir)
addStaticDependencies()
addBuildArtifacts(dir)
completeStrapping()
newBootstrap.projectVersionProperty.value = projectVersion
newBootstrap.buildCommitProperty.value = head.toString()

Expand Down Expand Up @@ -222,7 +231,6 @@ class StrapController() : Controller() {
}
logger.info { "found artifact $s" }
}
completeStrapping()
}

private fun showErrorMessage(e: Exception) {
Expand Down

0 comments on commit 55d76ef

Please sign in to comment.