Skip to content

Commit

Permalink
Extracted jdbc-template functionality to separate project.
Browse files Browse the repository at this point in the history
  • Loading branch information
kagkarlsson committed Aug 2, 2015
1 parent a19dd8d commit 565cf24
Show file tree
Hide file tree
Showing 14 changed files with 624 additions and 0 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
.idea
*.iml
target
19 changes: 19 additions & 0 deletions NOTICE
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
Micro-jdbc templates

Copyright 2015 Gustav Karlsson. All Rights Reserved.

This product includes software developed by Gustav Karlsson.
Licensed under Apache 2 - http://www.apache.org/licenses/LICENSE-2.0.html


This software includes third party software subject to the following licenses:

Hamcrest Core under New BSD License
Hamcrest library under New BSD License
JUnit under Eclipse Public License 1.0
micro-jdbc under The Apache Software License, Version 2.0
Mockito under The MIT License
Objenesis under Apache 2
SLF4J API Module under MIT License


275 changes: 275 additions & 0 deletions pom.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,275 @@
<?xml version="1.0" encoding="UTF-8"?>
<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>com.kagkarlsson</groupId>
<artifactId>micro-jdbc</artifactId>
<version>1.0-SNAPSHOT</version>


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

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<maven.compiler.source>1.8</maven.compiler.source>
<maven.compiler.target>1.8</maven.compiler.target>
</properties>

<dependencies>

<dependency>
<groupId>org.slf4j</groupId>
<artifactId>slf4j-api</artifactId>
<version>1.7.12</version>
</dependency>

<dependency>
<groupId>junit</groupId>
<artifactId>junit</artifactId>
<version>4.12</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hamcrest</groupId>
<artifactId>hamcrest-library</artifactId>
<version>1.3</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.mockito</groupId>
<artifactId>mockito-core</artifactId>
<version>1.10.19</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
<version>1.1.2</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>org.hsqldb</groupId>
<artifactId>hsqldb</artifactId>
<version>2.3.2</version>
<scope>test</scope>
</dependency>

</dependencies>

<build>
<pluginManagement>
<plugins>
<plugin>
<artifactId>maven-release-plugin</artifactId>
<version>2.5.1</version>
<configuration>
<tagNameFormat>@{project.version}</tagNameFormat>
</configuration>
</plugin>
<plugin>
<groupId>org.jasig.maven</groupId>
<artifactId>maven-notice-plugin</artifactId>
<version>1.0.6.1</version>
<configuration>
<noticeTemplate>${project.basedir}/src/main/notice/NOTICE.template</noticeTemplate>
<licenseMapping>
<param>${project.basedir}/src/main/notice/license-mappings.xml</param>
</licenseMapping>
<skipChecks>true</skipChecks><!-- TODO:remove -->
</configuration>
</plugin>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>2.10</version>
<configuration>
<header>src/main/license-header.txt</header>
<strictCheck>true</strictCheck>
<excludes>
<exclude>pom.xml</exclude>
<exclude>LICENSE*</exclude>
<exclude>NOTICE</exclude>
<exclude>src/main/notice/NOTICE.template</exclude>
<exclude>src/main/notice/license-mappings.xml</exclude>
<exclude>src/test/**</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<version>1.4</version>
<configuration>
<rules>
<bannedDependencies>
<excludes>
<exclude>*:*</exclude>
</excludes>
<includes>
<include>org.slf4j:slf4j-api</include>
<include>ch.qos.logback:logback-classic</include>
<include>org.hamcrest:hamcrest-core</include>
<include>org.hamcrest:hamcrest-library</include>
<include>junit:junit</include>
<include>org.mockito:mockito-core</include>
<include>org.objenesis:objenesis</include>
<include>org.hsqldb:hsqldb</include>
<include>ch.qos.logback:logback-core</include>
</includes>
<searchTransitive>true</searchTransitive>
<message>
Detected unknown dependencies! Verify that all licenses are OK, and run mvn notice:generate to update the NOTICE file.
</message>
</bannedDependencies>
</rules>
</configuration>
</plugin>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.3</version>
</plugin>
<plugin>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.18.1</version>
</plugin>
<plugin>
<artifactId>maven-deploy-plugin</artifactId>
<version>2.8.2</version>
</plugin>
<plugin>
<artifactId>maven-clean-plugin</artifactId>
<version>2.6.1</version>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<version>2.10</version>
</plugin>
<plugin>
<artifactId>maven-install-plugin</artifactId>
<version>2.5.2</version>
</plugin>
<plugin>
<artifactId>maven-resources-plugin</artifactId>
<version>2.7</version>
</plugin>
<plugin>
<artifactId>maven-site-plugin</artifactId>
<version>3.4</version>
</plugin>
<plugin>
<artifactId>maven-jar-plugin</artifactId>
<version>2.6</version>
</plugin>
</plugins>
</pluginManagement>
<plugins>
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<executions>
<execution>
<id>check-license-header</id>
<phase>test</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<failIfMissing>false</failIfMissing> <!-- TODO: remove -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.10.2</version>
<executions>
<execution>
<id>attach-javadocs</id>
<goals>
<goal>jar</goal>
</goals>
</execution>
</executions>
<configuration>
<additionalparam>-Xdoclint:-missing</additionalparam>
</configuration>
</plugin>
<plugin>
<artifactId>maven-source-plugin</artifactId>
<version>2.4</version>
<executions>
<execution>
<id>attach-sources</id>
<goals>
<goal>jar</goal>
</goals>
<configuration>
<includePom>true</includePom>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<groupId>org.jasig.maven</groupId>
<artifactId>maven-notice-plugin</artifactId>
<executions>
<execution>
<id>check-NOTICE-file</id>
<phase>verify</phase>
<goals>
<goal>check</goal>
</goals>
<configuration>
<skipChecks>true</skipChecks><!-- TODO: remove -->
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-dependency-plugin</artifactId>
<executions>
<execution>
<goals>
<goal>analyze-only</goal>
</goals>
<configuration>
<failOnWarning>true</failOnWarning>
<ignoreNonCompile>true</ignoreNonCompile>
</configuration>
</execution>
</executions>
</plugin>
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>test</id>
<goals>
<goal>enforce</goal>
</goals>
<phase>test</phase>
<configuration>
<skip>true</skip><!-- TODO: remove -->
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>

<scm>
<connection>scm:git:[email protected]:kagkarlsson/micro-jdbc.git</connection>
<developerConnection>scm:git:[email protected]:kagkarlsson/micro-jdbc.git</developerConnection>
<url>https://github.com/kagkarlsson/micro-jdbc/</url>
<tag>HEAD</tag>
</scm>

</project>
Original file line number Diff line number Diff line change
@@ -0,0 +1,9 @@
package com.kagkarlsson.jdbc;

import java.sql.SQLException;

public class IntegrityConstraintViolation extends RuntimeException {
public IntegrityConstraintViolation(SQLException ex) {
super(ex);
}
}
Loading

0 comments on commit 565cf24

Please sign in to comment.