Skip to content

Commit d932584

Browse files
Fix Version name generation
1 parent eb80174 commit d932584

File tree

2 files changed

+16
-3
lines changed

2 files changed

+16
-3
lines changed

build.gradle.kts

+15-2
Original file line numberDiff line numberDiff line change
@@ -31,11 +31,24 @@ group = "com.almightyalpaca.jetbrains.plugins.discord"
3131

3232
@Suppress("UNCHECKED_CAST")
3333
val versionDetails = (project.extra["versionDetails"] as Closure<VersionDetails>)()
34-
project.version = versionDetails.lastTag.removePrefix("v") + when {
35-
versionDetails.isCleanTag -> ""
34+
35+
var version = versionDetails.lastTag.removePrefix("v")
36+
version += when (versionDetails.commitDistance) {
37+
0 -> ""
3638
else -> "+${versionDetails.commitDistance}"
3739
}
3840

41+
//if (!versionDetails.isCleanTag) {
42+
// version += "-dirty"
43+
// allprojects {
44+
// listOf("publishPlugin", "uploadIcons", "uploadLanguages").forEach { name ->
45+
// tasks.findByName(name)?.enabled = false
46+
// }
47+
// }
48+
//}
49+
50+
project.version = version
51+
3952
allprojects {
4053
repositories {
4154
mavenCentral()

plugin/CHANGELOG.md

+1-1
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
## v1.1.0 - More bugs to fix
1+
## v1.1.0 - Hidden editions
22
- Fix error when closing a project. (#63)
33
- Beta testers now get a special role in the server
44
- Add IDE names without editions (e.g. 'IntelliJ IDEA' instead of 'IntelliJ IDEA Community')

0 commit comments

Comments
 (0)