1import org.ajoberstar.grgit.Grgit 2 3buildscript { 4 ext { 5 coroutinesVersion = '1.6.2' 6 coreVersion = '1.6.0' 7 appcompatVersion = '1.3.1' 8 activityVersion = '1.3.1' 9 lifecycleVersion = '2.3.1' 10 composeVersion = '1.1.1' 11 kotlinVersion = '1.6.10' 12 daggerVersion = '2.38.1' 13 awsVersion = '2.8.3' 14 mockitoVersion = '3.12.4' 15 robolectricVersion = '4.6.1' 16 retrofitVersion = '2.9.0' 17 materialVersion = '1.4.0' 18 epoxyVersion = '4.6.4' 19 junitVersion = '4.13.2' 20 extJunitVersion = '1.1.3' 21 espressoVersion = '3.3.0' 22 startupVersion = '1.2.0-alpha01' 23 } 24 25 repositories { 26 google() 27 gradlePluginPortal() 28 } 29 dependencies { 30 classpath 'org.ajoberstar:grgit:2.3.0' 31 classpath 'com.android.tools.build:gradle:7.0.4' 32 classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion" 33 classpath "net.ltgt.gradle:gradle-errorprone-plugin:2.0.2" 34 classpath 'com.vanniktech:gradle-maven-publish-plugin:0.18.0' 35 classpath 'org.jetbrains.dokka:dokka-gradle-plugin:1.5.30' 36 } 37} 38 39allprojects { 40 repositories { 41 google() 42 mavenCentral() 43 maven { url "https://jitpack.io" } 44 } 45} 46 47ext { 48 git = Grgit.open(currentDir: project.rootDir) 49 gitSha = git.head().id 50 gitBranch = git.branch.current().name 51} 52 53task clean(type: Delete) { 54 delete rootProject.buildDir 55} 56