2023-09-01 20:00:49 +02:00
|
|
|
/*
|
2023-09-05 13:28:56 +02:00
|
|
|
* Copyright 2023 Pachli Association
|
2023-09-01 20:00:49 +02:00
|
|
|
*
|
2023-09-05 13:28:56 +02:00
|
|
|
* This file is a part of Pachli.
|
2023-09-01 20:00:49 +02:00
|
|
|
*
|
|
|
|
* This program is free software; you can redistribute it and/or modify it under the terms of the
|
|
|
|
* GNU General Public License as published by the Free Software Foundation; either version 3 of the
|
|
|
|
* License, or (at your option) any later version.
|
|
|
|
*
|
2023-09-05 13:28:56 +02:00
|
|
|
* Pachli is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even
|
2023-09-01 20:00:49 +02:00
|
|
|
* the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General
|
|
|
|
* Public License for more details.
|
|
|
|
*
|
2023-09-05 13:28:56 +02:00
|
|
|
* You should have received a copy of the GNU General Public License along with Pachli; if not,
|
2023-09-01 20:00:49 +02:00
|
|
|
* see <http://www.gnu.org/licenses>.
|
|
|
|
*/
|
|
|
|
|
|
|
|
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
|
|
|
|
|
|
|
|
subprojects {
|
|
|
|
apply(plugin = "kotlin")
|
|
|
|
apply(plugin = "application")
|
|
|
|
|
|
|
|
dependencies {
|
fix(deps): update dependency com.github.ajalt.clikt:clikt to v4 (#125)
[![Mend
Renovate](https://app.renovatebot.com/images/banner.svg)](https://renovatebot.com)
This PR contains the following updates:
| Package | Change | Age | Adoption | Passing | Confidence |
|---|---|---|---|---|---|
| [com.github.ajalt.clikt:clikt](https://togithub.com/ajalt/clikt) |
`3.5.4` -> `4.2.2` |
[![age](https://developer.mend.io/api/mc/badges/age/maven/com.github.ajalt.clikt:clikt/4.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![adoption](https://developer.mend.io/api/mc/badges/adoption/maven/com.github.ajalt.clikt:clikt/4.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![passing](https://developer.mend.io/api/mc/badges/compatibility/maven/com.github.ajalt.clikt:clikt/3.5.4/4.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
[![confidence](https://developer.mend.io/api/mc/badges/confidence/maven/com.github.ajalt.clikt:clikt/3.5.4/4.2.2?slim=true)](https://docs.renovatebot.com/merge-confidence/)
|
---
> [!WARNING]
> Some dependencies could not be looked up. Check the Dependency
Dashboard for more information.
---
### Release Notes
<details>
<summary>ajalt/clikt (com.github.ajalt.clikt:clikt)</summary>
###
[`v4.2.2`](https://togithub.com/ajalt/clikt/blob/HEAD/CHANGELOG.md#422)
[Compare Source](https://togithub.com/ajalt/clikt/compare/4.2.1...4.2.2)
##### Changed
- Options and arguments can now reference option groups in their
`defaultLazy` and other finalization blocks. They can also freely
reference each other, including though chains of references.
([#​473](https://togithub.com/ajalt/clikt/issues/473))
- Updated Kotlin to 1.9.21
([#​472](https://togithub.com/ajalt/clikt/pull/472))
###
[`v4.2.1`](https://togithub.com/ajalt/clikt/blob/HEAD/CHANGELOG.md#421)
[Compare Source](https://togithub.com/ajalt/clikt/compare/4.2.0...4.2.1)
##### Added
- Added `toString` implementations to options and arguments.
([#​434](https://togithub.com/ajalt/clikt/issues/434))
- Added `CliktCommand.test` overload that takes a vararg of `String`s as
the command line arguments. Thanks to
[@​sschuberth](https://togithub.com/sschuberth) for the
contribution
([#​451](https://togithub.com/ajalt/clikt/issues/451))
##### Fixed
- Update Mordant dependency to fix crashes on native targets and GraalVM
([#​447](https://togithub.com/ajalt/clikt/issues/447))
###
[`v4.2.0`](https://togithub.com/ajalt/clikt/blob/HEAD/CHANGELOG.md#420)
[Compare Source](https://togithub.com/ajalt/clikt/compare/4.1.0...4.2.0)
##### Added
- Added `requireConfirmation` parameter to `option().prompt()`
([#​426](https://togithub.com/ajalt/clikt/issues/426))
- Added `CliktCommand.terminal` extension for accessing the terminal
from a command.
- Added `includeSystemEnvvars`, `ansiLevel`, `width`, and `height`
parameters to all `CliktCommand.test` overloads.
##### Deprecated
- Deprecated `CliktCommand.prompt`, use `CliktCommand.terminal.prompt`
or `Prompt` instead.
- Deprecated `CliktCommand.confirm`, use `YesNoPrompt` instead.
##### Fixed
- Fixed incorrect error message when a `defaultLazy` option referenced a
`required` option.
([#​430](https://togithub.com/ajalt/clikt/issues/430))
###
[`v4.1.0`](https://togithub.com/ajalt/clikt/blob/HEAD/CHANGELOG.md#410)
[Compare Source](https://togithub.com/ajalt/clikt/compare/4.0.0...4.1.0)
##### Added
- Added `MordantHelpFormatter.renderAttachedOptionValue` that you can
override to change how option values are shown, e.g. if you want option
to show as `--option <value>` instead of `--option=<value>`.
([#​416](https://togithub.com/ajalt/clikt/issues/416))
- Added `option().optionalValueLazy{}`, which work like
`optionalValue()` but the default value is computed lazily.
([#​381](https://togithub.com/ajalt/clikt/issues/381))
##### Changed
- Updated Kotlin to 1.9.0
- `PrintMessage`, `PrintHelpMessage` and `PrintCompletionMessage` now
default to exiting with a status code 0, which is the behavior they had
in 3.x. ([#​419](https://togithub.com/ajalt/clikt/issues/419))
###
[`v4.0.0`](https://togithub.com/ajalt/clikt/blob/HEAD/CHANGELOG.md#400)
[Compare Source](https://togithub.com/ajalt/clikt/compare/3.5.4...4.0.0)
##### Added
- Added `Context.errorEncountered` which is true if parsing has
continued after an error was encountered.
- `option().help{""}` and `argument().help{""}` extensions that set the
parameter's help text lazily, with access to the current context so that
you can add colors.
##### Changed
- `Option.optionHelp` and `Argument.argumentHelp`,
`CliktCommand.commandHelp`, and `CliktCommand.commandHelpEpilog` are now
methods that take the context as an argument, and the `help` parameter
to `copy` is now a `helpGetter` lambda. `CliktCommand.shortHelp` now
takes the context as an argument.
- The `message` method on `TransformContext` interfaces is now an
extension.
##### Deprecated
- Deprecated `CliktCommand.commandHelp` and `commandHelpEpilog`
properties in favor of the methods with the same name.
</details>
---
### Configuration
📅 **Schedule**: Branch creation - At any time (no schedule defined),
Automerge - At any time (no schedule defined).
🚦 **Automerge**: Disabled by config. Please merge this manually once you
are satisfied.
♻ **Rebasing**: Whenever PR becomes conflicted, or you tick the
rebase/retry checkbox.
🔕 **Ignore**: Close this PR and you won't be reminded about this update
again.
---
- [ ] <!-- rebase-check -->If you want to rebase/retry this PR, check
this box
---
This PR has been generated by [Mend
Renovate](https://www.mend.io/free-developer-tools/renovate/). View
repository job log
[here](https://developer.mend.io/github/pachli/pachli-android).
<!--renovate-debug:eyJjcmVhdGVkSW5WZXIiOiIzNi4xMDcuMiIsInVwZGF0ZWRJblZlciI6IjM3LjEyMS4wIiwidGFyZ2V0QnJhbmNoIjoibWFpbiJ9-->
Co-authored-by: renovate[bot] <29139614+renovate[bot]@users.noreply.github.com>
2024-01-08 16:45:03 +01:00
|
|
|
add("implementation", "com.github.ajalt.clikt:clikt:4.2.2")
|
2023-09-01 20:00:49 +02:00
|
|
|
}
|
|
|
|
|
|
|
|
tasks.withType<KotlinCompile>().configureEach {
|
|
|
|
kotlinOptions {
|
|
|
|
freeCompilerArgs = freeCompilerArgs + "-opt-in=kotlin.RequiresOptIn"
|
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|