Skip to content

Commit a501927

Browse files
committedFeb 28, 2025
build: support for changelog
- initial changelog file. - gradle plugin to automatically manage the changelog (ex: replacing unreleased tag with an actual version at release time)
1 parent 57e48ea commit a501927

File tree

4 files changed

+25
-4
lines changed

4 files changed

+25
-4
lines changed
 

‎CHANGELOG.md

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
# Coder Toolbox Plugin Changelog
2+
3+
## Unreleased
4+
5+
### Added
6+
7+
- initial support for JetBrains Toolbox 2.6.0.38311 with the possibility to manage the workspaces - i.e. start, stop,
8+
update and delete actions and also quick shortcuts to templates, web terminal and dashboard.

‎build.gradle.kts

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ plugins {
1313
alias(libs.plugins.dependency.license.report)
1414
alias(libs.plugins.ksp)
1515
alias(libs.plugins.gradle.wrapper)
16+
alias(libs.plugins.changelog)
1617
}
1718

1819
buildscript {
@@ -50,6 +51,15 @@ dependencies {
5051
testImplementation(kotlin("test"))
5152
}
5253

54+
val pluginId = properties("group")
55+
val pluginVersion = properties("version")
56+
57+
changelog {
58+
version.set(pluginVersion)
59+
groups.set(emptyList())
60+
title.set("Coder Toolbox Plugin Changelog")
61+
}
62+
5363
licenseReport {
5464
renderers = arrayOf(JsonReportRenderer("dependencies.json"))
5565
filters = arrayOf(ExcludeTransitiveDependenciesFilter())
@@ -65,9 +75,6 @@ tasks.test {
6575
useJUnitPlatform()
6676
}
6777

68-
val pluginId = "com.coder.toolbox"
69-
val pluginVersion = "0.0.1"
70-
7178
val assemblePlugin by tasks.registering(Jar::class) {
7279
archiveBaseName.set(pluginId)
7380
from(sourceSets.main.get().output)
@@ -163,3 +170,5 @@ tasks.register("classpath") {
163170
)
164171
}
165172
}
173+
174+
fun properties(key: String) = project.findProperty(key).toString()

‎gradle.properties

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,2 @@
1+
version=0.1.0
2+
group=com.coder.toolbox

‎gradle/libs.versions.toml

Lines changed: 3 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,6 +12,7 @@ exec = "1.12"
1212
moshi = "1.15.1"
1313
ksp = "2.1.0-1.0.29"
1414
retrofit = "2.8.2"
15+
changelog = "2.2.1"
1516

1617
[libraries]
1718
toolbox-core-api = { module = "com.jetbrains.toolbox:core-api", version.ref = "toolbox-plugin-api" }
@@ -40,4 +41,5 @@ kotlin = { id = "org.jetbrains.kotlin.jvm", version.ref = "kotlin" }
4041
serialization = { id = "org.jetbrains.kotlin.plugin.serialization", version.ref = "kotlin" }
4142
dependency-license-report = { id = "com.github.jk1.dependency-license-report", version.ref = "dependency-license-report" }
4243
ksp = { id = "com.google.devtools.ksp", version.ref = "ksp"}
43-
gradle-wrapper = { id = "me.filippov.gradle.jvm.wrapper", version.ref = "gradle-wrapper" }
44+
gradle-wrapper = { id = "me.filippov.gradle.jvm.wrapper", version.ref = "gradle-wrapper" }
45+
changelog = { id = "org.jetbrains.changelog", version.ref = "changelog" }

0 commit comments

Comments
 (0)