Skip to content

Commit 1ab62ea

Browse files
author
Lars Wander
committedAug 11, 2017
Activate GPG on release
1 parent 6fa7ecd commit 1ab62ea

File tree

10 files changed

+48
-55
lines changed

10 files changed

+48
-55
lines changed
 

‎examples/pom.xml

+10-3
Original file line numberDiff line numberDiff line change
@@ -4,20 +4,27 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.kubernetes</groupId>
66
<artifactId>client-java-examples</artifactId>
7-
<version>1.0-SNAPSHOT</version>
7+
<version>0.1-SNAPSHOT</version>
88
<packaging>jar</packaging>
99
<name>client-java-examples</name>
1010
<url>https://github.com/kubernetes-client/java</url>
11+
12+
<parent>
13+
<groupId>io.kubernetes</groupId>
14+
<artifactId>client-java</artifactId>
15+
<version>0.1-SNAPSHOT</version>
16+
</parent>
17+
1118
<dependencies>
1219
<dependency>
1320
<groupId>io.kubernetes</groupId>
1421
<artifactId>client-java-api</artifactId>
15-
<version>1.0-SNAPSHOT</version>
22+
<version>0.1-SNAPSHOT</version>
1623
</dependency>
1724
<dependency>
1825
<groupId>io.kubernetes</groupId>
1926
<artifactId>client-java-util</artifactId>
20-
<version>1.0-SNAPSHOT</version>
27+
<version>0.1-SNAPSHOT</version>
2128
</dependency>
2229
<dependency>
2330
<groupId>com.google.guava</groupId>

‎kubernetes/pom.xml

+7-23
Original file line numberDiff line numberDiff line change
@@ -5,34 +5,18 @@
55
<artifactId>client-java-api</artifactId>
66
<packaging>jar</packaging>
77
<name>client-java-api</name>
8-
<version>1.0-SNAPSHOT</version>
9-
<url>https://github.com/swagger-api/swagger-codegen</url>
8+
<version>0.1-SNAPSHOT</version>
9+
<url>https://github.com/kubernetes-client/java</url>
1010
<description>Swagger Java</description>
11-
<scm>
12-
<connection>scm:git:git@github.com:kubernetes-client/java.git</connection>
13-
<developerConnection>scm:git:git@github.com:kubernetes-client/java.git</developerConnection>
14-
<url>https://github.com/kubernetes-client/java</url>
15-
</scm>
1611
<prerequisites>
1712
<maven>2.2.0</maven>
1813
</prerequisites>
1914

20-
<licenses>
21-
<license>
22-
<name>The Apache Software License, Version 2.0</name>
23-
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
24-
<distribution>repo</distribution>
25-
</license>
26-
</licenses>
27-
28-
<developers>
29-
<developer>
30-
<name>The Kubernetes Authors</name>
31-
<email>kubernetes-dev@googlegroups.com</email>
32-
<organization>Kubernetes</organization>
33-
<organizationUrl>https://kubernetes.io</organizationUrl>
34-
</developer>
35-
</developers>
15+
<parent>
16+
<groupId>io.kubernetes</groupId>
17+
<artifactId>client-java</artifactId>
18+
<version>0.1-SNAPSHOT</version>
19+
</parent>
3620

3721
<build>
3822
<plugins>

‎pom.xml

+8-10
Original file line numberDiff line numberDiff line change
@@ -7,11 +7,13 @@
77
<version>0.1-SNAPSHOT</version>
88
<packaging>pom</packaging>
99
<name>Kubernetes Client API</name>
10+
<url>https://github.com/kubernetes-client/java</url>
11+
<description>Kubernetes Client Library</description>
1012

1113
<modules>
12-
<module>kubernetes</module>
13-
<module>examples</module>
1414
<module>util</module>
15+
<module>examples</module>
16+
<module>kubernetes</module>
1517
</modules>
1618

1719
<scm>
@@ -45,10 +47,12 @@
4547
<snapshotRepository>
4648
<id>ossrh</id>
4749
<url>https://oss.sonatype.org/content/repositories/snapshots</url>
50+
<layout>default</layout>
4851
</snapshotRepository>
4952
<repository>
5053
<id>ossrh</id>
51-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
54+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url>
55+
<layout>default</layout>
5256
</repository>
5357
</distributionManagement>
5458

@@ -60,7 +64,7 @@
6064
<version>2.5.3</version>
6165
<configuration>
6266
<autoVersionSubmodules>true</autoVersionSubmodules>
63-
<releaseProfiles>release</releaseProfiles>
67+
<releaseProfiles>release-sign-artifacts</releaseProfiles>
6468
<goals>deploy</goals>
6569
</configuration>
6670
</plugin>
@@ -69,12 +73,6 @@
6973
<profiles>
7074
<profile>
7175
<id>release-sign-artifacts</id>
72-
<activation>
73-
<property>
74-
<name>release</name>
75-
<value>true</value>
76-
</property>
77-
</activation>
7876
<build>
7977
<plugins>
8078
<plugin>

‎util/pom.xml

+8-3
Original file line numberDiff line numberDiff line change
@@ -4,15 +4,20 @@
44
<modelVersion>4.0.0</modelVersion>
55
<groupId>io.kubernetes</groupId>
66
<artifactId>client-java-util</artifactId>
7-
<version>1.0-SNAPSHOT</version>
7+
<version>0.1-SNAPSHOT</version>
88
<packaging>jar</packaging>
99
<name>client-java-util</name>
10-
<url>https://github.com/kubernetes-client/java</url>
10+
<url>https://github.com/kubernetes-client/java</url>
11+
<parent>
12+
<groupId>io.kubernetes</groupId>
13+
<artifactId>client-java</artifactId>
14+
<version>0.1-SNAPSHOT</version>
15+
</parent>
1116
<dependencies>
1217
<dependency>
1318
<groupId>io.kubernetes</groupId>
1419
<artifactId>client-java-api</artifactId>
15-
<version>1.0-SNAPSHOT</version>
20+
<version>0.1-SNAPSHOT</version>
1621
</dependency>
1722
<dependency>
1823
<groupId>org.yaml</groupId>

