-
Notifications
You must be signed in to change notification settings - Fork 91
/
build.gradle
65 lines (56 loc) · 1.84 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
buildscript {
ext {
ANDROID_PLUGIN_VERSION = '7.4.0'
BUTTERKNIFE_VERSION = '10.2.3'
KOTLIN_VERSION = '1.8.10'
// Run "./gradlew dependencyUpdates" to check for updates
VERSIONS_VERSION = '0.42.0'
KSP_VERSION = '1.8.10-1.0.9'
}
repositories {
google()
gradlePluginPortal()
mavenCentral()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
}
dependencies {
classpath "com.android.tools.build:gradle:$ANDROID_PLUGIN_VERSION"
classpath "com.jakewharton:butterknife-gradle-plugin:$BUTTERKNIFE_VERSION"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$KOTLIN_VERSION"
classpath "com.github.ben-manes:gradle-versions-plugin:$VERSIONS_VERSION"
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.14.2'
// Dokka is needed on classpath for vanniktech publish plugin
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.7.0"
}
}
plugins {
id "com.google.devtools.ksp" version "$KSP_VERSION"
}
apply plugin: "com.github.ben-manes.versions"
allprojects {
repositories {
google()
mavenCentral()
}
configurations.all {
exclude group: 'org.jetbrains.kotlin', module: 'kotlin-stdlib-jre7'
}
}
subprojects { project ->
apply from: "$rootDir/blessedDeps.gradle"
}
task clean(type: Delete) {
delete rootProject.buildDir
}
dependencyUpdates.resolutionStrategy {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'cr', 'm', 'preview'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}