mirror of
https://github.com/AsamK/signal-cli.git
synced 2026-04-28 10:00:15 +00:00
Simplified name
This commit is contained in:
parent
cafced7a67
commit
14b48e4784
@ -153,7 +153,7 @@ version installed, you can replace `./gradlew` with `gradle` in the following st
|
||||
1. Generate [JSON Schema](https://json-schema.org/) files for all the JSON-RPC data classes (`src/main/java/org/asamk/signal/json`):
|
||||
|
||||
```sh
|
||||
./gradlew genJsonSchemas
|
||||
./gradlew jsonSchemas
|
||||
```
|
||||
|
||||
2. The generated files can be found in the `build/classes/java/schemas/META-INF/schemas` folder.
|
||||
|
||||
@ -101,7 +101,7 @@ dependencies {
|
||||
implementation(libs.logback)
|
||||
implementation(libs.zxing)
|
||||
implementation(libs.micronaut.json.schema.annotations)
|
||||
if (gradle.startParameter.taskNames.any { it.contains("genJsonSchemas") }) {
|
||||
if (gradle.startParameter.taskNames.any { it.contains("jsonSchemas") }) {
|
||||
implementation(libs.micronaut.json.schema.generator)
|
||||
}
|
||||
implementation(project(":libsignal-cli"))
|
||||
@ -119,7 +119,7 @@ tasks.withType<AbstractArchiveTask>().configureEach {
|
||||
isReproducibleFileOrder = true
|
||||
}
|
||||
|
||||
tasks.withType<JavaCompile>() {
|
||||
tasks.withType<JavaCompile> {
|
||||
options.encoding = "UTF-8"
|
||||
}
|
||||
|
||||
@ -197,7 +197,7 @@ val compileJsonSchemas by tasks.registering(JavaCompile::class) {
|
||||
}
|
||||
}
|
||||
|
||||
tasks.register("genJsonSchemas") {
|
||||
tasks.register("jsonSchemas") {
|
||||
group = "application"
|
||||
description = "Generate JSON schemas using annotation processing"
|
||||
dependsOn(compileJsonSchemas)
|
||||
|
||||
Loading…
x
Reference in New Issue
Block a user