From 344ebc08a6c022c14360bf27a5c38503158517ce Mon Sep 17 00:00:00 2001 From: yaojie Date: Tue, 9 Apr 2019 14:28:52 -0700 Subject: [PATCH] rename package --- README.md | 4 +- pom.xml | 40 +++++++++---------- .../cdap}/plugin/AmazonS3ClientAction.java | 18 ++++----- .../plugin/AmazonS3ClientActionTest.java | 15 ++----- 4 files changed, 34 insertions(+), 43 deletions(-) mode change 100755 => 100644 pom.xml rename src/main/java/{co/cask/hydrator => io/cdap}/plugin/AmazonS3ClientAction.java (93%) mode change 100755 => 100644 rename src/test/java/{co/cask/hydrator => io/cdap}/plugin/AmazonS3ClientActionTest.java (90%) mode change 100755 => 100644 diff --git a/README.md b/README.md index 8890725..25fb0f2 100755 --- a/README.md +++ b/README.md @@ -1,6 +1,6 @@ # Amazon S3 Client Action -[![cm-available](https://cdap-users.herokuapp.com/assets/cm-available.svg)](https://docs.cask.co/cdap/current/en/integrations/cask-market.html) +[![cm-available](https://cdap-users.herokuapp.com/assets/cm-available.svg)](https://docs.cdap.io/cdap/current/en/integrations/cask-market.html) ![cdap-action](https://cdap-users.herokuapp.com/assets/cdap-action.svg) [![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0) [![Join CDAP community](https://cdap-users.herokuapp.com/badge.svg?t=wrangler)](https://cdap-users.herokuapp.com?t=1) @@ -44,7 +44,7 @@ The CDAP UI displays each plugin property as a simple textbox. To customize how are displayed in the UI, you can place a configuration file in the ``widgets`` directory. The file must be named following a convention of ``[plugin-name]-[plugin-type].json``. -See [Plugin Widget Configuration](http://docs.cdap.io/cdap/current/en/hydrator-manual/developing-plugins/packaging-plugins.html#plugin-widget-json) +See [Plugin Widget Configuration](https://docs.cdap.io/cdap/current/en/developer-manual/pipelines/developing-plugins/presentation-plugins.html) for details on the configuration file. The UI will also display a reference doc for your plugin if you place a file in the ``docs`` directory diff --git a/pom.xml b/pom.xml old mode 100755 new mode 100644 index 374a022..f4c8b73 --- a/pom.xml +++ b/pom.xml @@ -1,6 +1,6 @@ ${project.basedir} @@ -83,23 +83,23 @@ - co.cask.cdap + io.cdap.cdap cdap-etl-api ${cdap.version} - co.cask.cdap + io.cdap.cdap cdap-etl-api-spark ${cdap.version} - co.cask.cdap + io.cdap.cdap cdap-data-pipeline ${cdap.version} test - co.cask.cdap + io.cdap.cdap hydrator-test ${cdap.version} test @@ -171,7 +171,7 @@ true lib - <_exportcontents>co.cask.hydrator.* + <_exportcontents>io.cdap.plugin.* @@ -184,13 +184,13 @@ - co.cask + io.cdap cdap-maven-plugin - 1.0.0-SNAPSHOT + 1.1.0 - system:cdap-data-pipeline[4.0.0,5.0.0-SNAPSHOT) - system:cdap-data-streams[4.0.0,5.0.0-SNAPSHOT) + system:cdap-data-pipeline[6.0.0-SNAPSHOT,7.0.0-SNAPSHOT) + system:cdap-data-streams[6.0.0-SNAPSHOT,7.0.0-SNAPSHOT) diff --git a/src/main/java/co/cask/hydrator/plugin/AmazonS3ClientAction.java b/src/main/java/io/cdap/plugin/AmazonS3ClientAction.java old mode 100755 new mode 100644 similarity index 93% rename from src/main/java/co/cask/hydrator/plugin/AmazonS3ClientAction.java rename to src/main/java/io/cdap/plugin/AmazonS3ClientAction.java index 2720f60..7904e1a --- a/src/main/java/co/cask/hydrator/plugin/AmazonS3ClientAction.java +++ b/src/main/java/io/cdap/plugin/AmazonS3ClientAction.java @@ -13,22 +13,22 @@ * License for the specific language governing permissions and limitations under * the License. */ -package co.cask.hydrator.plugin; +package io.cdap.plugin; -import co.cask.cdap.api.annotation.Description; -import co.cask.cdap.api.annotation.Macro; -import co.cask.cdap.api.annotation.Name; -import co.cask.cdap.api.annotation.Plugin; -import co.cask.cdap.api.plugin.PluginConfig; -import co.cask.cdap.etl.api.PipelineConfigurer; -import co.cask.cdap.etl.api.action.Action; -import co.cask.cdap.etl.api.action.ActionContext; import com.amazonaws.auth.AWSStaticCredentialsProvider; import com.amazonaws.auth.BasicAWSCredentials; import com.amazonaws.services.s3.AmazonS3; import com.amazonaws.services.s3.AmazonS3ClientBuilder; import com.amazonaws.services.s3.model.Bucket; +import io.cdap.cdap.api.annotation.Description; +import io.cdap.cdap.api.annotation.Macro; +import io.cdap.cdap.api.annotation.Name; +import io.cdap.cdap.api.annotation.Plugin; +import io.cdap.cdap.api.plugin.PluginConfig; +import io.cdap.cdap.etl.api.PipelineConfigurer; +import io.cdap.cdap.etl.api.action.Action; +import io.cdap.cdap.etl.api.action.ActionContext; import org.slf4j.Logger; import org.slf4j.LoggerFactory; diff --git a/src/test/java/co/cask/hydrator/plugin/AmazonS3ClientActionTest.java b/src/test/java/io/cdap/plugin/AmazonS3ClientActionTest.java old mode 100755 new mode 100644 similarity index 90% rename from src/test/java/co/cask/hydrator/plugin/AmazonS3ClientActionTest.java rename to src/test/java/io/cdap/plugin/AmazonS3ClientActionTest.java index cd82f1e..fbed7a0 --- a/src/test/java/co/cask/hydrator/plugin/AmazonS3ClientActionTest.java +++ b/src/test/java/io/cdap/plugin/AmazonS3ClientActionTest.java @@ -14,22 +14,13 @@ * the License. */ -package co.cask.hydrator.plugin; +package io.cdap.plugin; -import co.cask.cdap.etl.mock.action.MockActionContext; -import co.cask.cdap.etl.mock.common.MockPipelineConfigurer; import com.amazonaws.regions.Regions; -import org.junit.ClassRule; +import io.cdap.cdap.etl.mock.action.MockActionContext; +import io.cdap.cdap.etl.mock.common.MockPipelineConfigurer; import org.junit.Ignore; import org.junit.Test; -import org.junit.rules.TemporaryFolder; - -import java.io.File; -import java.io.FileFilter; -import java.net.URL; -import java.util.regex.Pattern; - -import static org.junit.Assert.assertEquals; /** * Unit tests for {@link AmazonS3ClientAction}