Skip to content

Commit 66e9f57

Browse files
authored
Don't use deprecated buildDir (#1278)
Gradle's `$buildDir` is deprecated. This replaces it by a more modern equivalent. <!-- This is an auto-generated comment: release notes by coderabbit.ai --> ## Summary by CodeRabbit * **Chores** * Updated build configuration to use modern Gradle APIs for resolving build output directories, improving build compatibility, reliability, and maintainability. This is an internal infrastructure change with no user-facing impact. <!-- end of auto-generated comment: release notes by coderabbit.ai -->
1 parent 1f49bef commit 66e9f57

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

nullaway/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -157,7 +157,7 @@ tasks.register('buildWithNullAway', JavaCompile) {
157157
// Configure compilation to run with Error Prone and NullAway
158158
source = sourceSets.main.java
159159
classpath = sourceSets.main.compileClasspath
160-
destinationDirectory = file("$buildDir/ignoredClasses")
160+
destinationDirectory.set(layout.buildDirectory.dir('ignoredClasses'))
161161
options.annotationProcessorPath = files(
162162
configurations.errorproneExtended.asCollection(),
163163
sourceSets.main.annotationProcessorPath,

0 commit comments

Comments
 (0)