This is an automated email from the ASF dual-hosted git repository.
jiriondrusek pushed a commit to branch camel-main
in repository https://gitbox.apache.org/repos/asf/camel-quarkus.git
The following commit(s) were added to refs/heads/camel-main by this push:
new 263315191b Fixed datetime + generated poms
263315191b is described below
commit 263315191bcef8769c96f1c9a4894bd67941554d
Author: JiriOndrusek <[email protected]>
AuthorDate: Fri Jun 21 11:51:59 2024 +0200
Fixed datetime + generated poms
---
.../quarkus/component/dataformat/it/ICalUtils.java | 38 ++++++++++------------
poms/bom/src/main/generated/flattened-full-pom.xml | 14 ++++----
.../src/main/generated/flattened-reduced-pom.xml | 12 +++----
.../generated/flattened-reduced-verbose-pom.xml | 12 +++----
4 files changed, 37 insertions(+), 39 deletions(-)
diff --git
a/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java
b/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java
index b13ec412f8..30ead3641b 100644
---
a/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java
+++
b/integration-tests/dataformat/src/main/java/org/apache/camel/quarkus/component/dataformat/it/ICalUtils.java
@@ -17,18 +17,18 @@
package org.apache.camel.quarkus.component.dataformat.it;
import java.net.URI;
+import java.time.DateTimeException;
+import java.time.Instant;
import java.time.ZonedDateTime;
import net.fortuna.ical4j.model.Calendar;
import net.fortuna.ical4j.model.DateTime;
-import net.fortuna.ical4j.model.PropertyList;
import net.fortuna.ical4j.model.TimeZoneRegistry;
import net.fortuna.ical4j.model.TimeZoneRegistryFactory;
import net.fortuna.ical4j.model.component.VEvent;
import net.fortuna.ical4j.model.parameter.Cn;
import net.fortuna.ical4j.model.parameter.Role;
import net.fortuna.ical4j.model.property.Attendee;
-import net.fortuna.ical4j.model.property.CalScale;
import net.fortuna.ical4j.model.property.DtEnd;
import net.fortuna.ical4j.model.property.DtStamp;
import net.fortuna.ical4j.model.property.DtStart;
@@ -36,7 +36,8 @@ import net.fortuna.ical4j.model.property.ProdId;
import net.fortuna.ical4j.model.property.Summary;
import net.fortuna.ical4j.model.property.TzId;
import net.fortuna.ical4j.model.property.Uid;
-import net.fortuna.ical4j.model.property.Version;
+import net.fortuna.ical4j.model.property.immutable.ImmutableCalScale;
+import net.fortuna.ical4j.model.property.immutable.ImmutableVersion;
public class ICalUtils {
@@ -46,35 +47,32 @@ public class ICalUtils {
String tzId = start.getZone().getId();
// Create the event
- PropertyList propertyList = new PropertyList();
- DateTime ts = new DateTime(true);
- ts.setTime(0);
- propertyList.add(new DtStamp(ts));
- propertyList.add(new DtStart(toDateTime(start, registry)));
- propertyList.add(new DtEnd(toDateTime(end, registry)));
- propertyList.add(new Summary(summary));
- VEvent meeting = new VEvent(propertyList);
+ VEvent meeting = new VEvent();
+ meeting.replace(new DtStamp(Instant.ofEpochMilli(0)));
+ meeting.add(new DtStart(toDateTime(start, registry).toInstant()));
+ meeting.add(new DtEnd(toDateTime(end, registry).toInstant()));
+ meeting.add(new Summary(summary));
// add timezone info..
- meeting.getProperties().add(new TzId(tzId));
+ meeting.add(new TzId(tzId));
// generate unique identifier..
- meeting.getProperties().add(new Uid("00000000"));
+ meeting.add(new Uid("00000000"));
// add attendees..
Attendee dev1 = new Attendee(URI.create("mailto:" + attendee));
- dev1.getParameters().add(Role.REQ_PARTICIPANT);
- dev1.getParameters().add(new Cn(attendee));
- meeting.getProperties().add(dev1);
+ dev1.add(Role.REQ_PARTICIPANT);
+ dev1.add(new Cn(attendee));
+ meeting.add(dev1);
// Create a calendar
net.fortuna.ical4j.model.Calendar icsCalendar = new
net.fortuna.ical4j.model.Calendar();
- icsCalendar.getProperties().add(Version.VERSION_2_0);
- icsCalendar.getProperties().add(new ProdId("-//Events Calendar//iCal4j
1.0//EN"));
- icsCalendar.getProperties().add(CalScale.GREGORIAN);
+ icsCalendar.add(ImmutableVersion.VERSION_2_0);
+ icsCalendar.add(new ProdId("-//Events Calendar//iCal4j 1.0//EN"));
+ icsCalendar.add(ImmutableCalScale.GREGORIAN);
// Add the event and print
- icsCalendar.getComponents().add(meeting);
+ icsCalendar.add(meeting);
return icsCalendar;
}
diff --git a/poms/bom/src/main/generated/flattened-full-pom.xml
b/poms/bom/src/main/generated/flattened-full-pom.xml
index a8d8950b86..85ef1ccad9 100644
--- a/poms/bom/src/main/generated/flattened-full-pom.xml
+++ b/poms/bom/src/main/generated/flattened-full-pom.xml
@@ -7102,7 +7102,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-aop</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7117,7 +7117,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-expression</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7128,7 +7128,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-jdbc</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7143,7 +7143,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-jms</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7158,7 +7158,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-messaging</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7173,7 +7173,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-orm</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7188,7 +7188,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-tx</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
diff --git a/poms/bom/src/main/generated/flattened-reduced-pom.xml
b/poms/bom/src/main/generated/flattened-reduced-pom.xml
index a45f39724b..a76dcc6ef7 100644
--- a/poms/bom/src/main/generated/flattened-reduced-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-pom.xml
@@ -7021,7 +7021,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-aop</artifactId>
- <version>6.1.9</version>
+ <version>6.1.10</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
@@ -7036,7 +7036,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-expression</artifactId>
- <version>6.1.9</version>
+ <version>6.1.10</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
@@ -7047,7 +7047,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
- <version>6.1.9</version>
+ <version>6.1.10</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
@@ -7062,7 +7062,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jms</artifactId>
- <version>6.1.9</version>
+ <version>6.1.10</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
@@ -7077,7 +7077,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-messaging</artifactId>
- <version>6.1.9</version>
+ <version>6.1.10</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
@@ -7092,7 +7092,7 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
- <version>6.1.9</version>
+ <version>6.1.10</version>
<exclusions>
<exclusion>
<groupId>org.springframework</groupId>
diff --git a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
index 728937a290..ba6c15595c 100644
--- a/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
+++ b/poms/bom/src/main/generated/flattened-reduced-verbose-pom.xml
@@ -7021,7 +7021,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-aop</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7036,7 +7036,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-expression</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7047,7 +7047,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-jdbc</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7062,7 +7062,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-jms</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7077,7 +7077,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-messaging</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
@@ -7092,7 +7092,7 @@
<dependency>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<artifactId>spring-tx</artifactId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
- <version>6.1.9</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
+ <version>6.1.10</version><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->
<exclusions>
<exclusion>
<groupId>org.springframework</groupId><!--
org.apache.camel.quarkus:camel-quarkus-bom:${project.version} -->