2020-05-02 08:56:19 +00:00
|
|
|
plugins {
|
2022-09-30 15:32:49 +00:00
|
|
|
alias(libs.plugins.binarycompatibilityvalidator)
|
2021-08-19 13:33:37 +00:00
|
|
|
alias(libs.plugins.detekt)
|
|
|
|
alias(libs.plugins.dokka)
|
2022-09-30 15:32:49 +00:00
|
|
|
alias(libs.plugins.download)
|
2022-04-30 12:02:00 +00:00
|
|
|
alias(libs.plugins.kotest)
|
2022-09-30 15:32:49 +00:00
|
|
|
alias(libs.plugins.nexuspublish)
|
2020-05-02 08:56:19 +00:00
|
|
|
}
|
|
|
|
|
|
|
|
// Versioning
|
|
|
|
allprojects {
|
2021-03-19 18:18:00 +00:00
|
|
|
group = "org.jellyfin.sdk"
|
2021-05-28 20:15:58 +00:00
|
|
|
version = createVersion()
|
2021-04-03 08:41:21 +00:00
|
|
|
|
2022-04-28 20:00:36 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
2020-05-02 08:56:19 +00:00
|
|
|
}
|
|
|
|
|
2019-01-24 15:05:32 +00:00
|
|
|
buildscript {
|
2022-04-28 20:00:36 +00:00
|
|
|
repositories {
|
|
|
|
mavenCentral()
|
|
|
|
google()
|
|
|
|
}
|
2016-02-03 17:09:03 +00:00
|
|
|
|
2020-04-30 14:54:31 +00:00
|
|
|
dependencies {
|
2021-08-19 13:33:37 +00:00
|
|
|
classpath(libs.android.gradle)
|
|
|
|
classpath(libs.kotlin.gradle)
|
2020-04-30 14:54:31 +00:00
|
|
|
}
|
2016-02-03 17:09:03 +00:00
|
|
|
}
|
|
|
|
|
2021-03-10 21:47:18 +00:00
|
|
|
// 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/"))
|
|
|
|
|
2021-03-12 21:50:24 +00:00
|
|
|
username.set(getProperty("ossrh.username"))
|
|
|
|
password.set(getProperty("ossrh.password"))
|
2021-03-10 21:47:18 +00:00
|
|
|
}
|
2020-05-02 08:56:19 +00:00
|
|
|
|
2021-03-15 20:54:20 +00:00
|
|
|
apiValidation {
|
|
|
|
// Ignore generator / samples / other non jellyfin-x modules
|
|
|
|
ignoredProjects.addAll(subprojects.map { it.name }.filter { !it.startsWith("jellyfin-") })
|
|
|
|
}
|
|
|
|
|
2021-03-10 21:47:18 +00:00
|
|
|
subprojects {
|
|
|
|
// Enable required plugins
|
|
|
|
apply<io.gitlab.arturbosch.detekt.DetektPlugin>()
|
2022-04-30 12:02:00 +00:00
|
|
|
apply<io.kotest.framework.multiplatform.gradle.KotestMultiplatformCompilerGradlePlugin>()
|
2021-03-10 21:47:18 +00:00
|
|
|
|
|
|
|
// Detekt linting
|
2020-06-01 14:48:57 +00:00
|
|
|
detekt {
|
|
|
|
buildUponDefaultConfig = true
|
2020-06-01 14:51:28 +00:00
|
|
|
ignoreFailures = true
|
2024-02-04 11:46:37 +00:00
|
|
|
config.setFrom("$rootDir/detekt.yaml")
|
2021-04-17 07:40:41 +00:00
|
|
|
basePath = rootDir.absolutePath
|
|
|
|
|
|
|
|
reports {
|
2024-02-04 11:46:37 +00:00
|
|
|
sarif.required.set(true)
|
2021-04-17 07:40:41 +00:00
|
|
|
}
|
2020-06-01 14:48:57 +00:00
|
|
|
}
|
2022-04-30 12:02:00 +00:00
|
|
|
|
|
|
|
tasks.withType<Test> {
|
|
|
|
useJUnitPlatform()
|
|
|
|
}
|
2020-05-02 08:56:19 +00:00
|
|
|
}
|