Skip to content
This repository has been archived by the owner on Apr 15, 2024. It is now read-only.

Commit

Permalink
fix: specify correct class containing entry-point
Browse files Browse the repository at this point in the history
  • Loading branch information
oSumAtrIX committed Aug 23, 2023
1 parent 1fd3b83 commit 1fcc591
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 6 deletions.
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -37,7 +37,7 @@ tasks {

shadowJar {
manifest {
attributes("Main-Class" to "app.revanced.cli.main.MainKt")
attributes("Main-Class" to "app.revanced.cli.command.MainCommandKt")
}
minimize {
exclude(dependency("org.jetbrains.kotlin:.*"))
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import picocli.CommandLine.IVersionProvider
import java.util.*

fun main(args: Array<String>) {
CommandLine(Main).execute(*args)
CommandLine(MainCommand).execute(*args)
}

internal typealias PatchList = List<PatchClass>
Expand All @@ -18,7 +18,7 @@ internal val logger = DefaultCliLogger()
object CLIVersionProvider : IVersionProvider {
override fun getVersion(): Array<String> {
Properties().apply {
load(Main::class.java.getResourceAsStream("/app/revanced/cli/version.properties"))
load(MainCommand::class.java.getResourceAsStream("/app/revanced/cli/version.properties"))
}.let {
return arrayOf("ReVanced CLI v${it.getProperty("version")}")
}
Expand All @@ -37,4 +37,4 @@ object CLIVersionProvider : IVersionProvider {
OptionsCommand::class,
]
)
internal object Main
internal object MainCommand
Original file line number Diff line number Diff line change
@@ -1,12 +1,12 @@
package app.revanced.cli.logging.impl

import app.revanced.cli.command.Main
import app.revanced.cli.command.MainCommand
import app.revanced.cli.logging.CliLogger
import java.util.logging.Logger
import java.util.logging.SimpleFormatter

internal class DefaultCliLogger(
private val logger: Logger = Logger.getLogger(Main::class.java.name),
private val logger: Logger = Logger.getLogger(MainCommand::class.java.name),
private val errorLogger: Logger = Logger.getLogger(logger.name + "Err")
) : CliLogger {

Expand Down

0 comments on commit 1fcc591

Please sign in to comment.