mirror of
https://github.com/ReVanced/revanced-api.git
synced 2026-01-28 05:31:04 +00:00
feat: Add CLI
This commit is contained in:
@@ -7,12 +7,18 @@ plugins {
|
||||
group = "app.revanced"
|
||||
|
||||
application {
|
||||
mainClass.set("app.revanced.api.ApplicationKt")
|
||||
mainClass.set("app.revanced.api.command.MainCommandKt")
|
||||
|
||||
val isDevelopment: Boolean = project.ext.has("development")
|
||||
applicationDefaultJvmArgs = listOf("-Dio.ktor.development=$isDevelopment")
|
||||
}
|
||||
|
||||
tasks {
|
||||
processResources {
|
||||
expand("projectVersion" to project.version)
|
||||
}
|
||||
}
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
}
|
||||
@@ -44,6 +50,7 @@ dependencies {
|
||||
implementation(libs.dotenv.kotlin)
|
||||
implementation(libs.ktoml.core)
|
||||
implementation(libs.ktoml.file)
|
||||
implementation(libs.picocli)
|
||||
|
||||
testImplementation(libs.ktor.server.tests)
|
||||
testImplementation(libs.kotlin.test.junit)
|
||||
|
||||
Reference in New Issue
Block a user