Skip to content

Commit 8ef2b5e

Browse files
authored
Merge pull request #4 from data-integrations/release/1.2
Release/1.2
2 parents 290076e + 24d5581 commit 8ef2b5e

File tree

4 files changed

+59
-39
lines changed

4 files changed

+59
-39
lines changed

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
11
# Image Directives
22

3-
[![cm-available](https://cdap-users.herokuapp.com/assets/cm-available.svg)](https://docs.cask.co/cdap/current/en/integrations/cask-market.html)
3+
[![cm-available](https://cdap-users.herokuapp.com/assets/cm-available.svg)](https://docs.cdap.io/cdap/current/en/integrations/cask-market.html)
44
[![License](https://img.shields.io/badge/License-Apache%202.0-blue.svg)](https://opensource.org/licenses/Apache-2.0)
55
[![Join CDAP community](https://cdap-users.herokuapp.com/badge.svg?t=wrangler)](https://cdap-users.herokuapp.com?t=1)
66

@@ -20,7 +20,7 @@ Developing CDAP DataPrep UDDs is by no means any rocket science, and is an effec
2020

2121
## Developing UDD
2222

23-
There is one simple interface for developing your customized directive. The simple interface `co.cask.wrangler.api.Directive` can be used for developing user defined directive.
23+
There is one simple interface for developing your customized directive. The simple interface `io.cdap.wrangler.api.Directive` can be used for developing user defined directive.
2424

2525
### Simple API
2626

pom.xml

Lines changed: 32 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -4,19 +4,39 @@
44
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
55
<modelVersion>4.0.0</modelVersion>
66

7-
<groupId>co.cask.wrangler</groupId>
7+
<groupId>io.cdap.wrangler</groupId>
88
<artifactId>image-exif-directives</artifactId>
99
<name>UDDs to process images to extract infromation from images.</name>
10-
<version>1.1.0</version>
10+
<version>1.2.0</version>
1111
<packaging>jar</packaging>
1212

1313
<properties>
14-
<cdap.version>5.1.2</cdap.version>
15-
<wrangler.version>3.2.2</wrangler.version>
14+
<cdap.version>6.0.0-SNAPSHOT</cdap.version>
15+
<wrangler.version>4.0.0</wrangler.version>
1616
<commons.codec.version>1.10</commons.codec.version>
1717
<junit.version>4.12</junit.version>
1818
</properties>
1919

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+
</license>
25+
</licenses>
26+
27+
<developers>
28+
<developer>
29+
<name>CDAP</name>
30+
<email>cdap-dev@googlegroups.com</email>
31+
<organization>CDAP</organization>
32+
<organizationUrl>http://cdap.io</organizationUrl>
33+
</developer>
34+
</developers>
35+
36+
<issueManagement>
37+
<url>https://issues.cask.co/browse/CDAP</url>
38+
</issueManagement>
39+
2040
<distributionManagement>
2141
<repository>
2242
<id>sonatype.release</id>
@@ -33,19 +53,19 @@
3353
<!-- Core Dependencies -->
3454

3555
<dependency>
36-
<groupId>co.cask.wrangler</groupId>
56+
<groupId>io.cdap.wrangler</groupId>
3757
<artifactId>wrangler-api</artifactId>
3858
<version>${wrangler.version}</version>
3959
<scope>provided</scope>
4060
</dependency>
4161
<dependency>
42-
<groupId>co.cask.cdap</groupId>
62+
<groupId>io.cdap.cdap</groupId>
4363
<artifactId>cdap-api</artifactId>
4464
<version>${cdap.version}</version>
4565
<scope>provided</scope>
4666
</dependency>
4767
<dependency>
48-
<groupId>co.cask.cdap</groupId>
68+
<groupId>io.cdap.cdap</groupId>
4969
<artifactId>cdap-etl-api</artifactId>
5070
<version>${cdap.version}</version>
5171
<scope>provided</scope>
@@ -67,7 +87,7 @@
6787

6888
<!-- Testing Dependencies -->
6989
<dependency>
70-
<groupId>co.cask.wrangler</groupId>
90+
<groupId>io.cdap.wrangler</groupId>
7191
<artifactId>wrangler-test</artifactId>
7292
<version>${wrangler.version}</version>
7393
<scope>test</scope>
@@ -104,7 +124,7 @@
104124
<Embed-Transitive>true</Embed-Transitive>
105125
<!-- Embed-Directory>lib</Embed-Directory -->
106126
<!--Only @Plugin classes in the export packages will be included as plugin-->
107-
<_exportcontents>co.cask.directives.*</_exportcontents>
127+
<_exportcontents>io.cdap.directives.*</_exportcontents>
108128
</instructions>
109129
</configuration>
110130
<executions>
@@ -134,12 +154,12 @@
134154
<artifactId>maven-antrun-plugin</artifactId>
135155
</plugin>
136156
<plugin>
137-
<groupId>co.cask</groupId>
157+
<groupId>io.cdap</groupId>
138158
<artifactId>cdap-maven-plugin</artifactId>
139-
<version>1.0.1</version>
159+
<version>1.1.0</version>
140160
<configuration>
141161
<cdapArtifacts>
142-
<parent>system:wrangler-transform[1.0.0-SNAPSHOT, 4.0.0-SNAPSHOT)</parent>
162+
<parent>system:wrangler-transform[4.0.0-SNAPSHOT, 5.0.0-SNAPSHOT)</parent>
143163
</cdapArtifacts>
144164
</configuration>
145165
<executions>

src/main/java/co/cask/directives/ExtractEXIF.java renamed to src/main/java/io/cdap/directives/ExtractEXIF.java

Lines changed: 16 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2017 Cask Data, Inc.
2+
* Copyright © 2019 CDAP
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of
@@ -14,25 +14,25 @@
1414
* the License.
1515
*/
1616

17-
package co.cask.directives;
17+
package io.cdap.directives;
1818

19-
import co.cask.cdap.api.annotation.Description;
20-
import co.cask.cdap.api.annotation.Name;
21-
import co.cask.cdap.api.annotation.Plugin;
22-
import co.cask.wrangler.api.Arguments;
23-
import co.cask.wrangler.api.Directive;
24-
import co.cask.wrangler.api.DirectiveExecutionException;
25-
import co.cask.wrangler.api.DirectiveParseException;
26-
import co.cask.wrangler.api.ErrorRowException;
27-
import co.cask.wrangler.api.ExecutorContext;
28-
import co.cask.wrangler.api.Row;
29-
import co.cask.wrangler.api.parser.ColumnName;
30-
import co.cask.wrangler.api.parser.TokenType;
31-
import co.cask.wrangler.api.parser.UsageDefinition;
3219
import com.drew.imaging.ImageMetadataReader;
3320
import com.drew.metadata.Directory;
3421
import com.drew.metadata.Metadata;
3522
import com.drew.metadata.Tag;
23+
import io.cdap.cdap.api.annotation.Description;
24+
import io.cdap.cdap.api.annotation.Name;
25+
import io.cdap.cdap.api.annotation.Plugin;
26+
import io.cdap.wrangler.api.Arguments;
27+
import io.cdap.wrangler.api.Directive;
28+
import io.cdap.wrangler.api.DirectiveExecutionException;
29+
import io.cdap.wrangler.api.DirectiveParseException;
30+
import io.cdap.wrangler.api.ErrorRowException;
31+
import io.cdap.wrangler.api.ExecutorContext;
32+
import io.cdap.wrangler.api.Row;
33+
import io.cdap.wrangler.api.parser.ColumnName;
34+
import io.cdap.wrangler.api.parser.TokenType;
35+
import io.cdap.wrangler.api.parser.UsageDefinition;
3636

3737
import java.io.ByteArrayInputStream;
3838
import java.util.List;
@@ -41,7 +41,7 @@
4141
* This class <code>ExtractEXIF</code>implements a <code>Directive</code> interface
4242
* for reversing the text specified by the value of the <code>column</code>.
4343
*/
44-
@Plugin(type = Directive.Type)
44+
@Plugin(type = Directive.TYPE)
4545
@Name(ExtractEXIF.DIRECTIVE_NAME)
4646
@Description(ExtractEXIF.DIRECTIVE_DESC)
4747
public final class ExtractEXIF implements Directive {

src/test/java/org/example/directives/ExtractEXIFTest.java renamed to src/test/java/io/cdap/directive/ExtractEXIFTest.java

Lines changed: 9 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
/*
2-
* Copyright © 2017 Cask Data, Inc.
2+
* Copyright © 2019 CDAP
33
*
44
* Licensed under the Apache License, Version 2.0 (the "License"); you may not
55
* use this file except in compliance with the License. You may obtain a copy of
@@ -14,14 +14,14 @@
1414
* the License.
1515
*/
1616

17-
package org.example.directives;
17+
package io.cdap.directive;
1818

19-
import co.cask.directives.ExtractEXIF;
20-
import co.cask.wrangler.api.RecipePipeline;
21-
import co.cask.wrangler.api.Row;
22-
import co.cask.wrangler.test.TestingRig;
23-
import co.cask.wrangler.test.api.TestRecipe;
24-
import co.cask.wrangler.test.api.TestRows;
19+
import io.cdap.directives.ExtractEXIF;
20+
import io.cdap.wrangler.api.RecipePipeline;
21+
import io.cdap.wrangler.api.Row;
22+
import io.cdap.wrangler.test.TestingRig;
23+
import io.cdap.wrangler.test.api.TestRecipe;
24+
import io.cdap.wrangler.test.api.TestRows;
2525
import org.junit.Assert;
2626
import org.junit.Ignore;
2727
import org.junit.Test;
@@ -56,4 +56,4 @@ public void testBasicReverse() throws Exception {
5656
Assert.assertEquals(1, actual.size());
5757
Assert.assertEquals(73, actual.get(0).getFields().size());
5858
}
59-
}
59+
}

0 commit comments

Comments
 (0)