1 <?xml version="1.0" encoding="UTF-8"?>
3 xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"
4 xmlns="http://maven.apache.org/POM/4.0.0"
5 xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
6 <modelVersion>4.0.0</modelVersion>
7 <name>RocksDB JNI</name>
8 <url>http://rocksdb.org/</url>
9 <groupId>org.rocksdb</groupId>
10 <artifactId>rocksdbjni</artifactId>
11 <!-- Version will be automatically replaced -->
13 <description>RocksDB fat jar that contains .so files for linux32 and linux64 (glibc and musl-libc), jnilib files
14 for Mac OSX, and a .dll for Windows x64.
18 <name>Apache License 2.0</name>
19 <url>http://www.apache.org/licenses/LICENSE-2.0.html</url>
20 <distribution>repo</distribution>
23 <name>GNU General Public License, version 2</name>
24 <url>http://www.gnu.org/licenses/gpl-2.0.html</url>
25 <distribution>repo</distribution>
29 <connection>scm:git:git://github.com/dropwizard/metrics.git</connection>
30 <developerConnection>scm:git:git@github.com:dropwizard/metrics.git</developerConnection>
31 <url>http://github.com/dropwizard/metrics/</url>
37 <email>help@facebook.com</email>
38 <timezone>America/New_York</timezone>
40 <role>architect</role>
46 <project.build.source>1.7</project.build.source>
47 <project.build.target>1.7</project.build.target>
48 <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
54 <groupId>org.apache.maven.plugins</groupId>
55 <artifactId>maven-compiler-plugin</artifactId>
56 <version>3.2</version>
58 <source>${project.build.source}</source>
59 <target>${project.build.target}</target>
60 <encoding>${project.build.sourceEncoding}</encoding>
64 <groupId>org.apache.maven.plugins</groupId>
65 <artifactId>maven-surefire-plugin</artifactId>
66 <version>2.18.1</version>
68 <argLine>${argLine} -ea -Xcheck:jni -Djava.library.path=${project.build.directory}</argLine>
69 <useManifestOnlyJar>false</useManifestOnlyJar>
70 <useSystemClassLoader>false</useSystemClassLoader>
71 <additionalClasspathElements>
72 <additionalClasspathElement>${project.build.directory}/*</additionalClasspathElement>
73 </additionalClasspathElements>
77 <groupId>org.jacoco</groupId>
78 <artifactId>jacoco-maven-plugin</artifactId>
79 <version>0.7.2.201409121644</version>
83 <goal>prepare-agent</goal>
88 <phase>prepare-package</phase>
96 <groupId>org.codehaus.gmaven</groupId>
97 <artifactId>groovy-maven-plugin</artifactId>
98 <version>2.0</version>
101 <phase>process-classes</phase>
110 String fileContents = new File(project.basedir.absolutePath + '/../include/rocksdb/version.h').getText('UTF-8')
111 matcher = (fileContents =~ /(?s).*ROCKSDB_MAJOR ([0-9]+).*?/)
112 String major_version = matcher.getAt(0).getAt(1)
113 matcher = (fileContents =~ /(?s).*ROCKSDB_MINOR ([0-9]+).*?/)
114 String minor_version = matcher.getAt(0).getAt(1)
115 matcher = (fileContents =~ /(?s).*ROCKSDB_PATCH ([0-9]+).*?/)
116 String patch_version = matcher.getAt(0).getAt(1)
117 String version = String.format('%s.%s.%s', major_version, minor_version, patch_version)
118 // Set version to be used in pom.properties
119 project.version = version
120 // Set version to be set as jar name
121 project.build.finalName = project.artifactId + "-" + version
132 <groupId>junit</groupId>
133 <artifactId>junit</artifactId>
134 <version>4.12</version>
138 <groupId>org.assertj</groupId>
139 <artifactId>assertj-core</artifactId>
140 <version>1.7.1</version>
144 <groupId>org.mockito</groupId>
145 <artifactId>mockito-all</artifactId>
146 <version>1.10.19</version>