Skip to content

Commit

Permalink
fix: gradle build script
Browse files Browse the repository at this point in the history
Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
  • Loading branch information
Canny1913 authored and oSumAtrIX committed May 5, 2022
1 parent eab58aa commit 6ffba3e
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ repositories {
}
}

val patchesDependency = "app.revanced:revanced-patches:+"
val patchesDependency = "app.revanced:revanced-patches:1.0.0-dev.4"

dependencies {
implementation(kotlin("stdlib"))
Expand All @@ -39,7 +39,7 @@ tasks {
exclude(dependency(patchesDependency))
}
manifest {
attributes("Main-Class" to "app.revanced.cli.Main")
attributes("Main-Class" to "app.revanced.cli.MainKt")
attributes("Implementation-Title" to project.name)
attributes("Implementation-Version" to project.version)
}
Expand Down
7 changes: 7 additions & 0 deletions src/main/kotlin/app/revanced/cli/Main.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
package app.revanced.cli

import picocli.CommandLine

internal fun main(args: Array<String>) {
CommandLine(MainCommand).execute(*args)
}
5 changes: 0 additions & 5 deletions src/main/kotlin/app/revanced/cli/MainCommand.kt
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,6 @@ package app.revanced.cli

import app.revanced.patch.PatchLoader
import app.revanced.patch.Patches
import picocli.CommandLine
import picocli.CommandLine.*
import java.io.File

Expand Down Expand Up @@ -57,8 +56,4 @@ internal object MainCommand : Runnable {
if (!wipe) return
File(cacheDirectory).deleteRecursively()
}
}

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

0 comments on commit 6ffba3e

Please sign in to comment.