Skip to content

Commit

Permalink
chore: update libs
Browse files Browse the repository at this point in the history
  • Loading branch information
gabrielmaialva33 committed Apr 30, 2022
1 parent eefc344 commit f8f5be2
Show file tree
Hide file tree
Showing 2 changed files with 21 additions and 23 deletions.
42 changes: 20 additions & 22 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,11 @@ fun properties(key: String) = project.findProperty(key).toString()

plugins {
id("java")
id("org.jetbrains.kotlin.jvm") version "1.5.31"
id("org.jetbrains.intellij") version "0.7.3"
id("org.jetbrains.changelog") version "1.1.2"
id("io.gitlab.arturbosch.detekt") version "1.16.0"
id("org.jlleitschuh.gradle.ktlint") version "10.2.0"
id("org.jetbrains.kotlin.jvm") version "1.6.21"
id("org.jetbrains.intellij") version "1.5.3"
id("org.jetbrains.changelog") version "1.3.1"
id("io.gitlab.arturbosch.detekt") version "1.20.0"
id("org.jlleitschuh.gradle.ktlint") version "10.2.1"
}

group = properties("pluginGroup")
Expand All @@ -21,22 +21,21 @@ repositories {
jcenter()
}
dependencies {
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.18.1")
detektPlugins("io.gitlab.arturbosch.detekt:detekt-formatting:1.20.0")
}

intellij {
pluginName = properties("pluginName")
version = properties("platformVersion")
type = properties("platformType")
downloadSources = properties("platformDownloadSources").toBoolean()
updateSinceUntilBuild = true
pluginName.set(properties("pluginName"))
version.set(properties("platformVersion"))
type.set(properties("platformType"))
downloadSources.set(properties("platformDownloadSources").toBoolean())
updateSinceUntilBuild.set(true)

setPlugins(*properties("platformPlugins").split(',').map(String::trim).filter(String::isNotEmpty).toTypedArray())
}

changelog {
version = properties("pluginVersion")
groups = emptyList()
version.set(properties("pluginVersion"))
groups.set(emptyList())
}

detekt {
Expand Down Expand Up @@ -64,11 +63,11 @@ tasks {
}

patchPluginXml {
version(properties("pluginVersion"))
sinceBuild(properties("pluginSinceBuild"))
untilBuild(properties("pluginUntilBuild"))
version.set(properties("pluginVersion"))
sinceBuild.set(properties("pluginSinceBuild"))
untilBuild.set(properties("pluginUntilBuild"))

pluginDescription(File("/Users/gabrielmaia/Documents/Dev/My/jetbrains/README.md").readText().lines().run {
pluginDescription.set(File("/Users/gabrielmaia/Documents/Dev/My/jetbrains/README.md").readText().lines().run {
val start = "<!-- Plugin description -->"
val end = "<!-- Plugin description end -->"

Expand All @@ -78,16 +77,15 @@ tasks {
subList(indexOf(start) + 1, indexOf(end))
}.joinToString("\n").run { markdownToHTML(this) })

changeNotes(changelog.getUnreleased().toHTML())
changeNotes.set(changelog.getUnreleased().toHTML())
}

runPluginVerifier {
ideVersions(properties("pluginVerifierIdeVersions").split(',').map(String::trim).filter(String::isNotEmpty))
ideVersions.set((properties("pluginVerifierIdeVersions").split(',').map(String::trim).filter(String::isNotEmpty)))
}

publishPlugin {
dependsOn("patchChangelog")
token(System.getenv("PUBLISH_TOKEN"))
channels(properties("pluginVersion").split('-').getOrElse(1) { "default" }.split('.').first())
token.set("mrootx")
}
}
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@
# -> https://plugins.jetbrains.com/docs/intellij/intellij-artifacts.html
pluginGroup=com.github.gabrielmaialva33.jetbrains
pluginName=Omni Owl Theme
pluginVersion=1.0.0
pluginVersion=1.0.1
# See https://plugins.jetbrains.com/docs/intellij/build-number-ranges.html
# for insight into build numbers and IntelliJ Platform versions.
pluginSinceBuild=211
Expand Down

0 comments on commit f8f5be2

Please sign in to comment.