@@ -125,17 +125,18 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
125
125
jsonFile.set(
126
126
project.layout.projectDirectory.file(
127
127
" ../gradleplugin/plugin/src/main/resources/com/google/firebase/dataconnect/gradle/" +
128
- " plugin/DataConnectExecutableVersions.json"
128
+ " plugin/DataConnectExecutableVersions.json"
129
129
)
130
130
)
131
131
workDirectory.set(project.layout.buildDirectory.dir(" updateJson" ))
132
132
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
+ }
139
140
140
141
val singleVersion: String? = project.providers.gradleProperty(propertyNames.version).orNull
141
142
val multipleVersions: List <String >? =
@@ -151,10 +152,10 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
151
152
if (versions.get().isEmpty()) {
152
153
logger.warn(
153
154
" 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)"
158
159
)
159
160
}
160
161
}
@@ -167,10 +168,10 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
167
168
else ->
168
169
throw Exception (
169
170
" 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)"
174
175
)
175
176
}
176
177
}
@@ -180,11 +181,11 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
180
181
if (! updateMode.isPresent) {
181
182
logger.warn(
182
183
" 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)"
188
189
)
189
190
}
190
191
}
@@ -195,10 +196,10 @@ tasks.register<UpdateDataConnectExecutableVersionsTask>("updateJson") {
195
196
if (! defaultVersion.isPresent) {
196
197
logger.warn(
197
198
" 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)"
202
203
)
203
204
}
204
205
}
0 commit comments