File tree Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Expand file tree Collapse file tree 2 files changed +8
-4
lines changed Original file line number Diff line number Diff line change 74
74
75
75
steps :
76
76
- uses : actions/checkout@v2
77
+ with :
78
+ fetch-depth : 0 # Fetch history and tags; necessary for computing project version.
77
79
- name : Set up JDK ${{ env.JDK_VERSION }}
78
80
uses : actions/setup-java@v2
79
81
with :
Original file line number Diff line number Diff line change @@ -5,6 +5,9 @@ plugins {
5
5
`java- library`
6
6
`maven- publish`
7
7
8
+ // Versioning
9
+ id(" pl.allegro.tech.build.axion-release" ) version " 1.13.6"
10
+
8
11
// Style checking
9
12
id(" com.diffplug.spotless" ) version " 6.2.2"
10
13
@@ -17,10 +20,9 @@ plugins {
17
20
18
21
group = " io.github.apl-cornell"
19
22
20
- // Compute version from GitHub tag if available
21
- System .getenv(" GITHUB_REF" )?.substringAfterLast(' /' )?.let { gitTag ->
22
- version = gitTag
23
- }
23
+ // Compute version from source control
24
+ scmVersion.tag.prefix = " "
25
+ version = scmVersion.version
24
26
25
27
/* * Java Version */
26
28
You can’t perform that action at this time.
0 commit comments