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
Jamie Mansfield
asm
Commits
2dc334cb
Commit
2dc334cb
authored
Mar 17, 2018
by
Eric Bruneton
Browse files
Configure the Nexus staging repository and use -SNAPSHOT versions by default.
parent
08841ae7
Changes
1
Hide whitespace changes
Inline
Side-by-side
build.gradle
View file @
2dc334cb
...
...
@@ -41,7 +41,7 @@ subprojects {
repositories
{
mavenCentral
()
}
apply
plugin:
'java'
group
=
'org.ow2.asm'
version
=
'6.1
'
version
=
'6.1
.1'
+
(
rootProject
.
hasProperty
(
'release'
)
?
''
:
'-SNAPSHOT'
)
sourceCompatibility
=
'1.6'
targetCompatibility
=
'1.6'
test
{
useJUnitPlatform
()
}
...
...
@@ -300,9 +300,14 @@ configure(subprojects.findAll { it.provides }) {
// project POM and to upload it, with the classes, sources and Javadoc jars.
apply
plugin:
'maven'
uploadArchives
.
repositories
.
mavenDeployer
{
if
(
rootProject
.
hasProperty
(
'nexusUserName'
))
{
repository
(
url:
'http://repository.ow2.org/nexus/service/local/'
+
'staging/deploy/maven2'
)
{
def
nexusUserName
=
System
.
env
.
NEXUS_USER_NAME
def
nexusPassword
=
System
.
env
.
NEXUS_PASSWORD
if
(
nexusUserName
!=
null
)
{
def
baseUrl
=
'http://repository.ow2.org/nexus/'
repository
(
url:
baseUrl
+
'service/local/staging/deploy/maven2'
)
{
authentication
(
userName:
nexusUserName
,
password:
nexusPassword
)
}
snapshotRepository
(
url:
baseUrl
+
'content/repositories/snapshots'
)
{
authentication
(
userName:
nexusUserName
,
password:
nexusPassword
)
}
}
else
{
...
...
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