Skip to content

Commit

Permalink
Skip building Yospace connector on JitPack (#22)
Browse files Browse the repository at this point in the history
  • Loading branch information
MattiasBuelens authored Jun 19, 2024
1 parent ea876e5 commit 0b5d9e1
Showing 1 changed file with 17 additions and 7 deletions.
24 changes: 17 additions & 7 deletions settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,27 +6,37 @@ pluginManagement {
}
}

// https://jitpack.io/docs/BUILDING/#build-environment
def isJitPack = System.getenv("JITPACK") == "true"

dependencyResolutionManagement {
repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
repositories {
google()
mavenCentral()
maven { url 'https://maven.theoplayer.com/releases/' }
maven { url 'https://raw.githubusercontent.com/NielsenDigitalSDK/nielsenappsdk-android/master/' }
maven {
url 'https://yospacerepo.jfrog.io/yospacerepo/android-sdk'
credentials {
username System.getenv("YOSPACE_USERNAME")
password System.getenv("YOSPACE_PASSWORD")
if (!isJitPack) {
// JitPack doesn't have credentials for the Yospace Maven repository.
maven {
url 'https://yospacerepo.jfrog.io/yospacerepo/android-sdk'
credentials {
username System.getenv("YOSPACE_USERNAME")
password System.getenv("YOSPACE_PASSWORD")
}
}
}
}
}

rootProject.name = "THEOplayer Connector"
include ':app'
include ':connectors:analytics:comscore'
include ':connectors:analytics:conviva'
include ':connectors:analytics:nielsen'
include ':connectors:mediasession'
include ':connectors:yospace'

if (!isJitPack) {
// JitPack can't build the Yospace connector.
include ':app'
include ':connectors:yospace'
}

0 comments on commit 0b5d9e1

Please sign in to comment.