You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardexpand all lines: UPGRADE.md
+43-4
Original file line number
Diff line number
Diff line change
@@ -4,15 +4,19 @@
4
4
5
5
### Location of git configuration changed
6
6
7
+
**MANDATORY**
8
+
9
+
If you are using one or more of the git options (*requireBranch*, *pushToRemote* or *pushToCurrentBranch*) you need to adapt your configuration.
10
+
7
11
In you build.gradle either replace:
8
12
9
-
```git.option = 'value'``` with ```release.git.option = 'value'```
13
+
```git.<option> = '<value>'``` with ```release.git.<option> = '<value>'```
10
14
11
15
or
12
16
13
17
```
14
18
git {
15
-
option = value
19
+
<option> = <value>
16
20
}
17
21
```
18
22
@@ -21,24 +25,59 @@ with
21
25
```
22
26
release {
23
27
git {
24
-
option = value
28
+
<option> = <value>
25
29
}
26
30
}
27
31
```
28
32
29
33
### Automatically uploading artifacts on release
30
34
35
+
**RECOMMENDED**
36
+
31
37
Formally it was usually done by adding
32
38
33
39
```
34
40
createReleaseTag.dependsOn uploadArchives
35
41
```
36
42
37
-
This **should not** be done anymore. (Although this will still work, but may have undesired side effects)
43
+
This **should not** be done anymore. (Although this will still continue to work, but may have undesired side effects in the future)
38
44
39
45
Instead use
40
46
41
47
```
42
48
afterReleaseBuild.dependsOn uploadArchives
43
49
```
44
50
51
+
### Migrate to new ``tagTemplate`` configuration
52
+
53
+
**RECOMMENDED**
54
+
55
+
If you are using either ``includeProjectNameInTag`` or ``tagPrefix`` you should consider moving to ``tagTemplate``. The two options have been deprecated and will be removed in the future.
56
+
57
+
These two scenarios should make it easy to get the same result as before:
58
+
59
+
##### Scenario #1
60
+
61
+
*``includeProjectNameInTag`` not set or set to false
62
+
*``tagPrefix`` set to "something"
63
+
64
+
Remove ``includeProjectNameInTag`` or ``tagPrefix`` and add
65
+
```
66
+
release {
67
+
tagTemplate = "something-${version}"
68
+
}
69
+
```
70
+
71
+
##### Scenario #2
72
+
73
+
*``includeProjectNameInTag`` set to true
74
+
75
+
Remove ``includeProjectNameInTag`` or ``tagPrefix`` and add
0 commit comments