-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
56 lines (46 loc) · 1.37 KB
/
build.gradle.kts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
import com.android.build.gradle.LibraryExtension
plugins {
id("io.github.gradle-nexus.publish-plugin") version "2.0.0"
}
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
classpath("com.android.tools.build:gradle:8.7.3")
classpath("org.jetbrains.kotlin:kotlin-gradle-plugin:1.9.10")
}
}
allprojects {
group = "org.jellyfin.media3"
version = createVersion()
repositories {
mavenCentral()
google()
}
// Set minSdk to 21 and force a specific NDK version
afterEvaluate {
val android = extensions.findByType(LibraryExtension::class.java)
if (android != null) {
android.defaultConfig.minSdk = 21
android.ndkVersion = "26.1.10909125"
}
}
}
// 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)
}