‎util/src/main/java/io/kubernetes/client/Attach.java

+2-3
Original file line numberDiff line numberDiff line change
@@ -47,7 +47,7 @@ public Attach(ApiClient apiClient) {
4747

4848
/**
4949
* Get the API client for these Attach operations.
50-
* @returns The API client that will be used.
50+
* @return The API client that will be used.
5151
*/
5252
public ApiClient getApiClient() {
5353
return apiClient;
@@ -78,8 +78,7 @@ private String makePath(String namespace, String name, String container, boolean
7878
*
7979
* @param namespace The namespace of the Pod
8080
* @param name The name of the Pod
81-
* @param command The command to run
82-
* @param stdin If true, pass a stdin stream into the container
81+
* @param stdin If true, pass a stdin stream into the container
8382
*/
8483
public AttachResult attach(String namespace, String name, boolean stdin) throws ApiException, IOException {
8584
return attach(namespace, name, null, stdin, false);

‎util/src/main/java/io/kubernetes/client/Exec.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -48,7 +48,7 @@ public Exec(ApiClient apiClient) {
4848

4949
/**
5050
* Get the API client for these exec operations.
51-
* @returns The API client that will be used.
51+
* @return The API client that will be used.
5252
*/
5353
public ApiClient getApiClient() {
5454
return apiClient;

‎util/src/main/java/io/kubernetes/client/util/Config.java

+6-6
Original file line numberDiff line numberDiff line change
@@ -158,13 +158,13 @@ public static ApiClient fromConfig(Reader input) {
158158
/**
159159
* Easy client creation, follows this plan
160160
* <ul>
161-
* <li>If $KUBECONFIG is defined, use that config file
162-
* <li>If $HOME/.kube/confg can be found, use that.
163-
* <li>If the in-cluster service account can be found, assume in cluster config.
164-
* <li>Default to localhost:8080 as a last resort.
165-
* <ul>
161+
* <li>If $KUBECONFIG is defined, use that config file.</li>
162+
* <li>If $HOME/.kube/confg can be found, use that.</li>
163+
* <li>If the in-cluster service account can be found, assume in cluster config.</li>
164+
* <li>Default to localhost:8080 as a last resort.</li>
165+
* </ul>
166166
*
167-
* @returns The best APIClient given the previously described rules
167+
* @return The best APIClient given the previously described rules
168168
*/
169169
public static ApiClient defaultClient() throws IOException {
170170
String kubeConfig = System.getenv(ENV_KUBECONFIG);

‎util/src/main/java/io/kubernetes/client/util/Watch.java

+2-2
Original file line numberDiff line numberDiff line change
@@ -60,8 +60,8 @@ public static class Response<T> {
6060
* @param client the API client
6161
* @param call the call object returned by api.{ListOperation}Call(...)
6262
* method. Make sure watch flag is set in the call.
63-
* @param watchType The type of the WatchResponse<T>. Use something like
64-
* new TypeToken<Watch.Response<TYPENAME>>(){}.getType()
63+
* @param watchType The type of the WatchResponse&lt;T&gt;. Use something like
64+
* new TypeToken&lt;Watch.Response&lt;TYPENAME&gt;&gt;(){}.getType()
6565
* @param <T> TYPENAME.
6666
* @return Watch object on TYPENAME
6767
* @throws ApiException on IO exceptions.

‎util/src/main/java/io/kubernetes/client/util/WebSocketStreamHandler.java

+3-3
Original file line numberDiff line numberDiff line change
@@ -108,7 +108,7 @@ public void close() {
108108
/**
109109
* Get a specific input stream using its identifier
110110
* @param stream The stream to return
111-
* @returns The specified stream.
111+
* @return The specified stream.
112112
*/
113113
public synchronized InputStream getInputStream(int stream) {
114114
if (!input.containsKey(stream)) {
@@ -129,7 +129,7 @@ public synchronized InputStream getInputStream(int stream) {
129129
/**
130130
* Gets a specific output stream using it's identified
131131
* @param stream The stream to return
132-
* @returns The specified stream.
132+
* @return The specified stream.
133133
*/
134134
public OutputStream getOutputStream(int stream) {
135135
return new WebSocketOutputStream(stream);
@@ -139,7 +139,7 @@ public OutputStream getOutputStream(int stream) {
139139
* Get the pipe to write data to a specific InputStream. This is called when
140140
* new data is read from the web socket, to send the data on to the right stream.
141141
* @param stream The stream to return
142-
* @returns The specified stream.
142+
* @return The specified stream.
143143
*/
144144
private synchronized OutputStream getSocketInputOutputStream(int stream) {
145145
if (!output.containsKey(stream)) {

‎util/src/main/java/io/kubernetes/client/util/authenticators/Authenticator.java

+1-1
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ public interface Authenticator {
2828
/**
2929
* Get a token from this authenticator.
3030
* @param config The configuration information for this authenticator
31-
* @returns The new token, null of no such token can be found/generated
31+
* @return The new token, null of no such token can be found/generated
3232
*/
3333
public String getToken(Map<String, Object> config);
3434

0 commit comments

Comments
 (0)
Please sign in to comment.