Skip to content

Commit f94719d

Browse files
committed
avoid calling Property.get() at configuration time
1 parent 7b565cb commit f94719d

File tree

1 file changed

+2
-2
lines changed

1 file changed

+2
-2
lines changed

firebase-dataconnect/gradleplugin/plugin/src/main/kotlin/com/google/firebase/dataconnect/gradle/plugin/DataConnectGenerateCodeTask.kt

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -160,14 +160,14 @@ private fun DataConnectGenerateCodeTask.runKtfmt(
160160

161161
fun DataConnectGenerateCodeTask.detectedCallingConvention(
162162
dataConnectExecutable: RegularFileProperty = this.dataConnectExecutable,
163-
buildDirectory: File = this.buildDirectory.get().asFile,
163+
buildDirectory: DirectoryProperty = this.buildDirectory,
164164
execOperations: ExecOperations = this.execOperations,
165165
logger: Logger = this.logger
166166
): Provider<CallingConvention> =
167167
dataConnectExecutable.map {
168168
determineCallingConvention(
169169
dataConnectExecutable = it.asFile,
170-
workDirectory = File(buildDirectory, "determineCallingConvention"),
170+
workDirectory = File(buildDirectory.get().asFile, "determineCallingConvention"),
171171
execOperations = execOperations,
172172
logger = logger,
173173
)

0 commit comments

Comments
 (0)