forked from AnySoftKeyboard/AnySoftKeyboard
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
55 lines (48 loc) · 1.79 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
System.setProperty("file.encoding", "UTF-8")
buildscript {
repositories {
google()
mavenLocal()
jcenter()
mavenCentral()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url 'https://jitpack.io' }
maven { url "https://plugins.gradle.org/m2/" }
maven { url "https://dl.bintray.com/anysoftkeyboard/AnySoftKeyboard/" }
}
dependencies {
classpath 'com.android.tools.build:gradle:3.5.2'
classpath 'com.github.triplet.gradle:play-publisher:2.4.2'
classpath 'net.ltgt.gradle:gradle-errorprone-plugin:0.8.1'
classpath 'gradle.plugin.com.github.sherter.google-java-format:google-java-format-gradle-plugin:0.8'
classpath 'net.evendanan.autoversion:gradle-plugin:0.2.2'
}
}
apply plugin: 'net.evendanan.autoversion.simple'
autoVersioning {
enabled = rootProject.hasProperty("withAutoVersioning")
buildCounterEnvKey = "BUILD_COUNT_FOR_VERSION"
major = 1
minor = 10
buildCounterOffset = 1570/*adding to version. Should never change*/
patchOffset = -5170 /*decrementing due to minor, every minor/major bump, this should be decremented*/
}
apply plugin: 'com.github.sherter.google-java-format'
googleJavaFormat {
toolVersion = '1.7'
options style: 'AOSP'
}
allprojects {
repositories {
google()
mavenLocal()
mavenCentral()
maven { url "https://dl.bintray.com/anysoftkeyboard/AnySoftKeyboard/" }
jcenter()
maven { url 'https://oss.sonatype.org/content/repositories/snapshots/' }
maven { url "https://jitpack.io" }
}
}
apply from: "${rootDir}/gradle/emoji_generator.gradle"
apply from: "${rootDir}/gradle/root_all_projects_ext.gradle"
apply from: "${rootDir}/gradle/fdroid_yaml_output.gradle"