From 3d4b49922335b3a972e2e577e63f5ece7552036c Mon Sep 17 00:00:00 2001 From: Yutaka Kato Date: Thu, 22 Apr 2021 03:17:23 +0900 Subject: [PATCH] #24 rename package --- README.md | 10 +++++----- build.gradle.kts | 4 ++-- .../com/github/kaginawa/sdk/package-info.java | 4 ---- .../examples/command/KaginawaCommand.java | 6 +++--- .../examples/hello/KaginawaHello.java | 8 ++++---- .../github/kaginawa/sdk/KaginawaClient.java | 2 +- .../kaginawa/sdk/KaginawaServerException.java | 2 +- .../github/kaginawa/sdk/Report.java | 2 +- .../github/kaginawa/sdk/SshServer.java | 2 +- .../io/github/kaginawa/sdk/package-info.java | 20 +++++++++++++++++++ src/main/java/module-info.java | 6 +++--- .../kaginawa/sdk/KaginawaClientTests.java | 2 +- .../github/kaginawa/sdk/ReportTests.java | 2 +- .../github/kaginawa/sdk/SshServerTests.java | 2 +- 14 files changed, 44 insertions(+), 28 deletions(-) delete mode 100644 src/main/java/com/github/kaginawa/sdk/package-info.java rename src/main/java/{com => io}/github/kaginawa/examples/command/KaginawaCommand.java (95%) rename src/main/java/{com => io}/github/kaginawa/examples/hello/KaginawaHello.java (92%) rename src/main/java/{com => io}/github/kaginawa/sdk/KaginawaClient.java (99%) rename src/main/java/{com => io}/github/kaginawa/sdk/KaginawaServerException.java (97%) rename src/main/java/{com => io}/github/kaginawa/sdk/Report.java (99%) rename src/main/java/{com => io}/github/kaginawa/sdk/SshServer.java (99%) create mode 100644 src/main/java/io/github/kaginawa/sdk/package-info.java rename src/test/java/{com => io}/github/kaginawa/sdk/KaginawaClientTests.java (99%) rename src/test/java/{com => io}/github/kaginawa/sdk/ReportTests.java (99%) rename src/test/java/{com => io}/github/kaginawa/sdk/SshServerTests.java (98%) diff --git a/README.md b/README.md index ca2b92e..643466f 100644 --- a/README.md +++ b/README.md @@ -5,7 +5,7 @@ kagianwa-sdk-go [![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=kaginawa_kaginawa-sdk-java&metric=alert_status)](https://sonarcloud.io/dashboard?id=kaginawa_kaginawa-sdk-java) [![Coverage](https://sonarcloud.io/api/project_badges/measure?project=kaginawa_kaginawa-sdk-java&metric=coverage)](https://sonarcloud.io/dashboard?id=kaginawa_kaginawa-sdk-java) [![Download](https://api.bintray.com/packages/kaginawa/kaginawa-sdk-java/kaginawa-sdk-java/images/download.svg)](https://bintray.com/kaginawa/kaginawa-sdk-java/kaginawa-sdk-java/_latestVersion) -[![javadoc](https://javadoc.io/badge2/com.github.kaginawa/kaginawa-sdk-java/javadoc.svg)](https://javadoc.io/doc/com.github.kaginawa/kaginawa-sdk-java) +[![javadoc](https://javadoc.io/badge2/io.github.kaginawa/kaginawa-sdk-java/javadoc.svg)](https://javadoc.io/doc/io.github.kaginawa/kaginawa-sdk-java) The official [Kaginawa](https://github.com/kaginawa/kaginawa) SDK for the Java and other JVM languages. @@ -31,9 +31,9 @@ Add a dependency to the `dependencies` element: ```xml - com.github.kaginawa + io.github.kaginawa kaginawa-sdk-java - 0.1.1 + 0.2.0 ``` @@ -50,12 +50,12 @@ repositories { Add a dependency: ```kotlin -implementation("com.github.kaginawa:kaginawa-sdk-java:0.1.1") +implementation("io.github.kaginawa:kaginawa-sdk-java:0.2.0") ``` ## Documentation -Online javadoc is available on [javadoc.io](https://javadoc.io/doc/com.github.kaginawa/kaginawa-sdk-java). +Online javadoc is available on [javadoc.io](https://javadoc.io/doc/io.github.kaginawa/kaginawa-sdk-java). ## Examples diff --git a/build.gradle.kts b/build.gradle.kts index e487867..682086f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -7,8 +7,8 @@ plugins { val junitVersion = "5.6.2" -group = "com.github.kaginawa" -version = "0.1.1" +group = "io.github.kaginawa" +version = "0.2.0" repositories { mavenCentral() diff --git a/src/main/java/com/github/kaginawa/sdk/package-info.java b/src/main/java/com/github/kaginawa/sdk/package-info.java deleted file mode 100644 index 09f5dd4..0000000 --- a/src/main/java/com/github/kaginawa/sdk/package-info.java +++ /dev/null @@ -1,4 +0,0 @@ -/** - * Kaginawa SDK for Java. - */ -package com.github.kaginawa.sdk; diff --git a/src/main/java/com/github/kaginawa/examples/command/KaginawaCommand.java b/src/main/java/io/github/kaginawa/examples/command/KaginawaCommand.java similarity index 95% rename from src/main/java/com/github/kaginawa/examples/command/KaginawaCommand.java rename to src/main/java/io/github/kaginawa/examples/command/KaginawaCommand.java index ef60e08..2a087b3 100644 --- a/src/main/java/com/github/kaginawa/examples/command/KaginawaCommand.java +++ b/src/main/java/io/github/kaginawa/examples/command/KaginawaCommand.java @@ -13,10 +13,10 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.examples.command; +package io.github.kaginawa.examples.command; -import com.github.kaginawa.sdk.KaginawaClient; -import com.github.kaginawa.sdk.KaginawaServerException; +import io.github.kaginawa.sdk.KaginawaClient; +import io.github.kaginawa.sdk.KaginawaServerException; import java.util.Scanner; diff --git a/src/main/java/com/github/kaginawa/examples/hello/KaginawaHello.java b/src/main/java/io/github/kaginawa/examples/hello/KaginawaHello.java similarity index 92% rename from src/main/java/com/github/kaginawa/examples/hello/KaginawaHello.java rename to src/main/java/io/github/kaginawa/examples/hello/KaginawaHello.java index 9400307..a9b1fcd 100644 --- a/src/main/java/com/github/kaginawa/examples/hello/KaginawaHello.java +++ b/src/main/java/io/github/kaginawa/examples/hello/KaginawaHello.java @@ -13,11 +13,11 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.examples.hello; +package io.github.kaginawa.examples.hello; -import com.github.kaginawa.sdk.KaginawaClient; -import com.github.kaginawa.sdk.KaginawaServerException; -import com.github.kaginawa.sdk.Report; +import io.github.kaginawa.sdk.KaginawaClient; +import io.github.kaginawa.sdk.KaginawaServerException; +import io.github.kaginawa.sdk.Report; import java.time.format.DateTimeFormatter; import java.util.List; diff --git a/src/main/java/com/github/kaginawa/sdk/KaginawaClient.java b/src/main/java/io/github/kaginawa/sdk/KaginawaClient.java similarity index 99% rename from src/main/java/com/github/kaginawa/sdk/KaginawaClient.java rename to src/main/java/io/github/kaginawa/sdk/KaginawaClient.java index 324e30d..f43ecae 100644 --- a/src/main/java/com/github/kaginawa/sdk/KaginawaClient.java +++ b/src/main/java/io/github/kaginawa/sdk/KaginawaClient.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.sdk; +package io.github.kaginawa.sdk; import javax.json.bind.Jsonb; import javax.json.bind.JsonbBuilder; diff --git a/src/main/java/com/github/kaginawa/sdk/KaginawaServerException.java b/src/main/java/io/github/kaginawa/sdk/KaginawaServerException.java similarity index 97% rename from src/main/java/com/github/kaginawa/sdk/KaginawaServerException.java rename to src/main/java/io/github/kaginawa/sdk/KaginawaServerException.java index d2cce01..b897279 100644 --- a/src/main/java/com/github/kaginawa/sdk/KaginawaServerException.java +++ b/src/main/java/io/github/kaginawa/sdk/KaginawaServerException.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.sdk; +package io.github.kaginawa.sdk; /** * An {@link Exception} subclass that occurs when error communicating with Kaginawa Server. diff --git a/src/main/java/com/github/kaginawa/sdk/Report.java b/src/main/java/io/github/kaginawa/sdk/Report.java similarity index 99% rename from src/main/java/com/github/kaginawa/sdk/Report.java rename to src/main/java/io/github/kaginawa/sdk/Report.java index ca73a28..4e81c2c 100644 --- a/src/main/java/com/github/kaginawa/sdk/Report.java +++ b/src/main/java/io/github/kaginawa/sdk/Report.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.sdk; +package io.github.kaginawa.sdk; import javax.json.bind.annotation.JsonbProperty; import java.time.Instant; diff --git a/src/main/java/com/github/kaginawa/sdk/SshServer.java b/src/main/java/io/github/kaginawa/sdk/SshServer.java similarity index 99% rename from src/main/java/com/github/kaginawa/sdk/SshServer.java rename to src/main/java/io/github/kaginawa/sdk/SshServer.java index 5333ad7..877b5a4 100644 --- a/src/main/java/com/github/kaginawa/sdk/SshServer.java +++ b/src/main/java/io/github/kaginawa/sdk/SshServer.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.sdk; +package io.github.kaginawa.sdk; import java.util.Objects; diff --git a/src/main/java/io/github/kaginawa/sdk/package-info.java b/src/main/java/io/github/kaginawa/sdk/package-info.java new file mode 100644 index 0000000..8454993 --- /dev/null +++ b/src/main/java/io/github/kaginawa/sdk/package-info.java @@ -0,0 +1,20 @@ +/* + * Copyright 2020 the original author or authors. + * + * Licensed under the Apache License, Version 2.0 (the "License"); + * you may not use this file except in compliance with the License. + * You may obtain a copy of the License at + * + * https://www.apache.org/licenses/LICENSE-2.0 + * + * Unless required by applicable law or agreed to in writing, software + * distributed under the License is distributed on an "AS IS" BASIS, + * WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. + * See the License for the specific language governing permissions and + * limitations under the License. + */ + +/** + * Kaginawa SDK for Java. + */ +package io.github.kaginawa.sdk; diff --git a/src/main/java/module-info.java b/src/main/java/module-info.java index 48c1284..4fc57c0 100644 --- a/src/main/java/module-info.java +++ b/src/main/java/module-info.java @@ -1,6 +1,6 @@ -module com.github.kaginawa.sdk { - exports com.github.kaginawa.sdk; +module io.github.kaginawa.sdk { + exports io.github.kaginawa.sdk; requires java.net.http; requires java.json.bind; - opens com.github.kaginawa.sdk to org.eclipse.yasson; + opens io.github.kaginawa.sdk to org.eclipse.yasson; } diff --git a/src/test/java/com/github/kaginawa/sdk/KaginawaClientTests.java b/src/test/java/io/github/kaginawa/sdk/KaginawaClientTests.java similarity index 99% rename from src/test/java/com/github/kaginawa/sdk/KaginawaClientTests.java rename to src/test/java/io/github/kaginawa/sdk/KaginawaClientTests.java index 46733ba..3950e17 100644 --- a/src/test/java/com/github/kaginawa/sdk/KaginawaClientTests.java +++ b/src/test/java/io/github/kaginawa/sdk/KaginawaClientTests.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.sdk; +package io.github.kaginawa.sdk; import org.junit.jupiter.api.Test; import org.junit.jupiter.api.extension.ExtendWith; diff --git a/src/test/java/com/github/kaginawa/sdk/ReportTests.java b/src/test/java/io/github/kaginawa/sdk/ReportTests.java similarity index 99% rename from src/test/java/com/github/kaginawa/sdk/ReportTests.java rename to src/test/java/io/github/kaginawa/sdk/ReportTests.java index dad25c3..b798633 100644 --- a/src/test/java/com/github/kaginawa/sdk/ReportTests.java +++ b/src/test/java/io/github/kaginawa/sdk/ReportTests.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.sdk; +package io.github.kaginawa.sdk; import org.junit.jupiter.api.Test; diff --git a/src/test/java/com/github/kaginawa/sdk/SshServerTests.java b/src/test/java/io/github/kaginawa/sdk/SshServerTests.java similarity index 98% rename from src/test/java/com/github/kaginawa/sdk/SshServerTests.java rename to src/test/java/io/github/kaginawa/sdk/SshServerTests.java index 907bf38..e3f1b9c 100644 --- a/src/test/java/com/github/kaginawa/sdk/SshServerTests.java +++ b/src/test/java/io/github/kaginawa/sdk/SshServerTests.java @@ -13,7 +13,7 @@ * See the License for the specific language governing permissions and * limitations under the License. */ -package com.github.kaginawa.sdk; +package io.github.kaginawa.sdk; import org.junit.jupiter.api.Test;