mirror of
https://github.com/jellyfin/jellyfin-android.git
synced 2026-10-22 07:41:58 +02:00
Add build option to switch between releases, snapshots, unstable snapshots and local versions of the SDK Co-authored-by: Maxr1998 <max.rumpf1998@gmail.com>
41 lines
1.2 KiB
Kotlin
41 lines
1.2 KiB
Kotlin
// Top-level build file where you can add configuration options common to all sub-projects/modules.
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
dependencies {
|
|
val kotlinVersion: String by project
|
|
classpath("com.android.tools.build:gradle:4.2.1")
|
|
classpath(kotlin("gradle-plugin", kotlinVersion))
|
|
classpath("de.mannodermaus.gradle.plugins:android-junit5:1.7.1.1")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
mavenLocal {
|
|
content {
|
|
includeVersionByRegex(Dependencies.Groups.jellyfin, ".*", Dependencies.Versions.jellyfinSdkLocal)
|
|
}
|
|
}
|
|
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
|
|
content {
|
|
includeVersionByRegex(Dependencies.Groups.jellyfin, ".*", Dependencies.Versions.jellyfinSdkSnapshot)
|
|
includeVersionByRegex(Dependencies.Groups.jellyfin, ".*", Dependencies.Versions.jellyfinSdkSnapshotUnstable)
|
|
}
|
|
}
|
|
}
|
|
}
|
|
|
|
tasks.wrapper {
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
}
|
|
|
|
tasks.create<Delete>("clean") {
|
|
delete(rootProject.buildDir)
|
|
}
|