-
-
Notifications
You must be signed in to change notification settings - Fork 47
/
Copy pathbuild.gradle.kts
69 lines (55 loc) · 1.84 KB
/
build.gradle.kts
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
import com.aliucord.gradle.AliucordExtension
import com.android.build.gradle.BaseExtension
buildscript {
repositories {
google()
mavenCentral()
maven("https://jitpack.io")
maven("https://maven.aliucord.com/snapshots")
}
dependencies {
classpath("com.github.Aliucord:gradle:main-SNAPSHOT") {
exclude("com.github.js6pak", "jadb")
}
classpath("com.aliucord:jadb:1.2.1-SNAPSHOT")
classpath("com.android.tools.build:gradle:7.0.4")
}
}
allprojects {
repositories {
google()
mavenCentral()
maven("https://maven.aliucord.com/snapshots")
}
}
fun Project.aliucord(configuration: AliucordExtension.() -> Unit) = extensions.getByName<AliucordExtension>("aliucord").configuration()
fun Project.android(configuration: BaseExtension.() -> Unit) = extensions.getByName<BaseExtension>("android").configuration()
subprojects {
apply(plugin = "com.android.library")
apply(plugin = "com.aliucord.gradle")
aliucord {
author("mantikafasi", 287555395151593473)
updateUrl.set("https://raw.githubusercontent.com/mantikafasi/AliucordPlugins/builds/updater.json")
buildUrl.set("https://raw.githubusercontent.com/mantikafasi/AliucordPlugins/builds/%s.zip")
}
android {
compileSdkVersion(30)
defaultConfig {
minSdk = 24
targetSdk = 30
}
compileOptions {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = JavaVersion.VERSION_11
}
}
dependencies {
val discord by configurations
val compileOnly by configurations
discord("com.discord:discord:aliucord-SNAPSHOT")
compileOnly("com.aliucord:Aliucord:main-SNAPSHOT")
}
}
task<Delete>("clean") {
delete(rootProject.buildDir)
}