Skip to content
This repository has been archived by the owner on Jun 13, 2024. It is now read-only.

Commit

Permalink
1.0 release preparation
Browse files Browse the repository at this point in the history
  • Loading branch information
grimsa committed Sep 28, 2016
1 parent 84d9021 commit 638a02a
Show file tree
Hide file tree
Showing 2 changed files with 111 additions and 7 deletions.
24 changes: 20 additions & 4 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,23 @@ Hibernate's MultiTableBulkIdStrategy for Hibernate using using just a single pre
Can be useful in environments where DDL statements cannot be executed from application and managing a large number of ID tables is not practical.

## How to use
1. Build this project and add it as a dependency.
1. Add a dependency to your project. For Maven, use the following:

```xml
<dependency>
<groupId>com.github.grimsa.hibernate</groupId>
<artifactId>single-table-bulk-id-strategy</artifactId>
<version>1.0</version>
</dependency>
```
For Gradle:

```
dependencies {
compile 'com.github.grimsa.hibernate:single-table-bulk-id-strategy:1.0'
}
```

1. Create a shared global temporary table, e.g.

```
Expand All @@ -19,6 +35,6 @@ Can be useful in environments where DDL statements cannot be executed from appli
configuration.setProperty(SingleGlobalTemporaryTableBulkIdStrategy.CLEAN_ROWS, "true");
```

## Versions
* Hibernate 5.1.0
* JDK 1.8
## Release history

* 1.0 released 2016-09-29. Requires Hibernate 5.1 and JDK 1.8
94 changes: 91 additions & 3 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -1,9 +1,34 @@
<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 http://maven.apache.org/xsd/maven-4.0.0.xsd">
<modelVersion>4.0.0</modelVersion>
<groupId>lt.grimsa.hibernate</groupId>
<groupId>com.github.grimsa.hibernate</groupId>
<artifactId>single-table-bulk-id-strategy</artifactId>
<version>1.0</version>

<name>${project.groupId}:${project.artifactId}</name>
<description>Single Table Bulk ID Strategy for Hibernate</description>
<url>https://github.com/grimsa/hibernate-single-table-bulk-id-strategy</url>

<scm>
<connection>scm:git:https://github.com/grimsa/hibernate-single-table-bulk-id-strategy.git</connection>
<developerConnection>scm:git:[email protected]:grimsa/hibernate-single-table-bulk-id-strategy.git</developerConnection>
<url>https://github.com/grimsa/hibernate-single-table-bulk-id-strategy</url>
</scm>

<licenses>
<license>
<name>Public domain (Unlicense)</name>
<url>http://unlicense.org/</url>
<distribution>repo</distribution>
</license>
</licenses>

<developers>
<developer>
<name>Gediminas Rimsa</name>
<email>[email protected]</email>
</developer>
</developers>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
Expand All @@ -19,8 +44,6 @@
<scope>provided</scope>
</dependency>

<!-- Test dependencies -->

<dependency>
<groupId>org.hibernate</groupId>
<artifactId>hibernate-testing</artifactId>
Expand All @@ -43,4 +66,69 @@
</dependency>
</dependencies>

<profiles>
<profile>
<id>release</id>

<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-source-plugin</artifactId>
<version>3.0.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.4</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>1.6</version>
<executions>
<execution>
<id>sign-artifacts</id>
<phase>verify</phase>
<goals>
<goal>sign</goal>
</goals>
</execution>
</executions>
</plugin>

<plugin>
<groupId>org.sonatype.plugins</groupId>
<artifactId>nexus-staging-maven-plugin</artifactId>
<version>1.6.7</version>
<extensions>true</extensions>
<configuration>
<serverId>ossrh</serverId>
<nexusUrl>https://oss.sonatype.org/</nexusUrl>
<autoReleaseAfterClose>false</autoReleaseAfterClose>
</configuration>
</plugin>
</plugins>
</build>
</profile>
</profiles>

</project>

0 comments on commit 638a02a

Please sign in to comment.