@@ -3,9 +3,9 @@ defaults: &defaults
33 working_directory : ~/root/project
44 resource_class : large
55 docker :
6- - image : cimg/android:2022.12 .1
6+ - image : cimg/android:2023.04 .1
77 environment :
8- GRADLE_OPTS : -Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false
8+ GRADLE_OPTS : -Xmx4096m -XX:+HeapDumpOnOutOfMemoryError -Dorg.gradle.daemon=false -Dorg.gradle. caching=true -Dorg.gradle.configureondemand=true -Dkotlin.compiler.execution.strategy=in-process -Dkotlin.incremental=false
99
1010cache_key : &cache_key
1111 key : jars-{{ checksum "plugin/build.gradle.kts" }}-{{ checksum "plugin/android-junit5/build.gradle.kts" }}-{{ checksum "plugin/gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "instrumentation/build.gradle.kts" }}-{{ checksum "instrumentation/runner/build.gradle.kts" }}-{{ checksum "instrumentation/sample/build.gradle.kts" }}-{{ checksum "instrumentation/gradle/wrapper/gradle-wrapper.properties" }}-{{ checksum "build-logic/src/main/kotlin/Environment.kt" }}-{{ checksum "build-logic/src/main/kotlin/Dependencies.kt" }}
@@ -27,47 +27,26 @@ jobs:
2727
2828 - run :
2929 name : (Plugin) Build
30- command : cd plugin && ./gradlew :android-junit5:assemble --stacktrace --no-daemon
30+ command : cd plugin && ./gradlew :android-junit5:assemble --stacktrace
3131 - run :
3232 name : (Plugin) Test
33- command : cd plugin && ./gradlew :android-junit5:check --stacktrace --no-daemon
33+ command : cd plugin && ./gradlew :android-junit5:check --stacktrace
3434
35- - run :
36- name : (Instrumentation) Prepare local.properties
37- command : |
38- touch instrumentation/local.properties
39- echo "junit5.includeCompose = false" > instrumentation/local.properties
4035 - run :
4136 name : (Instrumentation) Download Dependencies
42- command : cd instrumentation && ./gradlew androidDependencies --no-daemon
37+ command : cd instrumentation && ./gradlew androidDependencies
4338 - run :
4439 name : (Instrumentation) Build
4540 command : |
4641 cd instrumentation
47- ./gradlew assembleRelease :core:assembleDebug :core:assembleDebugAndroidTest \
42+ ./gradlew assembleRelease :core:assembleDebug \
43+ :core:assembleDebugAndroidTest \
44+ :compose:assembleDebugAndroidTest \
4845 :runner:assembleDebug \
49- :sample:assembleDebug --stacktrace --no-daemon
46+ :sample:assembleDebug --stacktrace
5047 - run :
5148 name : (Instrumentation) Test
52- command : cd instrumentation && ./gradlew :core:check :runner:check --stacktrace --no-daemon
53-
54- - run :
55- name : (Compose) Prepare local.properties
56- command : |
57- touch instrumentation/local.properties
58- echo "junit5.includeCompose = true" > instrumentation/local.properties
59-
60- - run :
61- name : (Compose) Download Dependencies
62- command : cd instrumentation && ./gradlew androidDependencies --no-daemon
63- - run :
64- name : (Compose) Build
65- command : |
66- cd instrumentation
67- ./gradlew :compose:assemble :compose:assembleDebugAndroidTest --stacktrace --no-daemon
68- - run :
69- name : (Compose) Test
70- command : cd instrumentation && ./gradlew :compose:check --stacktrace --no-daemon
49+ command : cd instrumentation && ./gradlew :core:check :runner:check :compose:check --stacktrace
7150
7251 - save_cache :
7352 << : *cache_key
@@ -133,19 +112,14 @@ jobs:
133112 - construct_signing_key
134113 - run :
135114 name : (Plugin) Build & Deploy
136- command : cd plugin && ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace --no-daemon
137- - run :
138- name : (Instrumentation) Build & Deploy
139115 command : |
140- cd instrumentation
141- echo "junit5.includeCompose = false" > local.properties
142- ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace --no-daemon
116+ cd plugin
117+ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace
143118 - run :
144- name : (Compose ) Build & Deploy
119+ name : (Instrumentation ) Build & Deploy
145120 command : |
146121 cd instrumentation
147- echo "junit5.includeCompose = true" > local.properties
148- ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace --no-daemon
122+ ./gradlew publishToSonatype closeAndReleaseSonatypeStagingRepository --stacktrace
149123 - store_artifacts :
150124 path : plugin/android-junit5/build/publications
151125 destination : plugin/publications/snapshots
0 commit comments