File tree Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Expand file tree Collapse file tree 4 files changed +19
-5
lines changed Original file line number Diff line number Diff line change @@ -40,10 +40,18 @@ task packReSharperPlugin(type: nugetPack.class) {
40
40
group = backendGroup
41
41
description = ' Packs resulting DLLs into a NuGet package which is an R# extension.'
42
42
43
- def changelogNotes = changelog. get(productVersion ). withFilter({ line ->
43
+ def changelogNotes = changelog. get(pluginVersion ). withFilter({ line ->
44
44
! line. startsWith(" - Rider:" ) && ! line. startsWith(" - Unity editor:" )
45
45
}). toPlainText(). trim()
46
- def ReleaseNotes = """ New in $productVersion
46
+
47
+ // There's a bug in the changelog plugin that adds extra newlines on Windows, possibly
48
+ // due to Unix/Windows line ending mismatch.
49
+ // Remove this hack once JetBrains/gradle-changelog-plugin#8 is fixed
50
+ if (isWindows) {
51
+ changelogNotes = changelogNotes. replaceAll(" \n\n " , " \r\n " )
52
+ }
53
+
54
+ def ReleaseNotes = """ New in $pluginVersion
47
55
48
56
${ changelogNotes}
49
57
Original file line number Diff line number Diff line change @@ -16,6 +16,7 @@ plugins {
16
16
ext. repoRoot = project. file(" .." )
17
17
ext. isWindows = Os . isFamily(Os . FAMILY_WINDOWS )
18
18
ext. bundledRiderSdkRoot = new File (projectDir, " dependencies" ) // SDK from TC configuration/artifacts
19
+ ext. pluginVersion = ext. productVersion + " ." + ext. maintenanceVersion
19
20
20
21
repositories {
21
22
maven { url " https://cache-redirector.jetbrains.com/intellij-repository/snapshots" }
@@ -36,7 +37,7 @@ wrapper {
36
37
distributionUrl = " https://cache-redirector.jetbrains.com/services.gradle.org/distributions/gradle-${ gradleVersion} -all.zip"
37
38
}
38
39
39
- version " ${ productVersion } .0 .$BuildCounter "
40
+ version " ${ pluginVersion } .$BuildCounter "
40
41
41
42
ext. buildServer = BuildServerKt . initBuildServer(gradle)
42
43
if (buildServer. automatedBuild) {
Original file line number Diff line number Diff line change @@ -71,9 +71,9 @@ intellij {
71
71
patchPluginXml {
72
72
changeNotes """
73
73
<body>
74
- <p><b>New in $p roductVersion </b></p>
74
+ <p><b>New in $p luginVersion </b></p>
75
75
<p>
76
- ${ changelog.get(productVersion ).toHTML()}
76
+ ${ changelog.get(pluginVersion ).toHTML()}
77
77
</p>
78
78
<p>See the <a href="https://github.com/JetBrains/resharper-unity/blob/net202/CHANGELOG.md">CHANGELOG</a> for more details and history.</p>
79
79
</body>
Original file line number Diff line number Diff line change 5
5
BuildCounter =9999
6
6
BuildConfiguration =Debug
7
7
8
+ # Base version for SDK resolution. Also used for plugin version
8
9
productVersion =2020.2
10
+ # Revision for plugin version, appended to productVersion, e.g. 2020.2.2
11
+ # Used for published version, plus retrieving correct changelog notes
12
+ # TODO: Should ideally come from the TC build. Manually incrementing for each release is error prone (RIDER-49929)
13
+ maintenanceVersion =2
9
14
10
15
# Set to "true" on the command line to skip building the dotnet tasks, as a no-op
11
16
# nuget restore and msbuild takes too long
You can’t perform that action at this time.
0 commit comments