forked from daolq3012/Structure_Android
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
52 lines (46 loc) · 1.25 KB
/
build.gradle
File metadata and controls
52 lines (46 loc) · 1.25 KB
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.kotlin_version = '1.3.50'
repositories {
jcenter()
google()
maven { url 'https://maven.fabric.io/public' }
maven { url 'https://jitpack.io' }
maven { url "https://plugins.gradle.org/m2/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.0'
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "io.fabric.tools:gradle:1.28.1"
classpath "org.jlleitschuh.gradle:ktlint-gradle:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
}
}
plugins {
id("org.jlleitschuh.gradle.ktlint") version "8.2.0"
}
plugins {
id("io.gitlab.arturbosch.detekt") version "1.0.0-RC14"
}
allprojects {
repositories {
jcenter()
google()
}
}
// Define versions in a single place
ext {
// Sdk and tools
compileSdkVersion = 28
buildToolsVersion = '28.0.3'
minSdkVersion = 19
targetSdkVersion = 28
// Version code & name
versionCode = 1
versionName = '1.0.0'
versionCodeRelease = 1
versionNameRelease = '1.0.0'
}
apply from: 'dependencies.gradle'
apply plugin: 'kotlin'