-
Notifications
You must be signed in to change notification settings - Fork 8
/
Copy pathbuild.gradle
52 lines (44 loc) · 1.37 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
apply plugin: "com.github.ben-manes.versions"
apply plugin: "org.ajoberstar.grgit"
apply plugin: 'org.jetbrains.dokka'
buildscript {
ext.kotlin_version = '1.9.25'
ext.libwebrtc_version = '132.6834.5.0'
ext.dokka_version = '1.8.10'
repositories {
google()
gradlePluginPortal()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.5.0'
classpath 'com.github.dcendents:android-maven-gradle-plugin:2.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${kotlin_version}"
classpath 'org.ajoberstar.grgit:grgit-gradle:5.2.0'
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${dokka_version}"
classpath "com.github.ben-manes:gradle-versions-plugin:0.46.0"
classpath "org.jlleitschuh.gradle:ktlint-gradle:11.3.1"
}
}
allprojects {
repositories {
google()
mavenCentral()
maven { url 'https://jitpack.io' }
}
}
task clean(type: Delete) {
delete rootProject.buildDir
}
dependencyUpdates.resolutionStrategy = {
componentSelection { rules ->
rules.all { ComponentSelection selection ->
boolean rejected = ['alpha', 'beta', 'rc', 'M'].any { qualifier ->
selection.candidate.version ==~ /(?i).*[.-]${qualifier}[.\d-]*/
}
if (rejected) {
selection.reject('Release candidate')
}
}
}
}