forked from chrisbanes/tivi
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsettings.gradle.kts
128 lines (111 loc) · 3.02 KB
/
settings.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
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
// Copyright 2023, Christopher Banes and the Tivi project contributors
// SPDX-License-Identifier: Apache-2.0
pluginManagement {
includeBuild("gradle/build-logic")
repositories {
gradlePluginPortal()
google()
mavenCentral()
}
}
dependencyResolutionManagement {
repositories {
google()
mavenCentral()
mavenLocal()
// Prerelease versions of Compose Multiplatform
maven("https://maven.pkg.jetbrains.space/public/p/compose/dev")
// Used for snapshots if needed
// maven("https://oss.sonatype.org/content/repositories/snapshots/")
// maven("https://s01.oss.sonatype.org/content/repositories/snapshots/")
}
}
plugins {
id("com.gradle.enterprise") version "3.14.1"
}
gradleEnterprise {
buildScan {
termsOfServiceUrl = "https://gradle.com/terms-of-service"
termsOfServiceAgree = "yes"
if (System.getenv().containsKey("CI")) {
// Always publish on CI
publishAlways()
}
}
}
buildCache {
val remoteBuildCacheUrl = extra["REMOTE_BUILD_CACHE_URL"] ?: return@buildCache
val isCi = System.getenv().containsKey("CI")
local {
isEnabled = !isCi
}
remote(HttpBuildCache::class) {
url = uri(remoteBuildCacheUrl)
isPush = isCi
println("Enabling remote build cache. URL: $url. Push enabled: $isPush")
credentials {
username = extra["REMOTE_BUILD_CACHE_USERNAME"]?.toString()
password = extra["REMOTE_BUILD_CACHE_PASSWORD"]?.toString()
}
}
}
enableFeaturePreview("TYPESAFE_PROJECT_ACCESSORS")
// https://docs.gradle.org/7.6/userguide/configuration_cache.html#config_cache:stable
enableFeaturePreview("STABLE_CONFIGURATION_CACHE")
rootProject.name = "tivi"
include(
":core:analytics",
":core:base",
":core:logging:api",
":core:logging:implementation",
":core:performance",
":core:powercontroller",
":core:preferences",
":common:ui:circuit-overlay",
":common:ui:resources:fonts",
":common:ui:resources:strings",
":common:ui:compose",
":common:ui:screens",
":common:imageloading",
":data:db",
":data:db-sqldelight",
":data:legacy",
":data:models",
":data:test",
":data:episodes",
":data:followedshows",
":data:popularshows",
":data:recommendedshows",
":data:relatedshows",
":data:search",
":data:shows",
":data:showimages",
":data:traktauth",
":data:traktusers",
":data:trendingshows",
":data:watchedshows",
":api:trakt",
":api:tmdb",
":tasks",
":domain",
":shared",
":ui:discover",
":ui:episode:details",
":ui:episode:track",
":ui:trending",
":ui:popular",
":ui:recommended",
":ui:search",
":ui:show:details",
":ui:show:seasons",
":ui:settings",
":ui:library",
":ui:account",
":ui:upnext",
":ui:root",
":android-app:app",
":android-app:benchmark",
":android-app:common-test",
":desktop-app",
":thirdparty:swipe",
)