mirror of
https://github.com/jellyfin/jellyfin-sdk-kotlin.git
synced 2024-11-23 13:59:42 +00:00
5a6b9496a9
Prevents testutils (and potential future projects) from being published, also moves publishing config to AFTER the kotlin block to fix jellyfin-core-android POM and jellyfin-core Dokka
57 lines
1.3 KiB
Plaintext
57 lines
1.3 KiB
Plaintext
plugins {
|
|
alias(libs.plugins.nexuspublish)
|
|
alias(libs.plugins.detekt)
|
|
alias(libs.plugins.dokka)
|
|
alias(libs.plugins.binarycompatibilityvalidator)
|
|
}
|
|
|
|
// Versioning
|
|
allprojects {
|
|
group = "org.jellyfin.sdk"
|
|
version = createVersion()
|
|
|
|
// Add default dependency repositories
|
|
repositories.defaultRepositories()
|
|
}
|
|
|
|
buildscript {
|
|
repositories.defaultRepositories()
|
|
|
|
dependencies {
|
|
classpath(libs.android.gradle)
|
|
classpath(libs.kotlin.gradle)
|
|
}
|
|
}
|
|
|
|
// 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"))
|
|
}
|
|
|
|
apiValidation {
|
|
// Ignore generator / samples / other non jellyfin-x modules
|
|
ignoredProjects.addAll(subprojects.map { it.name }.filter { !it.startsWith("jellyfin-") })
|
|
}
|
|
|
|
subprojects {
|
|
// Enable required plugins
|
|
apply<io.gitlab.arturbosch.detekt.DetektPlugin>()
|
|
apply<org.jetbrains.dokka.gradle.DokkaPlugin>()
|
|
|
|
// Detekt linting
|
|
detekt {
|
|
buildUponDefaultConfig = true
|
|
ignoreFailures = true
|
|
config = files("$rootDir/detekt.yaml")
|
|
basePath = rootDir.absolutePath
|
|
|
|
reports {
|
|
sarif.enabled = true
|
|
}
|
|
}
|
|
}
|