Skip to content

Commit 02383ce

Browse files
authored
Release all modules to Maven Central (#45)
Implement release process to Maven Central using TravisCI
1 parent fd62130 commit 02383ce

File tree

3 files changed

+35
-13
lines changed

3 files changed

+35
-13
lines changed

.travis.yml

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,2 +1,6 @@
11
language: java
2-
dist: bionic
2+
dist: bionic
3+
before_install:
4+
- echo $GPGKEY | base64 --decode | gpg --import
5+
script:
6+
- mvn deploy --settings=maven-settings.xml -Prelease

maven-settings.xml

Lines changed: 22 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,22 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<settings>
3+
<servers>
4+
<server>
5+
<id>ossrh</id>
6+
<username>${env.SONATYPE_USERNAME}</username>
7+
<password>${env.SONATYPE_PASSWORD}</password>
8+
</server>
9+
</servers>
10+
11+
<profiles>
12+
<profile>
13+
<id>ossrh</id>
14+
<activation>
15+
<activeByDefault>true</activeByDefault>
16+
</activation>
17+
<properties>
18+
<gpg.executable>gpg</gpg.executable>
19+
</properties>
20+
</profile>
21+
</profiles>
22+
</settings>

samples/webserver/pom.xml

Lines changed: 8 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,16 @@
33
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>com.github.containersolutions</groupId>
6+
<parent>
7+
<groupId>com.github.containersolutions</groupId>
8+
<artifactId>operator-framework-samples</artifactId>
9+
<version>0.3.2-SNAPSHOT</version>
10+
</parent>
11+
712
<artifactId>webserver-sample</artifactId>
8-
<version>0.3.2-SNAPSHOT</version>
13+
<name>Operator SDK - Samples - Webserver</name>
14+
<description>Provisions an nginx Webserver based on a CRD</description>
915
<packaging>jar</packaging>
10-
<name>Operator SDK - Samples - Web Server</name>
1116

1217
<properties>
1318
<java.version>11</java.version>
@@ -50,15 +55,6 @@
5055
<groupId>com.spotify</groupId>
5156
<artifactId>dockerfile-maven-plugin</artifactId>
5257
<version>1.4.12</version>
53-
<executions>
54-
<execution>
55-
<id>default</id>
56-
<phase>install</phase>
57-
<goals>
58-
<goal>build</goal>
59-
</goals>
60-
</execution>
61-
</executions>
6258
<configuration>
6359
<repository>webserver-operator</repository>
6460
<tag>latest</tag>

0 commit comments

Comments
 (0)