build.gradle 1.6 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556
  1. /*
  2. * Copyright 2018, The Android Open Source Project
  3. *
  4. * Licensed under the Apache License, Version 2.0 (the "License");
  5. * you may not use this file except in compliance with the License.
  6. * You may obtain a copy of the License at
  7. *
  8. * http://www.apache.org/licenses/LICENSE-2.0
  9. *
  10. * Unless required by applicable law or agreed to in writing, software
  11. * distributed under the License is distributed on an "AS IS" BASIS,
  12. * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
  13. * See the License for the specific language governing permissions and
  14. * limitations under the License.
  15. */
  16. // Top-level build file where you can add configuration options common to all sub-projects/modules.
  17. buildscript {
  18. ext {
  19. version_core = '1.3.2'
  20. version_coroutine = "1.3.7"
  21. version_constraint_layout = '2.0.4'
  22. version_gradle = '4.1.1'
  23. version_kotlin = '1.4.21'
  24. version_lifecycle_extensions = '2.2.0'
  25. version_navigation = '2.3.2'
  26. version_room = '2.2.6'
  27. }
  28. repositories {
  29. google()
  30. jcenter()
  31. }
  32. dependencies {
  33. classpath "com.android.tools.build:gradle:${version_gradle}"
  34. classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$version_kotlin"
  35. classpath "androidx.navigation:navigation-safe-args-gradle-plugin:$version_navigation"
  36. // NOTE: Do not place your application dependencies here; they belong
  37. // in the individual module build.gradle files
  38. }
  39. }
  40. allprojects {
  41. repositories {
  42. google()
  43. jcenter()
  44. }
  45. }
  46. task clean(type: Delete) {
  47. delete rootProject.buildDir
  48. }