Skip to content

Commit

Permalink
Upgrade kotlin plugin to 2.1.0
Browse files Browse the repository at this point in the history
  • Loading branch information
dbarashev committed Dec 5, 2024
1 parent 30f08cd commit 3221886
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ import java.nio.file.Files
import java.nio.file.Paths

plugins {
id "org.jetbrains.kotlin.jvm" version "2.0.21" apply false
id "org.jetbrains.kotlin.jvm" version "2.1.0" apply false
}
ext.distBinDir = file('ganttproject-builder/dist-bin')
ext.pluginsDir = file("ganttproject-builder/dist-bin/plugins/base")
Expand Down Expand Up @@ -64,7 +64,7 @@ allprojects {

subprojects {
group 'biz.ganttproject'
version = "3.3.3312"
version = new Date().format("yy.MM.dd") + "-SNAPSHOT"
}


Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -101,7 +101,7 @@ enum class SpreadsheetFormat(val extension: String) {
CSV("csv"), XLS("xls");

override fun toString(): String {
return "impex.csv.fileformat." + name.toLowerCase()
return "impex.csv.fileformat." + name.lowercase()
}

companion object {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -60,7 +60,7 @@ fun buildFontAwesomeButton(iconName: String, label: String? = null, onClick: ((E
val contentDisplay = if (label == null) ContentDisplay.GRAPHIC_ONLY else ContentDisplay.LEFT
val size = if (label == null) "100%" else "1em"
val result = FontAwesomeIconFactory.get().createIconButton(
FontAwesomeIcon.valueOf(iconName.toUpperCase()), label ?: "", size, size, contentDisplay)
FontAwesomeIcon.valueOf(iconName.uppercase()), label ?: "", size, size, contentDisplay)
if (onClick != null) {
result.addEventHandler(ActionEvent.ACTION, onClick)
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -201,7 +201,7 @@ class BrowserPaneBuilder<T: FolderItem>(

fun withActionButton(btnSetup: (Button) -> Unit) {
this.btnSave = Button().also {
it.textProperty().bind(i18n.create("${this.mode.name.toLowerCase()}.actionLabel"))
it.textProperty().bind(i18n.create("${this.mode.name.lowercase()}.actionLabel"))
}
btnSave.styleClass.add("btn-attention")

Expand Down Expand Up @@ -287,7 +287,7 @@ class BrowserPaneBuilder<T: FolderItem>(
installEventHandlers()
rootPane.apply {
vbox.prefWidth = 400.0
addTitle(this@BrowserPaneBuilder.i18n.create("${this@BrowserPaneBuilder.mode.name.toLowerCase()}.title")).also {
addTitle(this@BrowserPaneBuilder.i18n.create("${this@BrowserPaneBuilder.mode.name.lowercase()}.title")).also {
it.styleClass.add("title-integrated")
}
add(vbox {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -88,7 +88,7 @@ class GPCloudStatusBar(
field = value
Platform.runLater {
toggleConnect.isSelected = value
labelConnect.text = STATUS_BAR_LOCALIZER.formatText("connected.${value.toString().toLowerCase()}")
labelConnect.text = STATUS_BAR_LOCALIZER.formatText("connected.${value.toString().lowercase()}")
GPCloudOptions.cloudStatus.value = if (value) CloudStatus.CONNECTED else CloudStatus.DISCONNECTED
}
}
Expand Down

0 comments on commit 3221886

Please sign in to comment.