forked from dariuszseweryn/RxAndroidBle
-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle
83 lines (70 loc) · 2.25 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
apply plugin: "io.github.gradle-nexus.publish-plugin"
apply from: rootProject.file('gradle/gradle-mvn-config.gradle')
apply from: 'dependencies.gradle'
apply from: 'checkstyle.gradle'
buildscript {
ext.kotlinVersion = '1.8.21'
ext.shadowPluginVersion = '8.1.1'
repositories {
maven {
url "https://plugins.gradle.org/m2/"
}
google()
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.7.1'
classpath 'com.github.ben-manes:gradle-versions-plugin:0.21.0'
classpath 'gradle.plugin.org.codehaus.groovy:groovy-android-gradle-plugin:3.0.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion"
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
classpath "com.github.johnrengelman:shadow:$shadowPluginVersion"
}
}
allprojects {
apply plugin: 'com.github.ben-manes.versions'
repositories {
google()
maven {
url "https://plugins.gradle.org/m2/"
}
maven { url 'https://jitpack.io' }
mavenCentral()
}
buildscript {
repositories {
google()
}
}
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')
}
}
}
}
gradle.projectsEvaluated {
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation"
}
tasks.withType(Test).tap {
configureEach {
useJUnitPlatform()
testLogging {
exceptionFormat "full"
events "started", "skipped", "passed", "failed"
showStandardStreams true
}
}
}
}
}
tasks.register('clean', Delete) {
delete rootProject.getLayout().getBuildDirectory()
}