diff options
author | James Moger <james.moger@gitblit.com> | 2016-04-04 14:34:36 -0400 |
---|---|---|
committer | James Moger <james.moger@gitblit.com> | 2016-04-04 14:34:36 -0400 |
commit | d22dfbad3c8a897d794ad050f2b587d488050a08 (patch) | |
tree | 6e911b0a4faa280531e911208912e50e6d0a8093 | |
parent | 53f229d5046394702a07b0717c769f5c149a6581 (diff) | |
download | iciql-d22dfbad3c8a897d794ad050f2b587d488050a08.tar.gz iciql-d22dfbad3c8a897d794ad050f2b587d488050a08.zip |
Prepare the project for Maven; add pom to build, test, and release binaries
-rw-r--r-- | .classpath | 1 | ||||
-rw-r--r-- | build.moxie | 1 | ||||
-rw-r--r-- | pom.xml | 261 | ||||
-rw-r--r-- | src/test/java/com/iciql/test/IciqlSuite.java | 2 | ||||
-rw-r--r-- | src/test/resources/iciql.properties (renamed from src/test/java/iciql.properties) | 0 |
5 files changed, 264 insertions, 1 deletions
@@ -2,6 +2,7 @@ <classpath> <classpathentry kind="src" path="src/main/java" /> <classpathentry kind="src" path="src/test/java" output="bin/test-classes" /> + <classpathentry kind="src" path="src/test/resources" output="bin/test-classes" /> <classpathentry kind="lib" path="ext/jcommander-1.17.jar" sourcepath="ext/src/jcommander-1.17.jar" /> <classpathentry kind="lib" path="ext/h2-1.4.187.jar" sourcepath="ext/src/h2-1.4.187.jar" /> <classpathentry kind="lib" path="ext/hsqldb-2.3.2.jar" sourcepath="ext/src/hsqldb-2.3.2.jar" /> diff --git a/build.moxie b/build.moxie index d8a35ed..e2aacbd 100644 --- a/build.moxie +++ b/build.moxie @@ -55,6 +55,7 @@ sourceDirectories: - site 'src/site' resourceDirectories: +- test 'src/test/resources' - site 'src/site/resources' # compile for Java 6 class format @@ -0,0 +1,261 @@ +<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/maven-v4_0_0.xsd"> + + <modelVersion>4.0.0</modelVersion> + + <groupId>com.iciql</groupId> + <artifactId>iciql</artifactId> + <version>1.7.0-SNAPSHOT</version> + <name>Iciql</name> + <description>a model-based database access wrapper for JDBC</description> + <url>http://iciql.com</url> + <inceptionYear>2011</inceptionYear> + + <licenses> + <license> + <name>Apache ASL</name> + <url>http://www.apache.org/licenses/LICENSE-2.0.html</url> + </license> + </licenses> + + <scm> + <connection>scm:git:git://github.com/gitblit/iciql.git</connection> + <developerConnection>scm:git:https://github.com/gitblit/iciql.git</developerConnection> + <url>https://github.com/gitblit/iciql</url> + <tag>HEAD</tag> + </scm> + + <developers> + <developer> + <name>James Moger</name> + <email>james.moger@gmail.com</email> + <organization>gitblit.com</organization> + <organizationUrl>https://github.com/gitblit</organizationUrl> + </developer> + </developers> + + <distributionManagement> + <snapshotRepository> + <id>ossrh</id> + <url>https://oss.sonatype.org/content/repositories/snapshots</url> + </snapshotRepository> + <repository> + <id>ossrh</id> + <url>https://oss.sonatype.org/service/local/staging/deploy/maven2</url> + </repository> + </distributionManagement> + + <dependencies> + <!-- provided dependencies --> + <dependency> + <groupId>com.beust</groupId> + <artifactId>jcommander</artifactId> + <version>1.17</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>com.h2database</groupId> + <artifactId>h2</artifactId> + <version>1.4.187</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.hsqldb</groupId> + <artifactId>hsqldb</artifactId> + <version>2.3.2</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derby</artifactId> + <version>10.11.1.1</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derbyclient</artifactId> + <version>10.11.1.1</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.apache.derby</groupId> + <artifactId>derbynet</artifactId> + <version>10.11.1.1</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>mysql</groupId> + <artifactId>mysql-connector-java</artifactId> + <version>5.1.33</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.postgresql</groupId> + <artifactId>postgresql</artifactId> + <version>9.4-1201-jdbc41</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.xerial</groupId> + <artifactId>sqlite-jdbc</artifactId> + <version>3.8.10.1</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.slf4j</groupId> + <artifactId>slf4j-api</artifactId> + <version>1.7.12</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>commons-pool</groupId> + <artifactId>commons-pool</artifactId> + <version>1.5.6</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>commons-dbcp</groupId> + <artifactId>commons-dbcp</artifactId> + <version>1.4</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>com.google.code.gson</groupId> + <artifactId>gson</artifactId> + <version>2.3</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>com.thoughtworks.xstream</groupId> + <artifactId>xstream</artifactId> + <version>1.4.8</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <dependency> + <groupId>org.yaml</groupId> + <artifactId>snakeyaml</artifactId> + <version>1.15</version> + <type>jar</type> + <scope>provided</scope> + </dependency> + <!-- test dependencies --> + <dependency> + <groupId>junit</groupId> + <artifactId>junit</artifactId> + <version>4.11</version> + <type>jar</type> + <scope>test</scope> + </dependency> + </dependencies> + + <build> + <plugins> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-compiler-plugin</artifactId> + <version>3.1</version> + <configuration> + <source>1.6</source> + <target>1.6</target> + </configuration> + </plugin> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-surefire-plugin</artifactId> + <version>2.12.4</version> + <configuration> + <includes> + <include>com/iciql/test/IciqlSuite.java</include> + </includes> + </configuration> + </plugin> + <!-- Release plugin --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-release-plugin</artifactId> + <version>2.5</version> + <configuration> + <!-- install next final version in local repo, so that tests on archetypes work --> + <preparationGoals>clean install</preparationGoals> + <autoVersionSubmodules>true</autoVersionSubmodules> + <goals>deploy</goals> + <tagNameFormat>release-@{project.version}</tagNameFormat> + <useReleaseProfile>false</useReleaseProfile> + <releaseProfiles>release</releaseProfiles> + </configuration> + </plugin> + </plugins> + </build> + + <profiles> + <profile> + <id>release</id> + <build> + <plugins> + <!-- Java Source plugin --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-source-plugin</artifactId> + <executions> + <execution> + <id>attach-sources</id> + <goals> + <goal>jar</goal> + </goals> + </execution> + </executions> + </plugin> + + <!-- JavaDoc plugin --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-javadoc-plugin</artifactId> + <executions> + <execution> + <id>attach-javadocs</id> + <goals> + <goal>jar</goal> + </goals> + <configuration> + <additionalparam>-Xdoclint:none</additionalparam> + </configuration> + </execution> + </executions> + </plugin> + + <!-- GPG plugin to sign the artifacts --> + <plugin> + <groupId>org.apache.maven.plugins</groupId> + <artifactId>maven-gpg-plugin</artifactId> + <version>1.5</version> + <executions> + <execution> + <id>sign-artifacts</id> + <phase>verify</phase> + <goals> + <goal>sign</goal> + </goals> + </execution> + </executions> + </plugin> + </plugins> + </build> + </profile> + </profiles> + +</project> + diff --git a/src/test/java/com/iciql/test/IciqlSuite.java b/src/test/java/com/iciql/test/IciqlSuite.java index f30caf6..37c534c 100644 --- a/src/test/java/com/iciql/test/IciqlSuite.java +++ b/src/test/java/com/iciql/test/IciqlSuite.java @@ -152,7 +152,7 @@ public class IciqlSuite { }; - private static final TestDb DEFAULT_TEST_DB = TEST_DBS[0]; + private static final TestDb DEFAULT_TEST_DB = TEST_DBS[3]; private static final PrintStream ERR = System.err; diff --git a/src/test/java/iciql.properties b/src/test/resources/iciql.properties index cecb056..cecb056 100644 --- a/src/test/java/iciql.properties +++ b/src/test/resources/iciql.properties |