fix: gradle build script

Signed-off-by: oSumAtrIX <johan.melkonyan1@web.de>
This commit is contained in:
Canny1913 2022-05-05 20:19:59 +03:00 committed by oSumAtrIX
parent eab58aa0a2
commit 6ffba3ef0a
No known key found for this signature in database
GPG Key ID: A9B3094ACDB604B4
3 changed files with 9 additions and 7 deletions

View File

@ -20,7 +20,7 @@ repositories {
} }
} }
val patchesDependency = "app.revanced:revanced-patches:+" val patchesDependency = "app.revanced:revanced-patches:1.0.0-dev.4"
dependencies { dependencies {
implementation(kotlin("stdlib")) implementation(kotlin("stdlib"))
@ -39,7 +39,7 @@ tasks {
exclude(dependency(patchesDependency)) exclude(dependency(patchesDependency))
} }
manifest { 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-Title" to project.name)
attributes("Implementation-Version" to project.version) attributes("Implementation-Version" to project.version)
} }

View File

@ -0,0 +1,7 @@
package app.revanced.cli
import picocli.CommandLine
internal fun main(args: Array<String>) {
CommandLine(MainCommand).execute(*args)
}

View File

@ -2,7 +2,6 @@ package app.revanced.cli
import app.revanced.patch.PatchLoader import app.revanced.patch.PatchLoader
import app.revanced.patch.Patches import app.revanced.patch.Patches
import picocli.CommandLine
import picocli.CommandLine.* import picocli.CommandLine.*
import java.io.File import java.io.File
@ -58,7 +57,3 @@ internal object MainCommand : Runnable {
File(cacheDirectory).deleteRecursively() File(cacheDirectory).deleteRecursively()
} }
} }
internal fun main(args: Array<String>) {
CommandLine(MainCommand).execute(*args)
}