This repository has been archived by the owner on Nov 12, 2024. It is now read-only.
-
-
Notifications
You must be signed in to change notification settings - Fork 882
/
settings.gradle.kts
144 lines (126 loc) · 3.4 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
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
// Copyright 2024, Christopher Banes and the Tivi project contributors
// SPDX-License-Identifier: Apache-2.0
pluginManagement {
includeBuild("gradle/build-logic")
repositories {
google {
content {
includeGroupByRegex(".*google.*")
includeGroupByRegex(".*android.*")
}
}
mavenCentral()
gradlePluginPortal()
// 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/")
}
}
dependencyResolutionManagement {
repositories {
google {
content {
includeGroupByRegex(".*google.*")
includeGroupByRegex(".*android.*")
}
}
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("org.gradle.toolchains.foojay-resolver-convention") version "0.8.0"
}
val isCi = providers.environmentVariable("CI").isPresent
buildCache {
val remoteBuildCacheUrl = providers.gradleProperty("REMOTE_BUILD_CACHE_URL").orNull ?: return@buildCache
local {
isEnabled = !isCi
}
remote(HttpBuildCache::class) {
url = uri(remoteBuildCacheUrl)
isPush = isCi
println("Enabling remote build cache. URL: $url. Push enabled: $isPush")
credentials {
username = providers.gradleProperty("REMOTE_BUILD_CACHE_USERNAME").orNull
password = providers.gradleProperty("REMOTE_BUILD_CACHE_PASSWORD").orNull
}
}
}
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",
":core:performance",
":core:permissions",
":core:powercontroller",
":core:preferences",
":core:notifications:core",
":core:notifications:protos",
":common:ui:circuit",
":common:ui:resources",
":common:ui:compose",
":common:ui:screens",
":common:imageloading",
":data:db",
":data:db-sqldelight",
":data:legacy",
":data:models",
":data:test",
":data:anticipatedshows",
":data:episodes",
":data:followedshows",
":data:popularshows",
":data:recommendedshows",
":data:relatedshows",
":data:search",
":data:licenses",
":data:shows",
":data:showimages",
":data:traktauth",
":data:traktusers",
":data:trendingshows",
":data:watchedshows",
":api:trakt",
":api:tmdb",
":tasks",
":domain",
":shared:common",
":shared:qa",
":shared:prod",
":ui:anticipated",
":ui:developer:log",
":ui:developer:notifications",
":ui:developer:settings",
":ui:discover",
":ui:episode:details",
":ui:episode:track",
":ui:trending",
":ui:licenses",
":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:androidx:paging:compose",
)