-
Notifications
You must be signed in to change notification settings - Fork 67
/
build.gradle
52 lines (46 loc) · 1.4 KB
/
build.gradle
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
52
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext.versions = [
minSdk: 23,
compileSdk: 34,
kotlin: '1.9.10',
composeUi: '1.5.2',
composeCompiler: '1.5.3',
composeUiMaterial3: '1.1.2',
activityCompose: '1.7.2',
appCompat: '1.6.1',
testParamInjector: '1.12',
recyclerView: '1.3.1',
ktx: '1.12.0',
paparazzi: '1.3.1',
roborazzi: '1.7.0-alpha-4',
]
repositories {
google()
mavenCentral()
}
dependencies {
classpath "com.android.tools.build:gradle:8.1.2"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$versions.kotlin"
classpath "com.vanniktech:gradle-maven-publish-plugin:0.25.3"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:1.9.0"
classpath "app.cash.paparazzi:paparazzi-gradle-plugin:$versions.paparazzi"
classpath "io.github.takahirom.roborazzi:roborazzi-gradle-plugin:$versions.roborazzi"
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.register('clean', Delete) {
delete rootProject.buildDir
}
// Used on CI to prevent publishing of non-snapshot versions.
tasks.register("throwIfVersionIsNotSnapshot") {
def libraryVersion = project.findProperty("VERSION_NAME") as String
if (!libraryVersion.endsWith("SNAPSHOT")) {
throw IllegalStateException("Project isn't using a snapshot version = $libraryVersion")
}
}