fix aw reading
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
All checks were successful
Publish to snapshot maven / build (push) Successful in 18s
This commit is contained in:
parent
2d2dc33e00
commit
1bf8e83255
|
@ -62,9 +62,11 @@ object AccessWidener {
|
|||
private fun readAW(project: Project): Stream<String> {
|
||||
val awFile = getAWFile(project)
|
||||
println("Found accesswidener in project: $awFile")
|
||||
return awFile?.bufferedReader(StandardCharsets.UTF_8).takeIf { HEADER.test(readlnOrNull()?: "") }?.lines()
|
||||
?.map { it.replace("transitive-", "") }
|
||||
?: Stream.empty()
|
||||
return awFile?.bufferedReader(StandardCharsets.UTF_8)
|
||||
.takeIf { HEADER.test(it?.readLine()?:"") }?.lines()
|
||||
?.map { it.replace("transitive-", "") }
|
||||
?: Stream.empty()
|
||||
|
||||
}
|
||||
|
||||
private fun readTransitiveAW(path: Path): Stream<String> {
|
||||
|
|
Loading…
Reference in a new issue