Files
AndroidJetpack/countdown-timer-compose/build.gradle
T
coco 723ce1af5c a
2026-07-03 15:12:48 +08:00

63 lines
1.7 KiB
Groovy

/*
* Copyright 2020 The Android Open Source Project
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
* You may obtain a copy of the License at
*
* http://www.apache.org/licenses/LICENSE-2.0
*
* Unless required by applicable law or agreed to in writing, software
* distributed under the License is distributed on an "AS IS" BASIS,
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
* See the License for the specific language governing permissions and
* limitations under the License.
*/
buildscript {
ext {
mobius_version = '1.5.3'
room_version = '2.3.0-beta02'
room_coroutines_version = '2.1.0-alpha04'
hilt_version = '2.40.1'
}
ext.kotlin_version = '1.6.10'
ext.compose_version = '1.1.1'
ext.coroutines_version = '1.4.2'
repositories {
google()
jcenter()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "com.google.dagger:hilt-android-gradle-plugin:$hilt_version"
}
}
plugins {
id 'com.diffplug.spotless' version '5.7.0'
}
subprojects {
repositories {
google()
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots/" }
}
apply plugin: 'com.diffplug.spotless'
spotless {
kotlin {
target '**/*.kt'
targetExclude("$buildDir/**/*.kt")
targetExclude('bin/**/*.kt')
ktlint("0.40.0")
licenseHeaderFile rootProject.file('spotless/copyright.kt')
}
}
}