Skip to content

Commit dcbe937

Browse files
authored
Merge pull request #99 from domaframework/ci/publish-version-setting
Ci/publish version setting
2 parents 799a395 + ba0c678 commit dcbe937

File tree

3 files changed

+77
-94
lines changed

3 files changed

+77
-94
lines changed

.github/workflows/release.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -51,7 +51,7 @@ jobs:
5151
CERTIFICATE_CHAIN: ${{ secrets.CERTIFICATE_CHAIN }}
5252
PRIVATE_KEY: ${{ secrets.PRIVATE_KEY }}
5353
PRIVATE_KEY_PASSWORD: ${{ secrets.PRIVATE_KEY_PASSWORD }}
54-
run: ./gradlew publishPlugin -Pversion=${{ github.event.release.tag_name }}
54+
run: ./gradlew publishPlugin
5555

5656
# Upload artifact as a release asset
5757
- name: Upload Release Asset

CHANGELOG.md

Lines changed: 58 additions & 81 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22

33
## [Unreleased]
44

5-
## [0.5.0-beta] - 2025-04-14
5+
## [0.5.0] - 2025-04-11
66

77
### New Features
88

@@ -32,35 +32,23 @@
3232
- Update plugin spotless to v7.0.3 ([#78])
3333
- Update dependency org.jetbrains.intellij.platform to v2.5.0 ([#62])
3434

35-
## [0.5.0] - 2025-04-11
35+
[#80]:https://github.com/domaframework/doma-tools-for-intellij/pull/80
36+
[#96]:https://github.com/domaframework/doma-tools-for-intellij/pull/96
37+
[#95]:https://github.com/domaframework/doma-tools-for-intellij/pull/95
38+
[#94]:https://github.com/domaframework/doma-tools-for-intellij/pull/94
39+
[#92]:https://github.com/domaframework/doma-tools-for-intellij/pull/92
40+
[#88]:https://github.com/domaframework/doma-tools-for-intellij/pull/88
41+
[#89]:https://github.com/domaframework/doma-tools-for-intellij/pull/89
42+
[#87]:https://github.com/domaframework/doma-tools-for-intellij/pull/87
43+
[#86]:https://github.com/domaframework/doma-tools-for-intellij/pull/86
44+
[#82]:https://github.com/domaframework/doma-tools-for-intellij/pull/82
45+
[#79]:https://github.com/domaframework/doma-tools-for-intellij/pull/79
46+
[#93]:https://github.com/domaframework/doma-tools-for-intellij/pull/93
47+
[#91]:https://github.com/domaframework/doma-tools-for-intellij/pull/91
48+
[#90]:https://github.com/domaframework/doma-tools-for-intellij/pull/90
49+
[#78]:https://github.com/domaframework/doma-tools-for-intellij/pull/78
50+
[#62]:https://github.com/domaframework/doma-tools-for-intellij/pull/62
3651

37-
### New Features
38-
39-
- Function Parameter Block Code Completion ([#80])
40-
41-
### Bug Fixes
42-
43-
- Add option --no-configuration-cache ([#96])
44-
- Execute the required processing within `doLast`. ([#95])
45-
- Call project before the task execution phase. ([#94])
46-
- Null check for virtualFile ([#92])
47-
- SQL format call log ([#88])
48-
- Prevents the post processor from running if the usage flag is False ([#89])
49-
- Strengthen checks when referencing nullable objects. ([#87])
50-
- Fix/formatter indent ([#86])
51-
- inspection in function parameters ([#82])
52-
- Fix:Strings are concatenated when completing code for % directives ([#79])
53-
54-
### Maintenance
55-
56-
- Automating development version updates ([#93])
57-
- Add beta to Build Version ([#91])
58-
59-
### Dependency Updates
60-
61-
- Update plugin org.gradle.toolchains.foojay-resolver-convention to v0.10.0 ([#90])
62-
- Update plugin spotless to v7.0.3 ([#78])
63-
- Update dependency org.jetbrains.intellij.platform to v2.5.0 ([#62])
6452

6553
## [0.4.0] - 2025-04-07
6654

@@ -77,6 +65,12 @@
7765
- Update dependency com.google.googlejavaformat:google-java-format to v1.26.0 ([#68])
7866
- Update dependency org.jetbrains.kotlin.jvm to v2.1.20 ([#61])
7967

68+
[#69]:https://github.com/domaframework/doma-tools-for-intellij/pull/69
69+
[#70]:https://github.com/domaframework/doma-tools-for-intellij/pull/70
70+
[#68]:https://github.com/domaframework/doma-tools-for-intellij/pull/68
71+
[#61]:https://github.com/domaframework/doma-tools-for-intellij/pull/61
72+
73+
8074
## [0.3.2] - 2025-03-27
8175

8276
### Bug Fixes
@@ -99,6 +93,19 @@
9993

10094
- Update dependency ch.qos.logback:logback-classic to v1.5.18 ([#60])
10195

96+
[#56]:https://github.com/domaframework/doma-tools-for-intellij/pull/56
97+
[#57]:https://github.com/domaframework/doma-tools-for-intellij/pull/57
98+
[#58]:https://github.com/domaframework/doma-tools-for-intellij/pull/58
99+
[#59]:https://github.com/domaframework/doma-tools-for-intellij/pull/59
100+
[#64]:https://github.com/domaframework/doma-tools-for-intellij/pull/64
101+
[#65]:https://github.com/domaframework/doma-tools-for-intellij/pull/65
102+
[#48]:https://github.com/domaframework/doma-tools-for-intellij/pull/48
103+
[#49]:https://github.com/domaframework/doma-tools-for-intellij/pull/49
104+
[#45]:https://github.com/domaframework/doma-tools-for-intellij/pull/45
105+
[#43]:https://github.com/domaframework/doma-tools-for-intellij/pull/43
106+
[#60]:https://github.com/domaframework/doma-tools-for-intellij/pull/60
107+
108+
102109
## [0.3.1] - 2025-03-11
103110

104111
### Bug Fixes
@@ -124,6 +131,22 @@
124131
- Update dependency org.slf4j:slf4j-api to v2.0.17 ([#8])
125132
- Update dependency ch.qos.logback:logback-classic to v1.5.17 ([#7])
126133

134+
[#20]:https://github.com/domaframework/doma-tools-for-intellij/pull/20
135+
[#21]:https://github.com/domaframework/doma-tools-for-intellij/pull/21
136+
[#35]:https://github.com/domaframework/doma-tools-for-intellij/pull/35
137+
[#34]:https://github.com/domaframework/doma-tools-for-intellij/pull/34
138+
[#26]:https://github.com/domaframework/doma-tools-for-intellij/pull/26
139+
[#25]:https://github.com/domaframework/doma-tools-for-intellij/pull/25
140+
[#27]:https://github.com/domaframework/doma-tools-for-intellij/pull/27
141+
[#10]:https://github.com/domaframework/doma-tools-for-intellij/pull/10
142+
[#24]:https://github.com/domaframework/doma-tools-for-intellij/pull/24
143+
[#9]:https://github.com/domaframework/doma-tools-for-intellij/pull/9
144+
[#12]:https://github.com/domaframework/doma-tools-for-intellij/pull/12
145+
[#11]:https://github.com/domaframework/doma-tools-for-intellij/pull/11
146+
[#8]:https://github.com/domaframework/doma-tools-for-intellij/pull/8
147+
[#7]:https://github.com/domaframework/doma-tools-for-intellij/pull/7
148+
149+
127150
## [0.3.0] - 2025-03-07
128151

129152
### Dao Support Features
@@ -156,55 +179,9 @@
156179
- Rename SQL file directory when renaming Dao
157180
- Change Dao package name or SQL file directory configuration when changing configuration
158181

159-
[Unreleased]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.5.0-beta...HEAD
160-
[0.5.0]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.4.0...v0.5.0
161-
[0.5.0-beta]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.5.0...v0.5.0-beta
162-
[0.4.0]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.3.2...v0.4.0
163-
[0.3.2]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.3.1...v0.3.2
164-
[0.3.1]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.3.0...v0.3.1
165-
[0.3.0]: https://github.com/domaframework/doma-tools-for-intellij/commits/v0.3.0
166-
[#10]: https://github.com/domaframework/doma-tools-for-intellij/pull/10
167-
[#11]: https://github.com/domaframework/doma-tools-for-intellij/pull/11
168-
[#12]: https://github.com/domaframework/doma-tools-for-intellij/pull/12
169-
[#20]: https://github.com/domaframework/doma-tools-for-intellij/pull/20
170-
[#21]: https://github.com/domaframework/doma-tools-for-intellij/pull/21
171-
[#24]: https://github.com/domaframework/doma-tools-for-intellij/pull/24
172-
[#25]: https://github.com/domaframework/doma-tools-for-intellij/pull/25
173-
[#26]: https://github.com/domaframework/doma-tools-for-intellij/pull/26
174-
[#27]: https://github.com/domaframework/doma-tools-for-intellij/pull/27
175-
[#34]: https://github.com/domaframework/doma-tools-for-intellij/pull/34
176-
[#35]: https://github.com/domaframework/doma-tools-for-intellij/pull/35
177-
[#43]: https://github.com/domaframework/doma-tools-for-intellij/pull/43
178-
[#45]: https://github.com/domaframework/doma-tools-for-intellij/pull/45
179-
[#48]: https://github.com/domaframework/doma-tools-for-intellij/pull/48
180-
[#49]: https://github.com/domaframework/doma-tools-for-intellij/pull/49
181-
[#56]: https://github.com/domaframework/doma-tools-for-intellij/pull/56
182-
[#57]: https://github.com/domaframework/doma-tools-for-intellij/pull/57
183-
[#58]: https://github.com/domaframework/doma-tools-for-intellij/pull/58
184-
[#59]: https://github.com/domaframework/doma-tools-for-intellij/pull/59
185-
[#60]: https://github.com/domaframework/doma-tools-for-intellij/pull/60
186-
[#61]: https://github.com/domaframework/doma-tools-for-intellij/pull/61
187-
[#62]: https://github.com/domaframework/doma-tools-for-intellij/pull/62
188-
[#64]: https://github.com/domaframework/doma-tools-for-intellij/pull/64
189-
[#65]: https://github.com/domaframework/doma-tools-for-intellij/pull/65
190-
[#68]: https://github.com/domaframework/doma-tools-for-intellij/pull/68
191-
[#69]: https://github.com/domaframework/doma-tools-for-intellij/pull/69
192-
[#7]: https://github.com/domaframework/doma-tools-for-intellij/pull/7
193-
[#70]: https://github.com/domaframework/doma-tools-for-intellij/pull/70
194-
[#78]: https://github.com/domaframework/doma-tools-for-intellij/pull/78
195-
[#79]: https://github.com/domaframework/doma-tools-for-intellij/pull/79
196-
[#8]: https://github.com/domaframework/doma-tools-for-intellij/pull/8
197-
[#80]: https://github.com/domaframework/doma-tools-for-intellij/pull/80
198-
[#82]: https://github.com/domaframework/doma-tools-for-intellij/pull/82
199-
[#86]: https://github.com/domaframework/doma-tools-for-intellij/pull/86
200-
[#87]: https://github.com/domaframework/doma-tools-for-intellij/pull/87
201-
[#88]: https://github.com/domaframework/doma-tools-for-intellij/pull/88
202-
[#89]: https://github.com/domaframework/doma-tools-for-intellij/pull/89
203-
[#9]: https://github.com/domaframework/doma-tools-for-intellij/pull/9
204-
[#90]: https://github.com/domaframework/doma-tools-for-intellij/pull/90
205-
[#91]: https://github.com/domaframework/doma-tools-for-intellij/pull/91
206-
[#92]: https://github.com/domaframework/doma-tools-for-intellij/pull/92
207-
[#93]: https://github.com/domaframework/doma-tools-for-intellij/pull/93
208-
[#94]: https://github.com/domaframework/doma-tools-for-intellij/pull/94
209-
[#95]: https://github.com/domaframework/doma-tools-for-intellij/pull/95
210-
[#96]: https://github.com/domaframework/doma-tools-for-intellij/pull/96
182+
[Unreleased]: https://github.com/domaframework/doma-tools-for-intellij/commits/main
183+
[0.3.0]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.3.0
184+
[0.3.1]: https://github.com/domaframework/doma-tools-for-intellij/compare/v0.3.0...0.3.1
185+
[0.3.2]: https://github.com/domaframework/doma-tools-for-intellij/compare/0.3.1...0.3.2
186+
[0.4.0]: https://github.com/domaframework/doma-tools-for-intellij/compare/0.3.2...0.4.0
187+
[0.5.0]: https://github.com/domaframework/doma-tools-for-intellij/compare/0.4.0...0.5.0

build.gradle.kts

Lines changed: 18 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -98,7 +98,7 @@ dependencies {
9898

9999
intellijPlatform {
100100
pluginConfiguration {
101-
version = providers.gradleProperty("pluginVersion")
101+
version = providers.gradleProperty("pluginVersion").map { it.substringBefore('-', "") }
102102
description =
103103
providers.fileContents(layout.projectDirectory.file("README.md")).asText.map {
104104
val start = "<!-- Plugin description -->"
@@ -114,16 +114,19 @@ intellijPlatform {
114114

115115
val changelog = project.changelog
116116
changeNotes =
117-
providers.gradleProperty("pluginVersion").map { pluginVersion ->
118-
with(changelog) {
119-
renderItem(
120-
(getOrNull(pluginVersion) ?: getUnreleased())
121-
.withHeader(false)
122-
.withEmptySections(false),
123-
Changelog.OutputType.HTML,
124-
)
117+
providers
118+
.gradleProperty("pluginVersion")
119+
.map { it.substringBefore('-', "") }
120+
.map { pluginVersion ->
121+
with(changelog) {
122+
renderItem(
123+
(getOrNull(pluginVersion) ?: getUnreleased())
124+
.withHeader(false)
125+
.withEmptySections(false),
126+
Changelog.OutputType.HTML,
127+
)
128+
}
125129
}
126-
}
127130

128131
ideaVersion {
129132
sinceBuild = providers.gradleProperty("pluginSinceBuild")
@@ -138,9 +141,12 @@ intellijPlatform {
138141
}
139142

140143
publishing {
144+
// TODO: During release, refrain from reformatting the version number.
145+
// Instead, set the release version before tagging to allow releases to any chosen channel.
141146
token = providers.environmentVariable("PUBLISH_TOKEN")
142-
channels =
143-
providers.gradleProperty("pluginVersion").map { listOf(it.substringAfter('-', "").substringBefore('.').ifEmpty { "default" }) }
147+
version =
148+
providers.gradleProperty("pluginVersion").map { it.substringBefore('-', "") }
149+
channels = listOf("default")
144150
}
145151

146152
pluginVerification {

0 commit comments

Comments
 (0)