-
Notifications
You must be signed in to change notification settings - Fork 62
/
Copy pathbuild.gradle.kts
51 lines (46 loc) · 1.6 KB
/
build.gradle.kts
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
/*
* Copyright (c) 2022(-0001) STMicroelectronics.
* All rights reserved.
* This software is licensed under terms that can be found in the LICENSE file in
* the root directory of this software component.
* If no LICENSE file comes with this software, it is provided AS-IS.
*/
import com.github.benmanes.gradle.versions.updates.DependencyUpdatesTask
buildscript {
extra.apply {
// Define versions in a single place
set("stMinSdk", 26)
set("stCompileSdk", 35)
set("stTargetSdk", 35)
}
repositories {
google()
mavenCentral()
}
}
plugins {
alias(libs.plugins.androidApplication) apply false
alias(libs.plugins.androidLibrary) apply false
alias(libs.plugins.benManes) apply true
alias(libs.plugins.composeCompiler) apply false
alias(libs.plugins.arturboschDetekt) apply false
alias(libs.plugins.googleHilt) apply false
alias(libs.plugins.kotlinAndroid) apply false
alias(libs.plugins.kotlinSerialization) apply false
alias(libs.plugins.devtoolsKsp) apply false
alias(libs.plugins.jlleitschuhKtlint) apply false
alias(libs.plugins.littlerobotsVersionCatalogUpdate) apply true
alias(libs.plugins.appswithloveLoco) apply false
alias(libs.plugins.androidxSafeargs) apply false
}
fun isNonStable(version: String): Boolean {
return version.contains("alpha", true) ||
version.contains("beta", true) ||
version.contains("dev", true)
}
// https://github.com/ben-manes/gradle-versions-plugin
tasks.withType<DependencyUpdatesTask> {
rejectVersionIf {
isNonStable(candidate.version)
}
}