File tree 1 file changed +9
-10
lines changed
1 file changed +9
-10
lines changed Original file line number Diff line number Diff line change @@ -171,17 +171,16 @@ jacoco {
171
171
toolVersion ' 0.8.12'
172
172
}
173
173
android. applicationVariants. all { variant ->
174
- variant. getMergeAssetsProvider(). get(). doLast {
175
- copy {
176
- from project. rootDir
177
- into " ${ project.buildDir} /generated/license_assets/"
178
- include ' LICENSE.txt'
179
- include ' LICENSE-rhyming-dictionary.txt'
180
- include ' LICENSE-thesaurus-wordnet.txt'
181
- include ' LICENSE-dictionary-wordnet.txt'
182
- include ' LICENSE-google-ngram-dataset.txt'
183
- }
174
+ def copyLicenseFilesTask = tasks. register(" copyLicenseFilesFor${ variant.name.capitalize()} " , Copy ) {
175
+ from project. rootDir
176
+ into " ${ project.buildDir} /generated/license_assets/"
177
+ include ' LICENSE.txt'
178
+ include ' LICENSE-rhyming-dictionary.txt'
179
+ include ' LICENSE-thesaurus-wordnet.txt'
180
+ include ' LICENSE-dictionary-wordnet.txt'
181
+ include ' LICENSE-google-ngram-dataset.txt'
184
182
}
183
+ variant. mergeAssetsProvider. configure { dependsOn copyLicenseFilesTask }
185
184
}
186
185
187
186
project. gradle. taskGraph. whenReady {
You can’t perform that action at this time.
0 commit comments