Skip to content

Commit

Permalink
Update dependencies
Browse files Browse the repository at this point in the history
  • Loading branch information
FWDekker committed Nov 14, 2023
1 parent bed94ad commit bd8cf5c
Show file tree
Hide file tree
Showing 16 changed files with 38 additions and 38 deletions.
2 changes: 2 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -11,6 +11,8 @@ Check the plugin description for more details and animated usage examples.
* In addition to a list of standard separators, you can now also choose your own separator for all data types, including
for arrays.
* You can automatically pad (or truncate) integers to a specific length.
* A notification is shown after upgrading to v3 to inform the user of incompatibilities with settings from older
versions.
* Future backwards compatibility ensures that your settings can always be imported into future versions.

### Changed
Expand Down
10 changes: 5 additions & 5 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -12,18 +12,18 @@ fun properties(key: String) = project.findProperty(key).toString()
/// Plugins
plugins {
// Compilation
id("org.jetbrains.kotlin.jvm") version "1.9.10" // Use latest version, ignoring `gradle.properties`
id("org.jetbrains.intellij") version "1.15.0"
id("org.jetbrains.kotlin.jvm") version "1.9.20" // Use latest version, ignoring `gradle.properties`
id("org.jetbrains.intellij") version "1.16.0"

// Tests/coverage
id("org.jetbrains.kotlinx.kover") version "0.7.3"
id("org.jetbrains.kotlinx.kover") version "0.7.4"

// Static analysis
id("io.gitlab.arturbosch.detekt") version "1.23.1" // See also `gradle.properties`
id("io.gitlab.arturbosch.detekt") version "1.23.3" // See also `gradle.properties`

// Documentation
id("org.jetbrains.changelog") version "2.2.0"
id("org.jetbrains.dokka") version "1.9.0"
id("org.jetbrains.dokka") version "1.9.10"
}


Expand Down
14 changes: 6 additions & 8 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -1,7 +1,6 @@
group=com.fwdekker
# TODO: Also remove `beta` from `PersistentSettings' annotation`!
# Version number should also be updated in `com.fwdekker.randomness.PersistentSettings.Companion.CURRENT_VERSION`.
version=3.0.0-beta.4
version=3.0.0

# Compatibility
# * `pluginSinceBuild`:
Expand All @@ -14,7 +13,7 @@ version=3.0.0-beta.4
# See also https://data.services.jetbrains.com/products?fields=name,releases.version,releases.build&code=IC,CL.
pluginSinceBuild=223.0
intellijVersion=2022.3
pluginVerifierIdeVersions=IC-2022.3.3, IC-2023.1.5, IC-2023.2.2, CL-2022.3.3, CL-2023.1.5, CL-2023.2.2
pluginVerifierIdeVersions=IC-2022.3.3, IC-2023.1.5, IC-2023.2.5, CL-2022.3.3, CL-2023.1.5, CL-2023.2.2

# Targets
# * Java:
Expand All @@ -32,14 +31,13 @@ kotlinApiVersion=1.7
# Dependencies
# * Detekt should also be updated in `plugins` block.
# * RgxGen should also be updated in `StringSchemeEditor` link.
# TODO: Update dependencies and Gradle plugins where appropriate
assertjSwingVersion=3.17.1
dateparserVersion=1.0.11
detektVersion=1.23.1
detektVersion=1.23.3
emojiVersion=5.1.1
junitVersion=5.10.0
junitRunnerVersion=1.10.0
kotestVersion=5.7.2
junitVersion=5.10.1
junitRunnerVersion=1.10.1
kotestVersion=5.8.0
rgxgenVersion=1.4
uuidGeneratorVersion=4.3.0

