Skip to content

Commit

Permalink
Update Clikt.
Browse files Browse the repository at this point in the history
  • Loading branch information
DanAlbert committed Feb 14, 2024
1 parent 404cf20 commit 2b64c69
Show file tree
Hide file tree
Showing 4 changed files with 22 additions and 1 deletion.
6 changes: 6 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -107,10 +107,16 @@ licenseReport {

// Apache 2.0
"com.github.ajalt.clikt:clikt",
"com.github.ajalt.mordant:mordant",

// MIT
"com.github.ajalt.colormath:colormath",

"org.jetbrains.kotlin:kotlin-stdlib-common",
"org.jetbrains.kotlinx:kotlinx-serialization-bom",
"org.jetbrains.kotlinx:kotlinx-serialization-core",
"org.jetbrains.kotlinx:kotlinx-serialization-json",
"org.jetbrains:markdown",
).toTypedArray()
}

Expand Down
2 changes: 1 addition & 1 deletion cli/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ plugins {
id("com.github.johnrengelman.shadow").version("8.1.1")
}
dependencies {
implementation("com.github.ajalt.clikt:clikt:3.2.0")
implementation("com.github.ajalt.clikt:clikt:4.2.2")
testImplementation("io.mockk:mockk:1.13.9")

implementation(project(":api"))
Expand Down
9 changes: 9 additions & 0 deletions cli/src/test/kotlin/com/google/prefab/cli/ArgParserTest.kt
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,9 @@ class ArgParserTest(override val schemaVersion: SchemaVersion) : PerSchemaTest {
NoRunTestCli().parse(
listOf(
"--platform", "android",
"--os-version", "21",
"--ndk-version", "26",
"--stl", "c++_shared",
"--output",
"out",
fooPath.toString()
Expand All @@ -70,6 +73,9 @@ class ArgParserTest(override val schemaVersion: SchemaVersion) : PerSchemaTest {
listOf(
"--platform", "android",
"--build-system", "ndk-build",
"--os-version", "21",
"--ndk-version", "26",
"--stl", "c++_shared",
fooPath.toString()
)
)
Expand All @@ -83,6 +89,9 @@ class ArgParserTest(override val schemaVersion: SchemaVersion) : PerSchemaTest {
listOf(
"--platform", "android",
"--build-system", "ndk-build",
"--os-version", "21",
"--ndk-version", "26",
"--stl", "c++_shared",
"--output", file.path,
fooPath.toString()
)
Expand Down
6 changes: 6 additions & 0 deletions config/allowed_licenses.json
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,12 @@
},
{
"moduleLicense": "The Apache Software License, Version 2.0"
},
{
"moduleLicense": "The MIT License"
},
{
"moduleLicense": "Apache License, Version 2.0"
}
]
}

0 comments on commit 2b64c69

Please sign in to comment.