Skip to content

Commit

Permalink
Configure publishing to maven central
Browse files Browse the repository at this point in the history
  • Loading branch information
klimber committed Jul 15, 2024
1 parent d5ff5b5 commit c3105f9
Show file tree
Hide file tree
Showing 2 changed files with 96 additions and 12 deletions.
100 changes: 92 additions & 8 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -2,16 +2,44 @@
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>com.klimber.hiveddbudtf</groupId>
<artifactId>hiveddbudtf</artifactId>
<version>0.9.0-SNAPSHOT</version>
<name>HiveDdbUdtf</name>
<description>Hive User Defined Table Function for DynamoDB queries</description>
<groupId>io.github.klimber</groupId>
<artifactId>hive-ddb-query-udtf</artifactId>
<version>1.0.0</version>
<packaging>jar</packaging>

<name>HiveDdbQueryUDTF</name>
<description>Apache Hive user defined table function (UDTF) that allows querying
an Amazon DynamoDB table from Amazon EMR using SQL. </description>
<url>https://github.com/klimber/HiveDdbQueryUDTF</url>

<licenses>
<license>
<name>The Apache License, Version 2.0</name>
<url>http://www.apache.org/licenses/LICENSE-2.0.txt</url>
</license>
</licenses>

<developers>
<developer>
<name>Allan Krueger</name>
<email>[email protected]</email>
<organization>klimber</organization>
<organizationUrl>https://github.com/klimber</organizationUrl>
</developer>
</developers>

<scm>
<connection>scm:git:git://github.com/klimber/HiveDdbQueryUDTF.git</connection>
<developerConnection>scm:git:ssh://github.com:klimber/HiveDdbQueryUDTF.git</developerConnection>
<url>https://github.com/klimber/HiveDdbQueryUDTF/tree/main</url>
</scm>

<properties>
<java.version>1.8</java.version>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>
<dependency>
<groupId>io.github.hiverunner</groupId>
Expand Down Expand Up @@ -46,7 +74,7 @@
<dependency>
<groupId>org.projectlombok</groupId>
<artifactId>lombok</artifactId>
<version>1.18.28</version>
<version>1.18.34</version>
<scope>provided</scope>
</dependency>
</dependencies>
Expand Down Expand Up @@ -81,7 +109,7 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.11.0</version>
<version>3.12.1</version>
<configuration>
<source>1.8</source>
<target>1.8</target>
Expand All @@ -103,7 +131,63 @@
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>2.2.1</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar-no-fork</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.3</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.5.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
</configuration>
</plugin>
</plugins>
</build>
<repositories>
<repository>
<id>maven_central</id>
<name>Maven Central</name>
<url>https://repo.maven.apache.org/maven2/</url>
</repository>
</repositories>

</project>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,9 @@
import org.apache.hadoop.hive.dynamodb.type.HiveDynamoDBTypeFactory;

/**
* AWS SDKv2 has a <a
* href="https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/dynamodb/model/AttributeValue
* .html#type()">type</a> method to help discover which kind of attribute was returned from the API. This method does
* AWS SDKv2 has a
* <a href="https://sdk.amazonaws.com/java/api/latest/software/amazon/awssdk/services/dynamodb/model/AttributeValue.html#type()">type</a>
* method to help discover which kind of attribute was returned from the API. This method does
* not exist on SDKv1, so we have to rely on checking null fields.
*/
@UtilityClass
Expand Down Expand Up @@ -46,4 +46,4 @@ public static HiveDynamoDBType forAttributeValue(AttributeValue value) {
return HiveDynamoDBTypeFactory.getTypeObjectFromDynamoDBType(DynamoDBTypeConstants.BOOLEAN);
throw new RuntimeException("Should be impossible to reach here.");
}
}
}

0 comments on commit c3105f9

Please sign in to comment.