Expand Down
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@ distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.3-all.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.4-all.zip
6 changes: 3 additions & 3 deletions src/main/kotlin/com/fwdekker/randomness/Box.kt
Original file line number Diff line number Diff line change
Expand Up @@ -5,9 +5,9 @@ package com.fwdekker.randomness
* A lazily-instantiated reference to an object of type [T].
*
* @param T the type of the referenced object
* @property generator Generates the referenced object when [unaryPlus] is invoked for the first time.
* @property value Do not assign this field in the constructor; this field is placed in the constructor to ensure Kotlin
* includes it in the automatically-generated [copy] method.
* @param generator generates the referenced object when [unaryPlus] is invoked for the first time
* @param value do not assign this field in the constructor; this field is placed in the constructor to ensure Kotlin
* includes it in the automatically-generated [copy] method
*/
data class Box<T : Any>(private val generator: () -> T, private var value: T? = null) {
/**
Expand Down
4 changes: 2 additions & 2 deletions src/main/kotlin/com/fwdekker/randomness/Icons.kt
Original file line number Diff line number Diff line change
Expand Up @@ -278,8 +278,8 @@ data class OverlayedIcon(val base: Icon, val overlays: List<Icon> = emptyList())
/**
* Replaces all colors with one of [colors] depending on the angle relative to [center].
*
* @property colors The colors that should be used, in clockwise order starting north-west.
* @property center The center relative to which colors should be calculated; not required if only one color is given.
* @param colors the colors that should be used, in clockwise order starting north-west
* @param center the center relative to which colors should be calculated; not required if only one color is given
*/
class RadialColorReplacementFilter(
private val colors: List<Color>,
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/fwdekker/randomness/PopupAction.kt
Original file line number Diff line number Diff line change
Expand Up @@ -145,7 +145,7 @@ class PopupAction : AnAction(Icons.RANDOMNESS) {
/**
* An [AbstractAction] that uses [myActionPerformed] as the implementation of its [actionPerformed] method.
*
* @property myActionPerformed The code to execute in [actionPerformed].
* @param myActionPerformed the code to execute in [actionPerformed]
*/
private class SimpleAbstractAction(private val myActionPerformed: (ActionEvent?) -> Unit) : AbstractAction() {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/fwdekker/randomness/Settings.kt
Original file line number Diff line number Diff line change
Expand Up @@ -126,6 +126,6 @@ class PersistentSettings : PersistentStateComponent<Element> {
/**
* The currently-running version of Randomness.
*/
const val CURRENT_VERSION: String = "3.0.0-beta.4"
const val CURRENT_VERSION: String = "3.0.0" // Synchronize this with the version in `gradle.properties`
}
}
Original file line number Diff line number Diff line change
Expand Up @@ -34,7 +34,7 @@ import javax.swing.JCheckBox
* Component for editing an [ArrayDecorator].
*
* @param scheme the scheme to edit
* @property embedded `true` if the editor is embedded, which means that no titled separator is shown at the top,
* @param embedded `true` if the editor is embedded, which means that no titled separator is shown at the top,
* components are additionally indented, and the user cannot disable the array decorator; does not affect the value of
* [ArrayDecorator.enabled]
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import com.intellij.openapi.actionSystem.impl.DynamicActionConfigurationCustomiz
/**
* Registers, replaces, and unregisters actions for the user's [Template]s so that they can be inserted using shortcuts.
*
* @property getTemplates Shorthand to return all the user's stored [Template]s.
* @param getTemplates shorthand to return all the user's stored [Template]s
*/
open class TemplateActionLoader(
private val getTemplates: () -> List<Template> = { Settings.DEFAULT.templates },
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ import javax.swing.JPanel
/**
* All actions related to inserting template-based strings.
*
* @property template The template to create actions for.
* @param template the template to create actions for
* @see TemplateInsertAction
* @see TemplateSettingsAction
*/
Expand Down Expand Up @@ -88,8 +88,8 @@ class TemplateGroupAction(private val template: Template) :
/**
* Inserts random strings in the editor using the given template.
*
* @property template The template to use for inserting data.
* @property array `true` if and only if an array of values should be inserted.
* @param template the template to use for inserting data
* @param array `true` if and only if an array of values should be inserted
* @param repeat `true` if and only if the same value should be inserted at each caret
* @see TemplateGroupAction
*/
Expand Down Expand Up @@ -190,7 +190,7 @@ class TemplateInsertAction(
/**
* Open the settings dialog to edit [template].
*
* @property template The template to select after opening the settings dialog.
* @param template the template to select after opening the settings dialog
* @see TemplateGroupAction
* @see TemplateListConfigurable
*/
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -51,8 +51,8 @@ import kotlin.math.min
* corresponding user interface class, which additionally provides (1) toolbars and buttons for manipulating the model,
* (2) node expansion and selection, and (3) handling for tracking and reversing modifications.
*
* @property originalTemplateList The (read-only) original templates without modifications.
* @property currentTemplateList The current templates, including modifications.
* @param originalTemplateList the (read-only) original templates without modifications
* @param currentTemplateList the current templates, including modifications
*/
@Suppress("detekt:TooManyFunctions") // Cannot be avoided
class TemplateJTree(
Expand Down Expand Up @@ -517,7 +517,7 @@ class TemplateJTree(
/**
* The top-level [PopupStep], which includes the default templates and various reference types.
*
* @property templatesOnly `true` if and only if non-[Template] schemes cannot be inserted.
* @param templatesOnly `true` if and only if non-[Template] schemes cannot be inserted
*/
private inner class MainPopupStep(private val templatesOnly: Boolean) : AbstractPopupStep(POPUP_STEP_SCHEMES) {
override fun onChosen(value: Scheme?, finalChoice: Boolean) =
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -13,7 +13,7 @@ import javax.swing.JFormattedTextField
/**
* A [JFormattedTextField] for [LocalDateTime]s, supporting virtually any date-time format as its input.
*
* @property default The default [LocalDateTime] that is returned in case no [value] has ever been set.
* @param default the default [LocalDateTime] that is returned in case no [value] has ever been set
*/
class JDateTimeField(
private val default: LocalDateTime = LocalDateTime.now(),
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -8,7 +8,7 @@ import kotlin.math.min
/**
* A document filter that ensures the document always contains at most [maxLength] characters.
*
* @property maxLength The maximum length of the text in the document, must be at least `1`.
* @param maxLength the maximum length of the text in the document, must be at least `1`
*/
open class MaxLengthDocumentFilter(private val maxLength: Int) : DocumentFilter() {
init {
Expand Down Expand Up @@ -54,8 +54,8 @@ open class MaxLengthDocumentFilter(private val maxLength: Int) : DocumentFilter(
/**
* Similar to [MaxLengthDocumentFilter], but the length cannot go below [minLength] either.
*
* @property minLength The minimum allowable length of the document. If the length is initially below this value, any
* progress made towards this value is accepted but cannot be undone.
* @param minLength the minimum allowable length of the document; if the length is initially below this value, any
* progress made towards this value is accepted but cannot be undone
* @param maxLength the maximum allowable length of the document
*/
class MinMaxLengthDocumentFilter(private val minLength: Int, maxLength: Int) : MaxLengthDocumentFilter(maxLength) {
Expand Down
6 changes: 3 additions & 3 deletions src/main/kotlin/com/fwdekker/randomness/ui/ListenerHelpers.kt
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ fun addChangeListenerTo(vararg components: Any, listener: () -> Unit) {
/**
* A [JBDocumentListener] that invokes [listener] on each event.
*
* @property listener The listener to invoke on any event.
* @param listener the listener to invoke on any event
*/
class SimpleJBDocumentListener(private val listener: (JBDocumentEvent) -> Unit) : JBDocumentListener {
/**
Expand All @@ -64,7 +64,7 @@ class SimpleJBDocumentListener(private val listener: (JBDocumentEvent) -> Unit)
/**
* A [DocumentListener] that invokes [listener] on each event.
*
* @property listener The listener to invoke on any event.
* @param listener the listener to invoke on any event
*/
class SimpleDocumentListener(private val listener: (DocumentEvent) -> Unit) : DocumentListener {
/**
Expand Down Expand Up @@ -92,7 +92,7 @@ class SimpleDocumentListener(private val listener: (DocumentEvent) -> Unit) : Do
/**
* A [TreeModelListener] that invokes [listener] on each event.
*
* @property listener The listener to invoke on any event.
* @param listener the listener to invoke on any event
*/
class SimpleTreeModelListener(private val listener: (TreeModelEvent) -> Unit) : TreeModelListener {
/**
Expand Down
2 changes: 1 addition & 1 deletion src/main/kotlin/com/fwdekker/randomness/ui/PreviewPanel.kt
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ import kotlin.random.Random
* changes. After registering some components with this panel, the preview will be updated whenever those components are
* updated.
*
* @property getScheme Returns a scheme that generates previews. Its random source will be changed.
* @param getScheme returns a scheme that generates previews; its random source will be changed
*/
@Suppress("detekt:LateinitUsage") // Initialized in panel DSL
class PreviewPanel(private val getScheme: () -> Scheme) : Disposable {
Expand Down

0 comments on commit bd8cf5c

Please sign in to comment.