mirror of
https://github.com/InsanusMokrassar/KotlinPublicationScriptsBuilder.git
synced 2024-11-22 00:03:57 +00:00
updates
This commit is contained in:
parent
46d6d429bb
commit
ceff1eb1ef
@ -2,6 +2,9 @@ package dev.inmo.kmppscriptbuilder.core.models
|
|||||||
|
|
||||||
import kotlinx.serialization.Serializable
|
import kotlinx.serialization.Serializable
|
||||||
|
|
||||||
|
const val defaultProjectName = "\${project.name}"
|
||||||
|
const val defaultProjectDescription = "\${project.name}"
|
||||||
|
|
||||||
@Serializable
|
@Serializable
|
||||||
data class MavenConfig(
|
data class MavenConfig(
|
||||||
val name: String,
|
val name: String,
|
||||||
|
@ -2,8 +2,7 @@ package dev.inmo.kmppscriptbuilder.desktop.views
|
|||||||
|
|
||||||
import androidx.compose.foundation.layout.ColumnScope
|
import androidx.compose.foundation.layout.ColumnScope
|
||||||
import androidx.compose.runtime.*
|
import androidx.compose.runtime.*
|
||||||
import dev.inmo.kmppscriptbuilder.core.models.MavenConfig
|
import dev.inmo.kmppscriptbuilder.core.models.*
|
||||||
import dev.inmo.kmppscriptbuilder.core.models.SonatypeRepository
|
|
||||||
import dev.inmo.kmppscriptbuilder.desktop.utils.*
|
import dev.inmo.kmppscriptbuilder.desktop.utils.*
|
||||||
|
|
||||||
class MavenInfoView : VerticalView("Project information") {
|
class MavenInfoView : VerticalView("Project information") {
|
||||||
@ -18,8 +17,8 @@ class MavenInfoView : VerticalView("Project information") {
|
|||||||
|
|
||||||
var mavenConfig: MavenConfig
|
var mavenConfig: MavenConfig
|
||||||
get() = MavenConfig(
|
get() = MavenConfig(
|
||||||
projectNameProperty,
|
projectNameProperty.ifBlank { defaultProjectName },
|
||||||
projectDescriptionProperty,
|
projectDescriptionProperty.ifBlank { defaultProjectDescription },
|
||||||
projectUrlProperty,
|
projectUrlProperty,
|
||||||
projectVcsUrlProperty,
|
projectVcsUrlProperty,
|
||||||
includeGpgSignProperty,
|
includeGpgSignProperty,
|
||||||
|
@ -6,11 +6,11 @@ kotlin.incremental.js=true
|
|||||||
android.useAndroidX=true
|
android.useAndroidX=true
|
||||||
android.enableJetifier=true
|
android.enableJetifier=true
|
||||||
|
|
||||||
kotlin_version=1.4.31
|
kotlin_version=1.4.32
|
||||||
kotlin_coroutines_version=1.4.3
|
kotlin_coroutines_version=1.4.3
|
||||||
kotlin_serialisation_core_version=1.1.0
|
kotlin_serialisation_core_version=1.1.0
|
||||||
ktor_version=1.5.2
|
ktor_version=1.5.3
|
||||||
micro_utils_version=0.4.29
|
micro_utils_version=0.4.36
|
||||||
|
|
||||||
compose_version=0.3.2
|
compose_version=0.3.2
|
||||||
|
|
||||||
|
@ -1,7 +1,6 @@
|
|||||||
package dev.inmo.kmppscriptbuilder.web.views
|
package dev.inmo.kmppscriptbuilder.web.views
|
||||||
|
|
||||||
import dev.inmo.kmppscriptbuilder.core.models.MavenConfig
|
import dev.inmo.kmppscriptbuilder.core.models.*
|
||||||
import dev.inmo.kmppscriptbuilder.core.models.SonatypeRepository
|
|
||||||
import kotlinx.browser.document
|
import kotlinx.browser.document
|
||||||
import org.w3c.dom.HTMLElement
|
import org.w3c.dom.HTMLElement
|
||||||
import org.w3c.dom.HTMLInputElement
|
import org.w3c.dom.HTMLInputElement
|
||||||
@ -18,8 +17,8 @@ class MavenProjectInfoView : View {
|
|||||||
|
|
||||||
var mavenConfig: MavenConfig
|
var mavenConfig: MavenConfig
|
||||||
get() = MavenConfig(
|
get() = MavenConfig(
|
||||||
nameElement.value,
|
nameElement.value.ifBlank { defaultProjectName },
|
||||||
descriptionElement.value,
|
descriptionElement.value.ifBlank { defaultProjectDescription },
|
||||||
urlElement.value,
|
urlElement.value,
|
||||||
vcsUrlElement.value,
|
vcsUrlElement.value,
|
||||||
includeGpgElement.checked,
|
includeGpgElement.checked,
|
||||||
|
Loading…
Reference in New Issue
Block a user