Skip to content

Commit

Permalink
🌿 Release 0.3.0
Browse files Browse the repository at this point in the history
  • Loading branch information
jesperancinha committed Feb 14, 2022
1 parent 7d0cf59 commit b594d6a
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 3 deletions.
2 changes: 1 addition & 1 deletion ReleaseNotes.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@
3. Overseer option: `overseer`. If this option is on, the plugin will look for external reports and sources automatically following the [Overseer.md](./Overseer.md) document rules
4. GoLang Coverage Support (`.out` files)

#### Release 0.3.0 - Upcoming
#### Release 0.3.0 - 2022/02/14

1. Refactoring - Current version still has a lot of code that can be reused.
2. Option `OMNI_LOG` with environment variable. Logs everything into `target/omni.log` file (Not configurable yet)
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -19,14 +19,16 @@ internal val JAR_FILE_PATTERNS =
*/
internal fun File.findJarFile(): File? =
JAR_FILE_PATTERNS.firstNotNullOfOrNull { pattern ->
val first = this.walkTopDown()
.toList().firstOrNull { file ->
val allMatches = this.walkTopDown()
.toList().filter { file ->
val absolutePath = file.absolutePath.lowercase()
absolutePath.matches(Regex(pattern)) &&
!absolutePath.contains("assembly") &&
!absolutePath.endsWith("sources.jar") &&
!absolutePath.endsWith("javadoc.jar")
}
val plains = allMatches.filter { it.absolutePath.endsWith("plain.jar") }
val first = if (plains.isEmpty()) allMatches.firstOrNull() else plains[0]
first
}

Expand Down

0 comments on commit b594d6a

Please sign in to comment.