Skip to content
Commits on Source (11)
language: java
jdk:
- openjdk7
- openjdk8
- openjdk11
# no need to build all branches
branches:
only:
- master
- "2.8"
- "2.10"
jackson-datatype-joda (2.10.0-1) unstable; urgency=medium
* Team upload.
* New upstream version 2.10.0.
* Switch to debhelper-compat = 12.
* Declare compliance with Debian Policy 4.4.1.
* Drop java9.patch. No longer needed.
* Add base-pom-version.patch to fix an FTBFS because of outdated base-pom
file.
-- Markus Koschany <apo@debian.org> Thu, 03 Oct 2019 18:37:24 +0200
jackson-datatype-joda (2.9.8-1) unstable; urgency=medium
* Team upload.
......
......@@ -4,7 +4,7 @@ Priority: optional
Maintainer: Debian Java maintainers <pkg-java-maintainers@lists.alioth.debian.org>
Uploaders: Tim Potter <tpot@hp.com>
Build-Depends:
debhelper (>= 11),
debhelper-compat (= 12),
default-jdk,
default-jdk-doc,
javahelper,
......@@ -21,7 +21,7 @@ Build-Depends:
libreplacer-java,
maven-debian-helper,
xmlstarlet
Standards-Version: 4.3.0
Standards-Version: 4.4.1
Vcs-Git: https://salsa.debian.org/java-team/jackson-datatype-joda.git
Vcs-Browser: https://salsa.debian.org/java-team/jackson-datatype-joda
Homepage: https://github.com/FasterXML/jackson-datatype-joda
......
org.moditect moditect-maven-plugin * * * *
From: Markus Koschany <apo@debian.org>
Date: Thu, 3 Oct 2019 18:42:06 +0200
Subject: base-pom version
---
pom.xml | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/pom.xml b/pom.xml
index e0b841b..c7acb29 100644
--- a/pom.xml
+++ b/pom.xml
@@ -4,7 +4,7 @@
<parent>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-base</artifactId>
- <version>2.10.0</version>
+ <version>debian</version>
</parent>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
From: Markus Koschany <apo@debian.org>
Date: Tue, 20 Mar 2018 21:12:39 +0100
Subject: java9
Bug-Debian: https://bugs.debian.org/cgi-bin/bugreport.cgi?bug=893218
Forwarded: no
---
src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java | 2 +-
1 file changed, 1 insertion(+), 1 deletion(-)
diff --git a/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java b/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java
index 6dcf39b..eabd828 100644
--- a/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java
+++ b/src/test/java/com/fasterxml/jackson/datatype/joda/DateTimeTest.java
@@ -123,7 +123,7 @@ public class DateTimeTest extends JodaTestBase
public void testCustomPatternStyle() throws IOException
{
// or, using annotations
- assertEquals(aposToQuotes("{'date':'1/1/70 12:00 AM'}"),
+ assertEquals(aposToQuotes("{'date':'1/1/70, 12:00 AM'}"),
STRING_MAPPER.writeValueAsString(new CustomDate(DATE_JAN_1_1970_UTC)));
}
java9.patch
base-pom-version.patch
......@@ -4,4 +4,4 @@
dh $@ --with javahelper
override_dh_installchangelogs:
dh_installchangelogs release-notes/VERSION
dh_installchangelogs release-notes/VERSION-2.x
version=4
opts="repack,compression=xz" \
https://github.com/FasterXML/jackson-datatype-joda/tags \
/FasterXML/jackson-datatype-joda/archive/jackson-datatype-joda-(.*)\.tar\.gz
opts=repack,compression=xz,uversionmangle=s/_/./g;s/\.Beta/~beta/;s/\.pr\d//;s/\.Final//;s/-rc/~rc/ \
https://github.com/FasterXML/jackson-datatype-joda/tags /FasterXML/jackson-datatype-joda/archive/jackson-datatype-joda-(.*)\.tar\.gz
......@@ -4,12 +4,12 @@
<parent>
<groupId>com.fasterxml.jackson</groupId>
<artifactId>jackson-base</artifactId>
<version>2.9.8</version>
<version>2.10.0</version>
</parent>
<groupId>com.fasterxml.jackson.datatype</groupId>
<artifactId>jackson-datatype-joda</artifactId>
<name>Jackson-datatype-Joda</name>
<version>2.9.8</version>
<version>2.10.0</version>
<packaging>bundle</packaging>
<description>Add-on module for Jackson (http://jackson.codehaus.org) to support
Joda (http://joda-time.sourceforge.net/) data types.
......@@ -19,7 +19,7 @@ Joda (http://joda-time.sourceforge.net/) data types.
<connection>scm:git:git@github.com:FasterXML/jackson-datatype-joda.git</connection>
<developerConnection>scm:git:git@github.com:FasterXML/jackson-datatype-joda.git</developerConnection>
<url>http://github.com/FasterXML/jackson-datatype-joda</url>
<tag>jackson-datatype-joda-2.9.8</tag>
<tag>jackson-datatype-joda-2.10.0</tag>
</scm>
<properties>
<!-- Generate PackageVersion.java into this directory. -->
......@@ -54,8 +54,11 @@ Joda (http://joda-time.sourceforge.net/) data types.
<artifactId>joda-time</artifactId>
<!-- Baseline was 2.2 for Jackson 2.4: no new functionality used from laster
versions but gradually increasing baseline to get bugfixes etc
2.7 for Jackson 2.9
2.9[.9] for Jackson 2.10
-->
<version>2.7</version>
<version>2.9.9</version>
</dependency>
<!-- and junit for testing -->
......@@ -80,6 +83,13 @@ Joda (http://joda-time.sourceforge.net/) data types.
</execution>
</executions>
</plugin>
<!-- 19-Mar-2019, tatu: Add rudimentary JDK9+ module info. To build with JDK 8
will have to use `moduleInfoFile` as anything else requires JDK 9+
-->
<plugin>
<groupId>org.moditect</groupId>
<artifactId>moditect-maven-plugin</artifactId>
</plugin>
</plugins>
</build>
</project>
......@@ -4,6 +4,13 @@ Project: jackson-datatype-joda
=== Releases ===
------------------------------------------------------------------------
2.10.0 (26-Sep-2019)
- Add JDK9 `module-info.class` using Moditect plugin
- Update Joda dependency to 2.9.9 (should still work with older versions too)
2.9.10 (21-Sep-2019)
2.9.9 (16-May-2019)
2.9.8 (15-Dec-2018)
No changes since 2.9.7
......
// Generated 27-Mar-2019 using Moditect maven plugin
module com.fasterxml.jackson.datatype.joda {
requires com.fasterxml.jackson.annotation;
requires com.fasterxml.jackson.core;
requires com.fasterxml.jackson.databind;
requires joda.time;
exports com.fasterxml.jackson.datatype.joda;
exports com.fasterxml.jackson.datatype.joda.cfg;
exports com.fasterxml.jackson.datatype.joda.deser;
exports com.fasterxml.jackson.datatype.joda.deser.key;
exports com.fasterxml.jackson.datatype.joda.ser;
provides com.fasterxml.jackson.databind.Module with
com.fasterxml.jackson.datatype.joda.JodaModule;
}
......@@ -123,8 +123,13 @@ public class DateTimeTest extends JodaTestBase
public void testCustomPatternStyle() throws IOException
{
// or, using annotations
assertEquals(aposToQuotes("{'date':'1/1/70 12:00 AM'}"),
STRING_MAPPER.writeValueAsString(new CustomDate(DATE_JAN_1_1970_UTC)));
// 05-May-2019, tatu: Looks like "short representation" somehow varies between JDK 8 and JDK 11?
// JDK 11 adding an extra comma. No idea how, why but... need to work around
String json = STRING_MAPPER.writeValueAsString(new CustomDate(DATE_JAN_1_1970_UTC));
if (json.contains(",")) {
json = json.replace(", ", " ");
}
assertEquals(aposToQuotes("{'date':'1/1/70 12:00 AM'}"), json);
}
public void testSerializationWithTypeInfo() throws IOException
......
......@@ -72,7 +72,7 @@ public class DurationDeserializationTest extends JodaTestBase
public void testDurationKeyDeserialize() throws IOException
{
final String json = "{" + quote("PT60s") + ":0}";
final Map<Duration, Long> map = MAPPER.readValue(json,
final Map<Duration,?> map = MAPPER.readValue(json,
new TypeReference<Map<Duration, String>>() { });
assertNotNull(map);
assertTrue(map.containsKey(Duration.standardMinutes(1L)));
......@@ -98,7 +98,7 @@ public class DurationDeserializationTest extends JodaTestBase
public void testDurationAltKeyDeserialize() throws IOException
{
final String json = "{" + quote("PT4H30M") + ":0}";
final Map<Duration, Long> map = MAPPER.readValue(json,
final Map<Duration,?> map = MAPPER.readValue(json,
new TypeReference<Map<Duration, String>>() { });
assertNotNull(map);
assertTrue(map.containsKey(Duration.standardMinutes(4 * 60 + 30)));
......
......@@ -31,7 +31,7 @@ public class KeyDeserTest extends JodaTestBase
public void testDateTimeKeyDeserialize() throws IOException {
final String json = "{" + quote("1970-01-01T00:00:00.000Z") + ":0}";
final Map<DateTime, Long> map = MAPPER.readValue(json, new TypeReference<Map<DateTime, String>>() { });
final Map<DateTime,?> map = MAPPER.readValue(json, new TypeReference<Map<DateTime, String>>() { });
assertNotNull(map);
assertTrue(map.containsKey(DateTime.parse("1970-01-01T00:00:00.000Z")));
......@@ -40,7 +40,7 @@ public class KeyDeserTest extends JodaTestBase
public void testLocalDateKeyDeserialize() throws IOException {
final String json = "{" + quote("2014-05-23") + ":0}";
final Map<LocalDate, Long> map = MAPPER.readValue(json, new TypeReference<Map<LocalDate, String>>() { });
final Map<LocalDate,?> map = MAPPER.readValue(json, new TypeReference<Map<LocalDate, String>>() { });
assertNotNull(map);
assertTrue(map.containsKey(LocalDate.parse("2014-05-23")));
......@@ -49,14 +49,14 @@ public class KeyDeserTest extends JodaTestBase
public void testLocalTimeKeyDeserialize() throws IOException {
final String json = "{" + quote("00:00:00.000") + ":0}";
final Map<LocalTime, Long> map = MAPPER.readValue(json, new TypeReference<Map<LocalTime, String>>() { });
final Map<LocalTime,?> map = MAPPER.readValue(json, new TypeReference<Map<LocalTime, String>>() { });
assertNotNull(map);
assertTrue(map.containsKey(LocalTime.parse("00:00:00.000")));
}
public void testLocalDateTimeKeyDeserialize() throws IOException {
final String json = "{" + quote("2014-05-23T00:00:00.000") + ":0}";
final Map<LocalDateTime, Long> map = MAPPER.readValue(json, new TypeReference<Map<LocalDateTime, String>>() { });
final Map<LocalDateTime,?> map = MAPPER.readValue(json, new TypeReference<Map<LocalDateTime, String>>() { });
assertNotNull(map);
assertTrue(map.containsKey(LocalDateTime.parse("2014-05-23T00:00:00.000")));
}
......
......@@ -72,7 +72,7 @@ public class PeriodDeserializationTest extends JodaTestBase
public void testPeriodKeyDeserialize() throws IOException {
final String json = "{" + quote("PT1H2M3.004S") + ":0}";
final Map<Period, Long> map = MAPPER.readValue(json, new TypeReference<Map<Period, String>>() { });
final Map<Period,Long> map = MAPPER.readValue(json, new TypeReference<Map<Period, Long>>() { });
assertNotNull(map);
assertTrue(map.containsKey(new Period(1, 2, 3, 4)));
}
......