Skip to content

Commit

Permalink
Resolve "Do not retrieve game-controller from bintray anymore"
Browse files Browse the repository at this point in the history
Closes #1585

See merge request main/Sumatra!1331

sumatra-commit: 59de72a490716834109500d9add663175d089179
  • Loading branch information
g3force authored and TIGERs GitLab committed Feb 23, 2021
1 parent c320c25 commit 9c4b48d
Showing 1 changed file with 1 addition and 27 deletions.
28 changes: 1 addition & 27 deletions modules/moduli-referee/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,16 +8,6 @@ plugins {
id 'sumatra.protobuf-conventions'
}

configurations {
gc
}

repositories {
maven {
url "https://dl.bintray.com/robocup-ssl/ssl-game-controller"
}
}

def osClassifier = {
def os = System.getProperty("os.name").toLowerCase()
if (os.contains("windows")) {
Expand All @@ -31,14 +21,6 @@ def osClassifier = {
}
}()

def osExt = {
def os = System.getProperty("os.name").toLowerCase()
if (os.contains("windows")) {
return "exe"
}
return ""
}()

dependencies {
implementation project(':common')
implementation project(':common-math')
Expand All @@ -60,13 +42,5 @@ dependencies {
testImplementation 'junit:junit:4.13'
testImplementation 'org.assertj:assertj-core:3.16.1'

gc "com.github.robocup-ssl:ssl-game-controller:v2.4.0:${osClassifier}@${osExt}"
runtimeOnly "com.github.TIGERs-Mannheim:ssl-game-controller-maven:2.6.2.1:${osClassifier}"
}

task copyGameControllerBinary(type: Copy) {
from configurations.gc.singleFile
into "${buildDir}/resources/main"
rename { "ssl-game-controller" }
}

processResources.finalizedBy(copyGameControllerBinary)

0 comments on commit 9c4b48d

Please sign in to comment.