fix transitive-aw issues (x2)
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
All checks were successful
Publish to snapshot maven / build (push) Successful in 24s
This commit is contained in:
parent
ad2e3798f3
commit
3b88625edf
|
@ -7,7 +7,7 @@ plugins {
|
|||
}
|
||||
|
||||
group = "dev.frogmc"
|
||||
version = "0.0.1-alpha.2"
|
||||
version = "0.0.1-alpha.3"
|
||||
|
||||
repositories {
|
||||
maven {
|
||||
|
|
|
@ -51,14 +51,10 @@ object AccessWidener {
|
|||
}.map { it.file.toPath() }.filter { it.exists() && it.isRegularFile() }.map {
|
||||
FileSystems.newFileSystem(it).use {fs ->
|
||||
val metadata = fs.getPath(Constants.MOD_METADATA_FILE)
|
||||
if (metadata.exists()) {
|
||||
return@map null
|
||||
} else {
|
||||
PARSER.parse(it, FileNotFoundAction.READ_NOTHING)
|
||||
.get<String>("frog.extensions.accesswidener")?.let { name ->
|
||||
return@map it.resolveSibling(name)
|
||||
}
|
||||
}
|
||||
PARSER.parse(metadata, FileNotFoundAction.READ_NOTHING)
|
||||
.get<String>("frog.extensions.accesswidener")?.let { name ->
|
||||
return@map metadata.resolveSibling(name)
|
||||
}
|
||||
}
|
||||
}.toList()).filterNotNull().also { println(it) }
|
||||
}
|
||||
|
|
Loading…
Reference in a new issue