jellyfin-androidx-media/build.gradle.kts

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)
}