-
Notifications
You must be signed in to change notification settings - Fork 27
/
build.gradle
58 lines (52 loc) · 1.78 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
import org.gradle.internal.jvm.Jvm
// Top-level build file where you can add configuration options common to all sub-projects/modules.
buildscript {
ext {
compileSdk = 34
targetSdk = 34
minSdk = 21
protobufVersion = "4.26.1"
appcompatVersion = "1.6.1"
androidxTestJunitVersion = "1.1.5"
sqliteVersion = "2.4.0"
kotlin_version = '2.1.0'
}
repositories {
google()
mavenCentral()
maven {
url "https://plugins.gradle.org/m2/"
}
}
dependencies {
classpath "com.android.tools.build:gradle:8.7.3"
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.kotlin:kotlin-android-extensions:$kotlin_version"
// NOTE: Do not place your application dependencies here; they belong
// in the individual module build.gradle files
classpath 'com.vanniktech:gradle-maven-publish-plugin:0.30.0'
}
}
allprojects {
repositories {
google()
mavenCentral()
}
}
tasks.register('clean', Delete) {
delete rootProject.layout.buildDirectory
}
ext {
jvmVersion = Jvm.current().javaVersion.majorVersion
if (jvmVersion != "17" && jvmVersion != "21") {
println "\n\n\n"
println "**************************************************************************************************************"
println "\n\n\n"
println "ERROR: Anki-Android-Backend builds with JVM version 17 or 21."
println " Incompatible major version detected: '" + jvmVersion + "'"
println "\n\n\n"
println "**************************************************************************************************************"
println "\n\n\n"
System.exit(1)
}
}