Skip to content

Commit d619b2d

Browse files
committed
Integrate GitHub Packages + updated READMEs
1 parent b71af83 commit d619b2d

6 files changed

Lines changed: 51 additions & 16 deletions

File tree

.maven.xml

Lines changed: 37 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -7,18 +7,52 @@
77
<username>${env.SONATYPE_USERNAME}</username>
88
<password>${env.SONATYPE_PASSWORD}</password>
99
</server>
10+
<server>
11+
<!-- GitHub Packages -->
12+
<id>github</id>
13+
<username>devgianlu</username>
14+
<password>${env.GITHUB_TOKEN}</password>
15+
</server>
1016
</servers>
1117

1218
<profiles>
1319
<profile>
1420
<id>ossrh</id>
15-
<activation>
16-
<activeByDefault>true</activeByDefault>
17-
</activation>
1821
<properties>
1922
<gpg.executable>${env.GPG_EXECUTABLE}</gpg.executable>
2023
<gpg.passphrase>${env.GPG_PASSPHRASE}</gpg.passphrase>
2124
</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>
2256
</profile>
2357
</profiles>
2458
</settings>

.travis.yml

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -34,12 +34,19 @@ deploy:
3434
jdk: 'openjdk8'
3535
tags: true
3636
- provider: script
37-
script: mvn deploy --settings .maven.xml -B -U -Prelease
37+
script: mvn deploy --settings .maven.xml -B -U -Prelease,ossrh
3838
on:
3939
repo: librespot-org/librespot-java
4040
jdk: 'openjdk8'
4141
all_branches: true
4242
condition: $TRAVIS_BRANCH = "master" || $TRAVIS_BRANCH = "dev"
43+
- provider: script
44+
script: mvn deploy --settings .maven.xml -B -U -Prelease,github
45+
on:
46+
repo: librespot-org/librespot-java
47+
jdk: 'openjdk8'
48+
all_branches: true
49+
condition: $TRAVIS_BRANCH = "master"
4350

4451
cache:
4552
directories:

api/README.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# librespot-api
1+
# API
22
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-api/badge.svg)](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-api)
33

44
This module depends on `librespot-core` and provides an API to interact with the Spotify client.

lib/README.md

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,7 @@
11
# Library
2+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-lib/badge.svg)](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-lib)
3+
4+
25
This module contains all the necessary components to interact with the Spotify infrastructure, but doesn't require configuration files or additional system resources.
36

47
## Getting started

player/README.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,6 @@
11
# Player
2+
[![Maven Central](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-player/badge.svg)](https://maven-badges.herokuapp.com/maven-central/xyz.gianlu.librespot/librespot-player)
3+
24
This module allows running `librespot-java` in headless mode as a Spotify Connect device.
35

46
## Get started

pom.xml

Lines changed: 0 additions & 11 deletions
Original file line numberDiff line numberDiff line change
@@ -83,17 +83,6 @@
8383
</dependency>
8484
</dependencies>
8585

86-
<distributionManagement>
87-
<snapshotRepository>
88-
<id>ossrh</id>
89-
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
90-
</snapshotRepository>
91-
<repository>
92-
<id>ossrh</id>
93-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
94-
</repository>
95-
</distributionManagement>
96-
9786
<build>
9887
<plugins>
9988
<!-- Run tests -->

0 commit comments

Comments
 (0)