Maven: Split Maven repository settings out to a separate def file
This will allow a cleaner patch when forking Gerrit to deploy to a different repository than the official release repository on Maven Central. Change-Id: Ic2ec2acb1fe9512782f8b1fe0b7e2ad2131e099d
This commit is contained in:
parent
10d85f593c
commit
35fda70805
|
@ -1,12 +1,14 @@
|
|||
include_defs('//VERSION')
|
||||
include_defs('//tools/maven/package.defs')
|
||||
include_defs('//tools/maven/repository.defs')
|
||||
|
||||
URL = 'https://oss.sonatype.org/content/repositories/snapshots' \
|
||||
if GERRIT_VERSION.endswith('-SNAPSHOT') else \
|
||||
'https://oss.sonatype.org/service/local/staging/deploy/maven2'
|
||||
if GERRIT_VERSION.endswith('-SNAPSHOT'):
|
||||
URL = MAVEN_SNAPSHOT_URL
|
||||
else:
|
||||
URL = MAVEN_RELEASE_URL
|
||||
|
||||
maven_package(
|
||||
repository = 'sonatype-nexus-staging',
|
||||
repository = MAVEN_REPOSITORY,
|
||||
url = URL,
|
||||
version = GERRIT_VERSION,
|
||||
jar = {
|
||||
|
|
|
@ -0,0 +1,3 @@
|
|||
MAVEN_REPOSITORY = 'sonatype-nexus-staging'
|
||||
MAVEN_SNAPSHOT_URL = 'https://oss.sonatype.org/content/repositories/snapshots'
|
||||
MAVEN_RELEASE_URL = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
|
Loading…
Reference in New Issue