m1a2st commented on code in PR #18537:
URL: https://github.com/apache/kafka/pull/18537#discussion_r1917034723
##########
build.gradle:
##########
@@ -3371,7 +3369,7 @@ project(':jmh-benchmarks') {
if (System.getProperty("jmhArgs")) {
args System.getProperty("jmhArgs").split(' ')
}
- args = [shadowJar.archivePath, *args]
+ args = [shadowJar.archiveFile.get().asFile, *args]
Review Comment:
I think both approch could work, please take a look at
`layout.buildDirectory.get().asFile.path`, the method also defined `getAsFile`
but we can use the `asFile`.
```
public interface Directory extends FileSystemLocation {
/**
* Returns the location of this directory, as an absolute {@link File}.
*
* @since 4.2
*/
@Override
File getAsFile();
```
--
This is an automated message from the Apache Git Service.
To respond to the message, please log on to GitHub and use the
URL above to go to the specific comment.
To unsubscribe, e-mail: [email protected]
For queries about this service, please contact Infrastructure at:
[email protected]