mirror of
https://github.com/jellyfin/jellyfin-androidx-media.git
synced 2024-11-27 08:20:23 +00:00
53 lines
1.2 KiB
Plaintext
53 lines
1.2 KiB
Plaintext
import com.android.build.gradle.LibraryExtension
|
|
|
|
plugins {
|
|
id("io.github.gradle-nexus.publish-plugin") version "1.3.0"
|
|
}
|
|
|
|
buildscript {
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
dependencies {
|
|
classpath("com.android.tools.build:gradle:7.4.2")
|
|
}
|
|
}
|
|
|
|
allprojects {
|
|
group = "org.jellyfin.exoplayer"
|
|
version = createVersion()
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
google()
|
|
}
|
|
|
|
// Force specific NDK version
|
|
afterEvaluate {
|
|
val android = extensions.findByType(LibraryExtension::class.java)
|
|
android?.ndkVersion = "21.4.7075529"
|
|
}
|
|
}
|
|
|
|
// Add Sonatype publishing repository
|
|
nexusPublishing {
|
|
repositories.sonatype {
|
|
nexusUrl.set(uri("https://s01.oss.sonatype.org/service/local/"))
|
|
snapshotRepositoryUrl.set(uri("https://s01.oss.sonatype.org/content/repositories/snapshots/"))
|
|
|
|
username.set(getProperty("ossrh.username"))
|
|
password.set(getProperty("ossrh.password"))
|
|
}
|
|
|
|
useStaging.set(project.provider { project.version.toString() != SNAPSHOT_VERSION })
|
|
}
|
|
|
|
tasks.wrapper {
|
|
distributionType = Wrapper.DistributionType.ALL
|
|
}
|
|
|
|
tasks.create<Delete>("clean") {
|
|
delete(rootProject.buildDir)
|
|
}
|