Skip to content
GitLab
Menu
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
The Tor Project
Applications
android-components
Commits
47517eb8
Commit
47517eb8
authored
Oct 11, 2019
by
Sebastian Kaspari
Browse files
Fix snapshots: (publish.gradle) Do not override "timestamp" property.
parent
f137f10c
Changes
1
Hide whitespace changes
Inline
Side-by-side
publish.gradle
View file @
47517eb8
...
...
@@ -8,7 +8,7 @@ def libVcsUrl = properties.libVcsUrl
def
libLicense
=
properties
.
libLicense
def
libLicenseUrl
=
properties
.
libLicenseUrl
def
get
Timestamp
()
{
static
def
getLocalPublication
Timestamp
()
{
def
date
=
new
Date
()
return
date
.
format
(
'yyyyMMddHHmmss'
)
}
...
...
@@ -32,7 +32,7 @@ ext.configurePublish = { groupIdArg, artifactIdArg, descriptionArg ->
artifactId
=
artifactIdArg
description
=
descriptionArg
// 'local' is for streamlining local publication workflow.
version
=
config
.
componentsVersion
+
(
project
.
hasProperty
(
'snapshot'
)
?
'-SNAPSHOT'
:
(
project
.
hasProperty
(
'local'
)
?
'-local'
+
getTimestamp
()
:
''
))
version
=
config
.
componentsVersion
+
(
project
.
hasProperty
(
'snapshot'
)
?
'-SNAPSHOT'
:
(
project
.
hasProperty
(
'local'
)
?
'-local'
+
get
LocalPublication
Timestamp
()
:
''
))
licenses
{
license
{
...
...
Write
Preview
Supports
Markdown
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment