-
Notifications
You must be signed in to change notification settings - Fork 76
/
build.gradle
69 lines (56 loc) · 2.39 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
59
60
61
62
63
64
65
66
67
68
69
plugins {
id("com.android.application") version "8.1.0" apply false
id("com.android.library") version "8.1.0" apply false
id("org.jetbrains.kotlin.android") version "1.9.10" apply false
id 'com.google.devtools.ksp' version '1.9.10-1.0.13' apply false
}
tasks.register('clean', Delete) {
delete rootProject.buildFile
}
def needReplaceLocal = true
if (needReplaceLocal) {
allprojects {
configurations.configureEach {
resolutionStrategy {
dependencySubstitution {
substitute module('com.github.penfeizhou.android.animation:frameanimation') using project(":frameanimation")
substitute module('com.github.penfeizhou.android.animation:apng') using project(":apng")
substitute module('com.github.penfeizhou.android.animation:awebp') using project(":awebp")
substitute module('com.github.penfeizhou.android.animation:gif') using project(":gif")
substitute module('com.github.penfeizhou.android.animation:glide-plugin') using project(":plugin_glide")
substitute module('com.github.penfeizhou.android.animation:awebpencoder') using project(":awebpencoder")
substitute module('com.github.penfeizhou.android.animation:avif') using project(":avif")
}
}
}
}
}
Properties properties = new Properties()
properties.load(project.rootProject.file('version.properties').newDataInputStream())
ext {
Version = properties.version
}
task publishFrameAnimation dependsOn(":frameanimation:publish") {
println "FrameAnimation published"
}
task publishAPNG dependsOn(publishFrameAnimation, ":apng:publish") {
println "APNG published"
}
task publishAWebP dependsOn(publishFrameAnimation, ":awebp:publish") {
println "AWebP published"
}
task publishGif dependsOn(publishFrameAnimation, ":gif:publish") {
println "Gif published"
}
task publishAvif dependsOn(publishFrameAnimation, ":avif:publish") {
println "Avif published"
}
task publishAWebPEncoder dependsOn(publishAWebP, publishGif, ":awebpencoder:publish") {
println "AWebP Encoder published"
}
task publishGlidePlugin dependsOn(publishAPNG, publishAWebP, publishGif, publishAvif, ":plugin_glide:publish") {
println "GlidePlugin published"
}
task PublishAll dependsOn(publishGlidePlugin, publishAWebPEncoder) {
println "All published"
}