-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
116 lines (101 loc) · 3.91 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
buildscript {
ext.kotlin_version = '1.9.0'
apply from: '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 classpathDeps.gradleBuildTools
classpath classpathDeps.kotlinGradlePlugin
classpath classpathDeps.dokkaGradlePlugin
//https://github.com/mannodermaus/android-junit5
classpath classpathDeps.junit5Plugin
classpath dependencyInjectionDeps.hilt
classpath staticAnalysisDeps.detektPlugin
classpath dependencyInjectionDeps.hiltPlugin
classpath 'com.github.ben-manes:gradle-versions-plugin:0.46.0'
}
}
plugins {
id 'com.github.ben-manes.versions' version '0.46.0'
id 'io.gitlab.arturbosch.detekt' version '1.23.1'
id 'org.jetbrains.dokka' version '1.8.20'
id 'com.google.devtools.ksp' version '1.9.0-1.0.12' apply false
id 'org.jetbrains.kotlin.android' version '1.9.0' 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/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()
}
}
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
}