forked from BiliRoamingX/BiliRoamingX
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
30 lines (28 loc) · 938 Bytes
/
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
plugins {
alias(libs.plugins.kotlin.jvm) apply false
alias(libs.plugins.kotlin.android) apply false
alias(libs.plugins.android.application) apply false
alias(libs.plugins.android.library) apply false
}
tasks.register<Delete>("clean") {
group = "build"
delete(layout.buildDirectory)
}
tasks.register<Sync>("dist") {
group = "build"
dependsOn(":integrations:app:assembleRelease")
dependsOn(":patches:dist")
from(project(":integrations:app").layout.buildDirectory.dir("outputs/apk/release")) {
include("*-$version.apk")
}
from(project(":integrations:app").layout.buildDirectory.dir("outputs/mapping/release")) {
include("mapping.txt")
}
from(project(":patches").layout.buildDirectory.dir("libs")) {
include("*-$version.jar")
}
from(project(":patches").layout.projectDirectory) {
include("patches.json")
}
into(layout.buildDirectory)
}