forked from jellyfin/jellyfin-androidtv
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
60 lines (54 loc) · 1.25 KB
/
build.gradle.kts
File metadata and controls
60 lines (54 loc) · 1.25 KB
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
57
58
59
60
buildscript {
repositories {
mavenCentral()
google()
}
dependencies {
val kotlinVersion = getProperty("kotlin.version")
classpath("com.android.tools.build:gradle:4.2.1")
classpath(kotlin("gradle-plugin", kotlinVersion))
classpath(kotlin("serialization", kotlinVersion))
}
}
allprojects {
// Dependencies
repositories {
mavenCentral()
google()
// Jellyfin SDK
mavenLocal {
content {
includeVersionByRegex("org.jellyfin.sdk", ".*", "latest-SNAPSHOT")
}
}
maven("https://s01.oss.sonatype.org/content/repositories/snapshots/") {
content {
includeVersionByRegex("org.jellyfin.sdk", ".*", "master-SNAPSHOT")
includeVersionByRegex("org.jellyfin.sdk", ".*", "openapi-unstable-SNAPSHOT")
}
}
// Jellyfin apiclient
maven("https://jitpack.io") {
content {
// Only allow legacy apiclient
includeVersionByRegex("com.github.jellyfin.jellyfin-sdk-kotlin", ".*", "v0.7.10")
}
}
}
}
plugins {
id("io.gitlab.arturbosch.detekt").version("1.17.1")
}
// Detekt configuration
subprojects {
plugins.apply("io.gitlab.arturbosch.detekt")
detekt {
buildUponDefaultConfig = true
ignoreFailures = true
config = files("$rootDir/detekt.yml")
basePath = rootDir.absolutePath
reports {
sarif.enabled = true
}
}
}