Skip to content
This repository was archived by the owner on Sep 21, 2020. It is now read-only.

Commit 5562395

Browse files
Steve Kingslandjeffkole
authored andcommitted
Initial commit
1 parent 9a3a59e commit 5562395

18 files changed

Lines changed: 595 additions & 1 deletion

.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
target

LICENSE.txt

Lines changed: 19 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
Copyright (c) 2013 Opower Inc
2+
3+
Permission is hereby granted, free of charge, to any person obtaining a copy
4+
of this software and associated documentation files (the "Software"), to deal
5+
in the Software without restriction, including without limitation the rights
6+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
7+
copies of the Software, and to permit persons to whom the Software is
8+
furnished to do so, subject to the following conditions:
9+
10+
The above copyright notice and this permission notice shall be included in
11+
all copies or substantial portions of the Software.
12+
13+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
14+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
15+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
16+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
17+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
18+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN
19+
THE SOFTWARE.

README.md

Lines changed: 8 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,11 @@
11
jackson-module-unitsofmeasure
22
=============================
33

4-
Contains custom serializers and deserializers for org.unitsofmeasure classes.
4+
Contains custom serializers and deserializers for org.unitsofmeasure classes.
5+
6+
This was built with a custom `5.0-opower` version of JScience, which is provided in a local Maven repository, located in the
7+
`/repo` sub-directory of this artifact. It was built from JScience version `r65` (from 2011-10-27), because as of 2013-11-05
8+
there is no publicly released version 5.0 (or greater). It contains fixes to the OSGI and Javolution dependencies, whose Maven
9+
coordinates have changed since the last official JScience release, and corrections to import statements for the
10+
`org.jscience.physics.unit.system.*` classes. The source code for this version of JScience is also available in the `/repo`
11+
sub-directory.

pom.xml

Lines changed: 74 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,74 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<project xmlns="http://maven.apache.org/POM/4.0.0"
3+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
4+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
5+
6+
<modelVersion>4.0.0</modelVersion>
7+
8+
<groupId>com.opower.unitsofmeasure</groupId>
9+
<artifactId>jackson-module-unitsofmeasure</artifactId>
10+
<packaging>jar</packaging>
11+
<version>1.0.1</version>
12+
13+
<name>Jackson Unit of Measure Module</name>
14+
<description>Contains custom serializers and deserializers for org.unitsofmeasure classes.</description>
15+
16+
<repositories>
17+
<repository>
18+
<id>jscience-local-repo</id>
19+
<name>Local repository for the "5.0-opower" JScience version we depend on</name>
20+
<url>https://github.com/opower/jackson-module-unitsofmeasure/raw/master/repo</url>
21+
</repository>
22+
</repositories>
23+
24+
<dependencies>
25+
<!-- =========================================================================================================== -->
26+
<!-- The units of measurement interface is in the org.unitsofmeasurement package. -->
27+
<!-- The implementation is provided by JScience -->
28+
<!-- =========================================================================================================== -->
29+
<dependency>
30+
<groupId>org.unitsofmeasurement</groupId>
31+
<artifactId>unit-api</artifactId>
32+
<version>0.6.0</version>
33+
</dependency>
34+
<dependency>
35+
<groupId>org.jscience</groupId>
36+
<artifactId>jscience-physics</artifactId>
37+
<version>5.0-opower</version>
38+
</dependency>
39+
40+
<!-- =========================================================================================================== -->
41+
<!-- Jackson library for JSON-parsing -->
42+
<!-- =========================================================================================================== -->
43+
<dependency>
44+
<groupId>org.codehaus.jackson</groupId>
45+
<artifactId>jackson-core-asl</artifactId>
46+
<version>1.9.7</version>
47+
</dependency>
48+
<dependency>
49+
<groupId>org.codehaus.jackson</groupId>
50+
<artifactId>jackson-mapper-asl</artifactId>
51+
<version>1.9.7</version>
52+
</dependency>
53+
54+
<dependency>
55+
<groupId>junit</groupId>
56+
<artifactId>junit</artifactId>
57+
<version>4.10</version>
58+
<scope>test</scope>
59+
</dependency>
60+
</dependencies>
61+
62+
<build>
63+
<plugins>
64+
<plugin>
65+
<groupId>org.apache.maven.plugins</groupId>
66+
<artifactId>maven-compiler-plugin</artifactId>
67+
<configuration>
68+
<source>1.6</source>
69+
<target>1.6</target>
70+
</configuration>
71+
</plugin>
72+
</plugins>
73+
</build>
74+
</project>
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2fa49170e68c0b2424ee40de2468ef4e
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
93e9deb2114dc6cdf74e6e1c506410231eda5049
Binary file not shown.
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
2459e6865a5044a45138162e8be42941
Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
6d4bcf4c149f0b5e26db2cf441011aa22594e925

0 commit comments

Comments
 (0)