@@ -125,17 +125,18 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
125125 jsonFile.set(
126126 project.layout.projectDirectory.file(
127127 " ../gradleplugin/plugin/src/main/resources/com/google/firebase/dataconnect/gradle/" +
128- " plugin/DataConnectExecutableVersions.json"
128+ " plugin/DataConnectExecutableVersions.json"
129129 )
130130 )
131131 workDirectory.set(project.layout.buildDirectory.dir(" updateJson" ))
132132
133- val propertyNames = object {
134- val version = " version"
135- val versions = " versions"
136- val updateMode = " updateMode"
137- val defaultVersion = " defaultVersion"
138- }
133+ val propertyNames =
134+ object {
135+ val version = " version"
136+ val versions = " versions"
137+ val updateMode = " updateMode"
138+ val defaultVersion = " defaultVersion"
139+ }
139140
140141 val singleVersion: String? = project.providers.gradleProperty(propertyNames.version).orNull
141142 val multipleVersions: List <String >? =
@@ -151,10 +152,10 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
151152 if (versions.get().isEmpty()) {
152153 logger.warn(
153154 " WARNING: no '${propertyNames.version} ' or '${propertyNames.versions} ' specified " +
154- " for task '$name '; no versions will be added to ${jsonFile.get()} . " +
155- " Try specifying something like '-P${propertyNames.version} =1.2.3' or " +
156- " '-P${propertyNames.versions} =1.2.3,4.5.6' on the gradle command line " +
157- " if you want to add versions (warning code bm6d5ezxzd)"
155+ " for task '$name '; no versions will be added to ${jsonFile.get()} . " +
156+ " Try specifying something like '-P${propertyNames.version} =1.2.3' or " +
157+ " '-P${propertyNames.versions} =1.2.3,4.5.6' on the gradle command line " +
158+ " if you want to add versions (warning code bm6d5ezxzd)"
158159 )
159160 }
160161 }
@@ -167,10 +168,10 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
167168 else ->
168169 throw Exception (
169170 " Invalid '${propertyNames.updateMode} ' specified for task '$name ': $it . " +
170- " Valid values are 'update' and 'overwrite'. " +
171- " Try specifying '-P${propertyNames.updateMode} =update' or " +
172- " '-P${propertyNames.updateMode} =overwrite' on the gradle command line. " +
173- " (error code v2e3cfqbnf)"
171+ " Valid values are 'update' and 'overwrite'. " +
172+ " Try specifying '-P${propertyNames.updateMode} =update' or " +
173+ " '-P${propertyNames.updateMode} =overwrite' on the gradle command line. " +
174+ " (error code v2e3cfqbnf)"
174175 )
175176 }
176177 }
@@ -180,11 +181,11 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
180181 if (! updateMode.isPresent) {
181182 logger.warn(
182183 " WARNING: no '${propertyNames.updateMode} ' specified for task '$name '; " +
183- " the default update mode of 'update' will be used when updating ${jsonFile.get()} . " +
184- " Try specifying '-P${propertyNames.updateMode} =update' or " +
185- " '-P${propertyNames.updateMode} =overwrite' on the gradle command line " +
186- " if you want a different update mode, or just want to be explicit about " +
187- " which update mode is in effect (warning code tjyscqmdne)"
184+ " the default update mode of 'update' will be used when updating ${jsonFile.get()} . " +
185+ " Try specifying '-P${propertyNames.updateMode} =update' or " +
186+ " '-P${propertyNames.updateMode} =overwrite' on the gradle command line " +
187+ " if you want a different update mode, or just want to be explicit about " +
188+ " which update mode is in effect (warning code tjyscqmdne)"
188189 )
189190 }
190191 }
@@ -195,10 +196,10 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
195196 if (! defaultVersion.isPresent) {
196197 logger.warn(
197198 " WARNING: no '${propertyNames.defaultVersion} ' specified for task '$name '; " +
198- " the default version will not be updated in ${jsonFile.get()} . " +
199- " Try specifying something like '-P${propertyNames.defaultVersion} =1.2.3' " +
200- " on the gradle command line if you want to update the default version " +
201- " (warning code vqrbrktx9f)"
199+ " the default version will not be updated in ${jsonFile.get()} . " +
200+ " Try specifying something like '-P${propertyNames.defaultVersion} =1.2.3' " +
201+ " on the gradle command line if you want to update the default version " +
202+ " (warning code vqrbrktx9f)"
202203 )
203204 }
204205 }
0 commit comments