RetroMusicPlayer/build.gradle

41 lines
1.1 KiB
Groovy
Raw Normal View History

2018-07-27 18:37:33 +05:30
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
2022-01-04 14:26:22 +05:30
ext {
2022-06-16 16:42:36 +05:30
lifecycle_version='2.5.0-rc02'
navigation_version = '2.5.0-rc02'
2022-05-26 15:06:50 +05:30
mdc_version = '1.7.0-alpha02'
2022-01-27 13:19:39 +05:30
preference_version = '1.2.0'
appcompat_version = '1.4.2'
2022-06-19 10:38:33 +05:30
core_version='1.8.0'
2022-01-04 14:26:22 +05:30
}
2021-12-18 11:58:25 +05:30
2018-07-27 18:37:33 +05:30
repositories {
mavenCentral()
2018-07-27 18:37:33 +05:30
google()
}
dependencies {
2022-05-26 19:45:39 +05:30
classpath 'com.android.tools.build:gradle:7.2.1'
2022-07-22 14:50:21 +08:00
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10"
2021-12-18 11:58:25 +05:30
classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$navigation_version"
2018-07-27 18:37:33 +05:30
}
}
2022-05-17 10:54:39 +05:30
plugins {
id "com.github.ben-manes.versions" version "0.42.0"
}
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)
}
tasks.named("dependencyUpdates").configure {
rejectVersionIf {
isNonStable(it.candidate.version)
}
}
task clean(type: Delete) {
2018-07-27 18:37:33 +05:30
delete rootProject.buildDir
}