Skip to content
This repository was archived by the owner on Feb 12, 2022. It is now read-only.

Commit fb982c1

Browse files
committed
Fix for sonatype release.
1 parent 5edb94d commit fb982c1

4 files changed

Lines changed: 4 additions & 24 deletions

File tree

.travis.yml

Lines changed: 2 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -21,17 +21,9 @@ deploy:
2121
condition: $TRAVIS_BRANCH =~ ^master$
2222
# This provider handles tags of version 1.0
2323
- provider: script
24-
script: bash scripts/release.sh $TRAVIS_TAG
24+
script: mvn --settings ~/settings.xml org.codehaus.mojo:versions-maven-plugin:2.1:set -DnewVersion=$TRAVIS_TAG; mvn clean deploy --settings ~/settings.xml -DskipTests=true -B -U; mvn clean deploy --settings ~/settings.xml -DskipTests=true -Psonatype -B -U
2525
skip_cleanup: true
2626
on:
2727
repo: raml-org/raml-java-parser
2828
tags: true
29-
condition: $TRAVIS_TAG =~ ^1\.[0-9]+\.[0-9]+$
30-
# This provider handles tags of version 0.8
31-
- provider: script
32-
script: bash scripts/release.sh $TRAVIS_TAG
33-
skip_cleanup: true
34-
on:
35-
repo: raml-org/raml-java-parser
36-
tags: true
37-
condition: $TRAVIS_TAG =~ ^0\.[0-9]+\.[0-9]+$
29+
condition: $TRAVIS_TAG =~ ^1\.[0-9]+\.[0-9]+$

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -168,7 +168,7 @@
168168
<plugin>
169169
<groupId>org.sonatype.plugins</groupId>
170170
<artifactId>nexus-staging-maven-plugin</artifactId>
171-
<version>1.6.5</version>
171+
<version>1.6.6</version>
172172
<extensions>true</extensions>
173173
<configuration>
174174
<serverId>ossrh</serverId>
@@ -179,7 +179,7 @@
179179
<plugin>
180180
<groupId>org.apache.maven.plugins</groupId>
181181
<artifactId>maven-source-plugin</artifactId>
182-
<version>2.4</version>
182+
<version>3.0.1</version>
183183
<executions>
184184
<execution>
185185
<id>attach-sources</id>

scripts/open-next-release.sh

Lines changed: 0 additions & 7 deletions
This file was deleted.

scripts/release.sh

Lines changed: 0 additions & 5 deletions
This file was deleted.

0 commit comments

Comments
 (0)