-
Notifications
You must be signed in to change notification settings - Fork 184
/
build.gradle
73 lines (66 loc) · 2.42 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
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
buildscript {
// @formatter:off
ext.buildConfig = [
compileSdk : 32,
targetSdk : 32,
minSdk : 16,
buildTools : '31.0.0',
]
ext.versions = [
kotlin : '1.7.20',
androidx : '1.1.0',
material : '1.1.0',
gson : '2.8.6',
constraintlayout : '1.1.3',
sqlite : '3.40.0.0',
junit : '4.12',
mockito_kotlin : '2.0.0',
mockito_core : '2.23.4',
ktlint : '8.0.0',
dokka : '1.4.32'
]
ext.deps = [
androidx: [
annotations : "androidx.annotation:annotation:${versions.androidx}",
appCompat : "androidx.appcompat:appcompat:${versions.androidx}",
constraintLayout : "androidx.constraintlayout:constraintlayout:${versions.constraintlayout}",
preferences : "androidx.preference:preference:${versions.preference}"
],
kotlin: [
stdlib: [
jdk : "org.jetbrains.kotlin:kotlin-stdlib-jdk7:${versions.kotlin}"
]
],
gson : "com.google.code.gson:gson:${versions.gson}",
material : "com.google.android.material:material:${versions.material}",
sqlite : "org.xerial:sqlite-jdbc:${versions.sqlite}",
junit : "junit:junit:${versions.junit}",
mockito: [
core : "org.mockito:mockito-core:${versions.mockito_core}",
kotlin : "com.nhaarman.mockitokotlin2:mockito-kotlin:${versions.mockito_kotlin}"
]
]
repositories {
google()
mavenCentral()
}
dependencies {
classpath 'com.android.tools.build:gradle:7.3.1'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:${versions.kotlin}"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:${versions.dokka}"
classpath "io.github.gradle-nexus:publish-plugin:1.1.0"
}
}
plugins {
id("io.github.gradle-nexus.publish-plugin") version "1.1.0"
id("org.jetbrains.dokka") version "1.4.32"
id("org.jlleitschuh.gradle.ktlint") version "9.4.0"
}
allprojects {
repositories {
google()
mavenCentral()
}
}
apply plugin: 'io.github.gradle-nexus.publish-plugin'
apply from: rootProject.file('scripts/publish-root.gradle')