-
Notifications
You must be signed in to change notification settings - Fork 2
/
Copy pathbuild.gradle
119 lines (103 loc) · 3.97 KB
/
build.gradle
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
buildscript {
apply from: 'gradle/ext.gradle'
repositories {
mavenCentral()
// Instead of using the google() repo function, specify the maven url instead. There is
// an issue with the hilt dependencies where there are extra dependencies that are pulled
// in via the gradle module file. Using the POM file as the source of truth fixes that
// issue. This is now being universally applied for all Google artifacts.
maven {
url 'https://maven.google.com/'
metadataSources {
//noinspection ForeignDelegate
mavenPom()
//noinspection ForeignDelegate
artifact()
//noinspection ForeignDelegate
ignoreGradleMetadataRedirection()
}
}
gradlePluginPortal()
}
dependencies {
classpath libs.classpathDeps.gradleBuildTools
classpath libs.classpathDeps.kotlinGradlePlugin
classpath libs.classpathDeps.dokkaGradlePlugin
//https://github.com/mannodermaus/android-junit5
classpath libs.classpathDeps.junit5Plugin
classpath libs.dependencyInjectionDeps.hilt
classpath libs.staticAnalysisDeps.detektPlugin
classpath libs.dependencyInjectionDeps.hiltPlugin
}
}
plugins {
alias libs.plugins.android.application apply false
alias libs.plugins.android.library apply false
alias libs.plugins.google.dagger.hilt apply false
alias libs.plugins.detect
alias libs.plugins.jetbrains.dokka
alias libs.plugins.google.ksp apply false
alias libs.plugins.jetbrains.kotlin.android apply false
alias(libs.plugins.compose.compiler) apply false
}
apply from: "$rootDir/detekt/detekt.gradle"
repositories {
mavenCentral()
// Instead of using the google() repo function, specify the maven url instead. There is
// an issue with the hilt dependencies where there are extra dependencies that are pulled
// in via the gradle module file. Using the POM file as the source of truth fixes that
// issue. This is now being universally applied for all Google artifacts.
maven {
url 'https://maven.google.com/'
metadataSources {
//noinspection ForeignDelegate
mavenPom()
//noinspection ForeignDelegate
artifact()
//noinspection ForeignDelegate
ignoreGradleMetadataRedirection()
}
}
gradlePluginPortal()
}
def rootDir = projectDir.absolutePath
allprojects {
apply from: "$rootDir/gradle/ext.gradle"
apply from: "$rootDir/detekt/detekt.gradle"
repositories {
mavenLocal()
// The Shuttle framework artifacts are hosted in Sonatype Nexus Maven Central.
maven {
url 'https://repo1.maven.org/maven2/com/grarcht/shuttle/'
metadataSources {
//noinspection ForeignDelegate
mavenPom()
//noinspection ForeignDelegate
artifact()
//noinspection ForeignDelegate
ignoreGradleMetadataRedirection()
}
}
google()
mavenCentral()
// Instead of using the google() repo function, specify the maven url instead. There is
// an issue with the hilt dependencies where there are extra dependencies that are pulled
// in via the gradle module file. Using the POM file as the source of truth fixes that
// issue. This is now being universally applied for all Google artifacts.
maven {
url 'https://maven.google.com/'
metadataSources {
//noinspection ForeignDelegate
mavenPom()
//noinspection ForeignDelegate
artifact()
//noinspection ForeignDelegate
ignoreGradleMetadataRedirection()
}
}
gradlePluginPortal()
}
}
tasks.register("clean", Delete) {
delete rootProject.layout.buildDirectory
}