Skip to content

Commit 5ecc64b

Browse files
authored
Update README.md
1 parent 22c7b42 commit 5ecc64b

1 file changed

Lines changed: 0 additions & 8 deletions

File tree

README.md

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -56,14 +56,6 @@ internal object BuildConfig {
5656
}
5757
```
5858

59-
> [!IMPORTANT]
60-
> Avoid generating `File` entries with `Project.file` API, as they are created with absolute paths, and it will produce
61-
> cache misses.
62-
> ```kotlin
63-
> buildConfigField("FILE", file("aFile")) // will create a file targeting `/your/project/root/aFile` -> DON'T!
64-
> buildConfigField("FILE", file("aFile").relativeToOrSelf(projectDir)) // use this instead, for instance
65-
> ```
66-
6759
## Usage in Groovy
6860

6961
On your `build.gradle` add:

0 commit comments

Comments
 (0)