jellyfin-sdk-kotlin/build.gradle.kts

68 lines
1.4 KiB
Plaintext
Raw Normal View History

2020-05-02 08:56:19 +00:00
plugins {
alias(libs.plugins.binarycompatibilityvalidator)
2021-08-19 13:33:37 +00:00
alias(libs.plugins.detekt)
alias(libs.plugins.dokka)
alias(libs.plugins.download)
2022-04-30 12:02:00 +00:00
alias(libs.plugins.kotest)
alias(libs.plugins.nexuspublish)
2020-05-02 08:56:19 +00:00
}
// Versioning
allprojects {
group = "org.jellyfin.sdk"
version = createVersion()
repositories {
mavenCentral()
google()
}
2020-05-02 08:56:19 +00:00
}
2019-01-24 15:05:32 +00:00
buildscript {
repositories {
mavenCentral()
google()
}
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
}
}
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
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")
basePath = rootDir.absolutePath
reports {
2024-02-04 11:46:37 +00:00
sarif.required.set(true)
}
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
}