-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
63 lines (56 loc) · 1.73 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
buildscript {
ext.kotlin_version = '1.9.22'
ext.ausweisapp_version = '2.1.1'
ext.sdkwrapper_version = "$ausweisapp_version.0"
repositories {
google()
maven {
url "https://plugins.gradle.org/m2/"
}
mavenCentral()
gradlePluginPortal()
}
dependencies {
classpath 'com.android.tools.build:gradle:8.2.2'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jmailen.gradle:kotlinter-gradle:4.2.0"
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:2.7.7"
classpath 'com.github.ben-manes:gradle-versions-plugin:+'
}
}
plugins {
id("org.sonarqube") version "4.4.1.3373"
id("java")
}
version = sdkwrapper_version
def isNonStable = { String version ->
def stableKeyword = ['RELEASE', 'FINAL', 'GA'].any { it -> version.toUpperCase().contains(it) }
def regex = /^[0-9,.v-]+(-r)?$/
return !stableKeyword && !(version ==~ regex)
}
allprojects {
repositories {
google()
mavenCentral()
maven {
url "https://repo.govkg.de/repository/maven-public"
}
maven { url "$project.rootDir/ausweisapp" }
}
apply plugin: com.github.benmanes.gradle.versions.VersionsPlugin
tasks.named("dependencyUpdates").configure {
checkForGradleUpdate = false
rejectVersionIf {
isNonStable(it.candidate.version) && !isNonStable(it.currentVersion)
}
}
}
task tarball(type: Tar) {
into ('/') {
from rootDir
include '**'
exclude ('**/build/**', 'tester', '.reviewboardrc', '.gradle', '.idea', 'jenkins', '**/*.aar')
}
destinationDirectory = file('build/tar')
compression = Compression.GZIP
}