File tree Expand file tree Collapse file tree 4 files changed +24
-5
lines changed
src/main/groovy/com/deploygate/gradle/plugins Expand file tree Collapse file tree 4 files changed +24
-5
lines changed Original file line number Diff line number Diff line change @@ -102,7 +102,8 @@ jobs:
102
102
- ' 7.2.0'
103
103
- ' 7.3.0'
104
104
- ' 7.4.0'
105
- - ' 8.0.0-beta04'
105
+ - ' 8.0.0'
106
+ - ' 8.1.0'
106
107
include :
107
108
- agp_version : ' 4.2.0'
108
109
gradle_version : ' 6.7.1'
@@ -118,7 +119,11 @@ jobs:
118
119
gradle_version : ' 7.4.2'
119
120
- agp_version : ' 7.4.0'
120
121
gradle_version : ' 7.5'
121
- - agp_version : ' 8.0.0-beta04'
122
+ - agp_version : ' 8.0.0'
123
+ gradle_version : ' 8.0'
124
+ java_version : ' 17'
125
+ runner_gradle_version : ' 8.0'
126
+ - agp_version : ' 8.1.0'
122
127
gradle_version : ' 8.0'
123
128
java_version : ' 17'
124
129
runner_gradle_version : ' 8.0'
Original file line number Diff line number Diff line change @@ -15,7 +15,8 @@ done < <(cat<<EOF
15
15
7.1.0 7.2
16
16
7.2.0 7.3.3
17
17
7.3.0 7.4.2
18
- 7.4.0-rc02 7.5
19
- 8.0.0-alpha10 7.5
18
+ 7.4.0 7.5
19
+ 8.0.0 8.0
20
+ 8.1.0 8.0
20
21
EOF
21
22
)
Original file line number Diff line number Diff line change 1
1
package com.deploygate.gradle.plugins.artifacts
2
2
3
+ import com.deploygate.gradle.plugins.internal.agp.AndroidGradlePlugin
3
4
import groovy.transform.PackageScope
4
5
import org.jetbrains.annotations.NotNull
5
6
@@ -50,6 +51,10 @@ class PackageAppTaskCompat {
50
51
}
51
52
52
53
static Collection<String > getApkNames (packageAppTask ) {
53
- return packageAppTask. variantOutputs. get(). collect { it. outputFileName. get() }
54
+ if (AndroidGradlePlugin . hasOutputsHandlerApiOnPackageApplication()) {
55
+ return packageAppTask. outputsHandler. get(). getOutputs { true }. collect { it. outputFileName }
56
+ } else {
57
+ return packageAppTask. variantOutputs. get(). collect { it. outputFileName. get() }
58
+ }
54
59
}
55
60
}
Original file line number Diff line number Diff line change @@ -39,6 +39,14 @@ class AndroidGradlePlugin {
39
39
return AGP_VERSION
40
40
}
41
41
42
+ /**
43
+ * @since AGP 8.1.0 https://android.googlesource.com/platform/tools/base/+/da5cbdf59f91f7480a5d9615a20f766d19c6034a%5E%21/#F32
44
+ */
45
+ static boolean hasOutputsHandlerApiOnPackageApplication () {
46
+ def version = getVersion()
47
+ return version. major >= 8 && version. minor >= 1
48
+ }
49
+
42
50
@NotNull
43
51
static String androidAssembleTaskName (@NotNull String variantName ) {
44
52
return " assemble${ variantName.capitalize()} "
You can’t perform that action at this time.
0 commit comments