-
Notifications
You must be signed in to change notification settings - Fork 20
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
59 lines (53 loc) · 1.99 KB
/
Copy pathbuild.gradle.kts
File metadata and controls
59 lines (53 loc) · 1.99 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
/*
* Unless explicitly stated otherwise all files in this repository are licensed under the Apache License Version 2.0.
* This product includes software developed at Datadog (https://www.datadoghq.com/).
* Copyright 2020-Present Datadog, Inc.
*/
buildscript {
repositories {
// Magic Mirror Depot proxy (only set in CI via `.gitlab-ci.yml`).
listOf("gradlePluginProxy", "mavenRepositoryProxy")
.mapNotNull { providers.gradleProperty(it).orNull?.takeIf { url -> url.isNotBlank() } }
.forEach { url -> maven { setUrl(url) } }
google()
mavenCentral()
gradlePluginPortal()
mavenLocal()
}
dependencies {
// Uncomment to use the samples
// classpath(libs.datadogPluginGradle)
}
}
plugins {
alias(libs.plugins.kotlinPlugin23) apply false
alias(libs.plugins.dokkaJavadocPlugin) apply false
alias(libs.plugins.androidApplicationPlugin) apply false
alias(libs.plugins.androidLibraryPlugin) apply false
alias(libs.plugins.versionsPluginGradle) apply false
alias(libs.plugins.mavenPublishPlugin) apply false
}
allprojects {
repositories {
// Magic Mirror Depot proxy (only set in CI via `.gitlab-ci.yml`).
listOf("gradlePluginProxy", "mavenRepositoryProxy")
.mapNotNull { providers.gradleProperty(it).orNull?.takeIf { url -> url.isNotBlank() } }
.forEach { url -> maven(url) }
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://central.sonatype.com/repository/maven-snapshots/")
}
}
tasks.register<Delete>("clean") {
delete(rootProject.layout.buildDirectory)
}
// Empty task defined by one of our CI pipeline which does not apply here.
tasks.register("checkGeneratedFiles") {
childProjects.forEach { (name, _) ->
if (name.startsWith("dd-sdk-android")) {
dependsOn(":$name:checkTransitiveDependenciesList")
dependsOn(":$name:checkCompilerMetadataChanges")
}
}
}