forked from google/android-fhir
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
42 lines (40 loc) · 1.18 KB
/
build.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
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
repositories {
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath(Plugins.androidGradlePlugin)
classpath(Plugins.kspGradlePlugin)
classpath(Plugins.benchmarkGradlePlugin)
classpath(Plugins.flankGradlePlugin)
classpath(Plugins.kotlinGradlePlugin)
classpath(Plugins.navSafeArgsGradlePlugin)
classpath(Plugins.rulerGradlePlugin)
}
}
allprojects {
repositories {
google()
mavenCentral()
maven(url = "https://oss.sonatype.org/content/repositories/snapshots")
gradlePluginPortal()
}
configureSpotless()
}
subprojects {
// We have some empty folders like the :contrib root folder, which Gradle recognizes as projects.
// Don't configure plugins for those folders.
if (project.buildFile.exists()) {
configureLicensee()
}
tasks.withType(Test::class.java).configureEach {
maxParallelForks = 1
if (project.providers.environmentVariable("GITHUB_ACTIONS").isPresent) {
// limit memory usage to avoid running out of memory in the docker container.
maxHeapSize = "512m"
}
}
}