Skip to content

Commit 47d764a

Browse files
committed
Separated OSS and GitHub profiles
1 parent 8cd8b69 commit 47d764a

3 files changed

Lines changed: 30 additions & 35 deletions

File tree

.maven.xml

Lines changed: 0 additions & 31 deletions
Original file line numberDiff line numberDiff line change
@@ -22,37 +22,6 @@
2222
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
2323
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
2424
</properties>
25-
<repositories>
26-
<repository>
27-
<id>ossrh</id>
28-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
29-
<releases>
30-
<enabled>true</enabled>
31-
</releases>
32-
</repository>
33-
<repository>
34-
<id>ossrh</id>
35-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
36-
<snapshots>
37-
<enabled>true</enabled>
38-
</snapshots>
39-
<releases>
40-
<enabled>true</enabled>
41-
</releases>
42-
</repository>
43-
</repositories>
44-
</profile>
45-
<profile>
46-
<id>github</id>
47-
<repositories>
48-
<repository>
49-
<id>github</id>
50-
<url>https://maven.pkg.github.com/librespot-org/librespot-java</url>
51-
<releases>
52-
<enabled>true</enabled>
53-
</releases>
54-
</repository>
55-
</repositories>
5625
</profile>
5726
</profiles>
5827
</settings>

.travis.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -37,14 +37,14 @@ deploy:
3737
jdk: 'openjdk8'
3838
tags: true
3939
- provider: script
40-
script: mvn deploy --settings .maven.xml -B -U -Prelease,ossrh
40+
script: mvn deploy --settings .maven.xml -B -U -Possrh
4141
on:
4242
repo: librespot-org/librespot-java
4343
jdk: 'openjdk8'
4444
all_branches: true
4545
condition: $TRAVIS_BRANCH = "master" || $TRAVIS_BRANCH = "dev"
4646
- provider: script
47-
script: mvn deploy --settings .maven.xml -B -U -Prelease,github
47+
script: mvn deploy --settings .maven.xml -B -U -Pgithub
4848
on:
4949
repo: librespot-org/librespot-java
5050
jdk: 'openjdk8'

pom.xml

Lines changed: 28 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -105,13 +105,24 @@
105105
</activation>
106106
</profile>
107107
<profile>
108-
<id>release</id>
108+
<id>ossrh</id>
109109
<activation>
110110
<property>
111-
<name>release</name>
111+
<name>ossrh</name>
112112
</property>
113113
</activation>
114114

115+
<distributionManagement>
116+
<repository>
117+
<id>ossrh</id>
118+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
119+
</repository>
120+
<snapshotRepository>
121+
<id>ossrh</id>
122+
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
123+
</snapshotRepository>
124+
</distributionManagement>
125+
115126
<build>
116127
<plugins>
117128
<plugin>
@@ -175,5 +186,20 @@
175186
</plugins>
176187
</build>
177188
</profile>
189+
<profile>
190+
<id>github</id>
191+
<activation>
192+
<property>
193+
<name>github</name>
194+
</property>
195+
</activation>
196+
197+
<distributionManagement>
198+
<repository>
199+
<id>github</id>
200+
<url>https://maven.pkg.github.com/librespot-org/librespot-java</url>
201+
</repository>
202+
</distributionManagement>
203+
</profile>
178204
</profiles>
179205
</project>

0 commit comments

Comments
 (0)