Skip to content

Commit

Permalink
fix: Make sure hoplite reports to logger debug instead of stdout
Browse files Browse the repository at this point in the history
  • Loading branch information
phinner committed Nov 15, 2024
1 parent 4c9e639 commit 1037ced
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 2 deletions.
3 changes: 1 addition & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@ plugins {
val metadata = ModMetadata.fromJson(rootProject.file("plugin.json"))
if (indraGit.headTag() == null) metadata.version += "-SNAPSHOT"
group = "com.xpdustry"
val rootPackage = "com.xpdustry.nohorny"
version = metadata.version
description = metadata.description

Expand Down Expand Up @@ -133,7 +132,7 @@ tasks.shadowJar {
from(generateMetadataFile)
from(rootProject.file("LICENSE.md")) { into("META-INF") }

val shadowPackage = "$rootPackage.shadow"
val shadowPackage = "com.xpdustry.nohorny.shadow"
kotlinRelocate("com.sksamuel.hoplite", "$shadowPackage.hoplite")
kotlinRelocate("okhttp3", "$shadowPackage.okhttp3")
kotlinRelocate("okio", "$shadowPackage.okio")
Expand Down
2 changes: 2 additions & 0 deletions src/main/kotlin/com/xpdustry/nohorny/NoHornyPlugin.kt
Original file line number Diff line number Diff line change
Expand Up @@ -77,6 +77,8 @@ public class NoHornyPlugin : Plugin(), NoHornyAPI {
.addDefaultParamMappers()
.addDefaultParsers()
.addPathSource(file)
.withReport()
.withReportPrintFn(logger::debug)
.strict()
.build()

Expand Down

0 comments on commit 1037ced

Please sign in to comment.