File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1+ <settings xmlns : xsi =" http://www.w3.org/2001/XMLSchema-instance" xmlns =" http://maven.apache.org/SETTINGS/1.0.0"
2+ xsi : schemaLocation =" http://maven.apache.org/SETTINGS/1.0.0 http://maven.apache.org/xsd/settings-1.0.0.xsd" >
3+ <servers >
4+ <server >
5+ <!-- Maven Central Deployment -->
6+ <id >ossrh</id >
7+ <username >${env.SONATYPE_USERNAME}</username >
8+ <password >${env.SONATYPE_PASSWORD}</password >
9+ </server >
10+ </servers >
11+
12+ <profiles >
13+ <profile >
14+ <id >ossrh</id >
15+ <activation >
16+ <activeByDefault >true</activeByDefault >
17+ </activation >
18+ <properties >
19+ <gpg .executable>${env.GPG_EXECUTABLE}</gpg .executable>
20+ <gpg .passphrase>${env.GPG_PASSPHRASE}</gpg .passphrase>
21+ </properties >
22+ </profile >
23+ </profiles >
24+ </settings >
Original file line number Diff line number Diff line change 1- language : java
1+ language : java
2+
3+ before_install :
4+ - echo $GPG_SECRET_KEYS | base64 --decode | $GPG_EXECUTABLE --import
5+ - echo $GPG_OWNERTRUST | base64 --decode | $GPG_EXECUTABLE --import-ownertrust
6+
7+ install :
8+ mvn --settings .maven.xml install -DskipTests=true -Dgpg.skip -Dmaven.javadoc.skip=true -B -V
9+
10+ script :
11+ mvn clean deploy --settings .maven.xml -DskipTests=true -B -U -Prelease
12+
13+ before_deploy :
14+ - mvn help:evaluate -N -Dexpression=project.version|grep -v '\['
15+ - export project_version=$(mvn help:evaluate -N -Dexpression=project.version|grep -v '\[')
16+
17+ deploy :
18+ provider : releases
19+ skip_cleanup : true
20+ name : $project_version
21+ api_key :
22+ secure : qD8WixE5dpxKyiDEEPdrWVchBxMw7NKLrSNeUEJIb+p9Wq/yJ4cf3DScXYJToFJ/SB5JPCjjyj7rudOJ2wUMydJ01UGVJ+vbR/dTIXjtQxRJ7bDuqq4AGeUjZvDeBhigrA6hxWsqkzbRZzPEMcsWPa77Bs5drwiSJVixS2kLWgH3cKzLHZaqRQnlOeX20MHcPLFr/K0buFBg+qKUazx/z56qJuT0hh6+DYbXhdB9qK3bcGgUPE7rEaq6qfK0o3bZibCxtxFpMQR9qNXHnxfV5hUnq/k/YHQUNwFVo8kA3mSniYd9LxycLQ5nlwcbA2EgjKoJmQ3GYg1VLNsXVbWbw4aAl54h/7k7JzlCfpmM4DDrN62hGYzcoU+dD1WkAQob7a20pmmUmZI5LYUOJPIrpS98/DjDQdnkGeU/waCswSmjIYCqWhX2n0F1yYmC8X9nD2tRUCSyAAT3jFotLyRCsbjy1zg5xBFDw/Lgvd2ixgsnlVVKJrAo4q396WWstcL/2oGR/+J5K/Otlh0BBjJ+ND6tlKqOMFVLm6sE8WL0490Y9C2kumf9kDXV3QqganPnGS7/2MqqJBHrqhDXUbSZhkcExYfZwFjMqHA+Fi6yAFUvtNBC5W6nydWi2Nh1k5QiHtxCnukVnGU7iN0o+tT/H5d3UEklT+xIE0tILWcrXII=
23+ file :
24+ - core/target/librespot-java-core-jar-with-dependencies.jar
25+ - core/target/librespot-java-core-javadoc.jar
26+ - core/target/librespot-java-core-sources.jar
27+ - api/target/librespot-java-api-jar-with-dependencies.jar
28+ - api/target/librespot-java-api-javadoc.jar
29+ - api/target/librespot-java-api-sources.jar
30+ - api-client/target/librespot-java-api-client-jar-with-dependencies.jar
31+ - api-client/target/librespot-java-api-client-javadoc.jar
32+ - api-client/target/librespot-java-api-client-sources.jar
33+ on :
34+ repo : librespot-org/librespot-java
35+
36+ cache :
37+ directories :
38+ - ~/.m2/repository
Original file line number Diff line number Diff line change 8080 <url >https://oss.sonatype.org/service/local/staging/deploy/maven2</url >
8181 </repository >
8282 </distributionManagement >
83-
84- <build >
85- <plugins >
86- <plugin >
87- <groupId >org.apache.maven.plugins</groupId >
88- <artifactId >maven-source-plugin</artifactId >
89- <version >3.0.1</version >
90- <executions >
91- <execution >
92- <id >attach-sources</id >
93- <goals >
94- <goal >jar-no-fork</goal >
95- </goals >
96- </execution >
97- </executions >
98- </plugin >
99- <plugin >
100- <groupId >org.apache.maven.plugins</groupId >
101- <artifactId >maven-javadoc-plugin</artifactId >
102- <version >3.0.1</version >
103- <executions >
104- <execution >
105- <id >attach-javadocs</id >
106- <goals >
107- <goal >jar</goal >
108- </goals >
109- </execution >
110- </executions >
111- <configuration >
112- <failOnError >false</failOnError >
113- </configuration >
114- </plugin >
115- <plugin >
116- <groupId >org.apache.maven.plugins</groupId >
117- <artifactId >maven-gpg-plugin</artifactId >
118- <version >1.6</version >
119- <executions >
120- <execution >
121- <id >sign-artifacts</id >
122- <phase >verify</phase >
123- <goals >
124- <goal >sign</goal >
125- </goals >
126- </execution >
127- </executions >
128- </plugin >
129-
130- <plugin >
131- <groupId >org.apache.maven.plugins</groupId >
132- <artifactId >maven-deploy-plugin</artifactId >
133- <version >2.8.2</version >
134- <dependencies >
135- <dependency >
136- <groupId >org.jvnet.wagon-svn</groupId >
137- <artifactId >wagon-svn</artifactId >
138- <version >1.12</version >
139- </dependency >
140- </dependencies >
141- </plugin >
142- </plugins >
143- </build >
14483</project >
Original file line number Diff line number Diff line change 1+ <profiles >
2+ <!-- Activate using the release property: mvn clean install -Prelease -->
3+ <profile >
4+ <id >release</id >
5+ <activation >
6+ <property >
7+ <name >release</name >
8+ </property >
9+ </activation >
10+
11+ <build >
12+ <plugins >
13+ <plugin >
14+ <groupid >org.apache.maven.plugins</groupid >
15+ <artifactid >maven-source-plugin</artifactid >
16+ <version >3.0.1</version >
17+ <executions >
18+ <execution >
19+ <id >attach-sources</id >
20+ <goals >
21+ <goal >jar-no-fork</goal >
22+ </goals >
23+ </execution >
24+ </executions >
25+ </plugin >
26+ <plugin >
27+ <groupid >org.apache.maven.plugins</groupid >
28+ <artifactid >maven-javadoc-plugin</artifactid >
29+ <version >3.0.1</version >
30+ <executions >
31+ <execution >
32+ <id >attach-javadocs</id >
33+ <goals >
34+ <goal >jar</goal >
35+ </goals >
36+ </execution >
37+ </executions >
38+ <configuration >
39+ <failOnError >false</failOnError >
40+ </configuration >
41+ </plugin >
42+
43+ <!-- To release to Maven central -->
44+ <plugin >
45+ <groupid >org.sonatype.plugins</groupid >
46+ <artifactid >nexus-staging-maven-plugin</artifactid >
47+ <version >1.6.8</version >
48+ <extensions >true</extensions >
49+ <configuration >
50+ <serverid >ossrh</serverid >
51+ <nexusurl >https://oss.sonatype.org/</nexusurl >
52+ <autoreleaseafterclose >true</autoreleaseafterclose >
53+ </configuration >
54+ </plugin >
55+
56+ <!-- To sign the artifacts -->
57+ <plugin >
58+ <groupid >org.apache.maven.plugins</groupid >
59+ <artifactid >maven-gpg-plugin</artifactid >
60+ <version >1.6</version >
61+ <executions >
62+ <execution >
63+ <id >sign-artifacts</id >
64+ <phase >verify</phase >
65+ <goals >
66+ <goal >sign</goal >
67+ </goals >
68+ </execution >
69+ </executions >
70+ </plugin >
71+ </plugins >
72+ </build >
73+ </profile >
74+ </profiles >
You can’t perform that action at this time.
0 commit comments