itu
Used in: 4 components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
Overview
Description
Extremely fast date-time parser and formatter - RFC 3339 (ISO 8601 profile) and W3C format
Snippets
<dependency> <groupId>com.ethlo.time</groupId> <artifactId>itu</artifactId> <version>1.14.0</version> </dependency>
Maven POM File
<!-- #%L Internet Time Utility %% Copyright (C) 2017 Morten Haraldsen (ethlo) %% Licensed under the Apache License, Version 2.0 (the "License"); you may not use this file except in compliance with the License. You may obtain a copy of the License at http://www.apache.org/licenses/LICENSE-2.0 Unless required by applicable law or agreed to in writing, software distributed under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the License for the specific language governing permissions and limitations under the License. #L% --> <project xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xmlns="http://maven.apache.org/POM/4.0.0" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd"> <modelVersion>4.0.0</modelVersion> <groupId>com.ethlo.time</groupId> <packaging>bundle</packaging> <artifactId>itu</artifactId> <version>1.14.0</version> <name>Internet Time Utility</name> <description>Extremely fast date-time parser and formatter - RFC 3339 (ISO 8601 profile) and W3C format </description> <licenses> <license> <name>Apache License, Version 2.0</name> <url>https://www.apache.org/licenses/LICENSE-2.0.txt</url> <distribution>repo</distribution> </license> </licenses> <url>https://github.com/ethlo/itu</url> <developers> <developer> <name>Morten Haraldsen</name> <url>https://ethlo.com</url> </developer> </developers> <dependencies> <dependency> <groupId>org.assertj</groupId> <artifactId>assertj-core</artifactId> <version>3.24.2</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-api</artifactId> <version>5.9.3</version> <scope>test</scope> </dependency> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter-params</artifactId> <version>5.9.3</version> <scope>test</scope> </dependency> <dependency> <groupId>com.fasterxml.jackson.core</groupId> <artifactId>jackson-databind</artifactId> <version>2.18.2</version> <scope>test</scope> </dependency> <dependency> <groupId>com.code-intelligence</groupId> <artifactId>jazzer-junit</artifactId> <version>0.24.0</version> <scope>test</scope> </dependency> <dependency> <groupId>org.slf4j</groupId> <artifactId>slf4j-api</artifactId> <version>2.0.11</version> <scope>test</scope> </dependency> <dependency> <groupId>ch.qos.logback</groupId> <artifactId>logback-classic</artifactId> <version>1.3.15</version> <scope>test</scope> </dependency> </dependencies> <build> <plugins> <plugin> <artifactId>maven-compiler-plugin</artifactId> <version>3.13.0</version> <configuration> <source>1.8</source> <target>1.8</target> <encoding>UTF-8</encoding> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-source-plugin</artifactId> <version>3.2.1</version> <executions> <execution> <id>attach-sources</id> <goals> <goal>jar</goal> </goals> </execution> </executions> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-javadoc-plugin</artifactId> <version>3.3.1</version> <executions> <execution> <id>attach-javadocs</id> <goals> <goal>jar</goal> </goals> </execution> </executions> <configuration> <show>public</show> <source>8</source> <excludePackageNames>com.ethlo.time.internal;com.ethlo.time.internal.*</excludePackageNames> <quiet>true</quiet> <doclint>all,-missing</doclint> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-jar-plugin</artifactId> <version>3.4.2</version> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-surefire-plugin</artifactId> <version>3.5.2</version> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>versions-maven-plugin</artifactId> <version>2.8.1</version> </plugin> <plugin> <groupId>org.sonatype.plugins</groupId> <artifactId>nexus-staging-maven-plugin</artifactId> <version>1.6.13</version> <extensions>true</extensions> <configuration> <serverId>sonatype-nexus-staging</serverId> <nexusUrl>https://oss.sonatype.org/</nexusUrl> <autoReleaseAfterClose>true</autoReleaseAfterClose> </configuration> </plugin> <plugin> <groupId>org.apache.maven.plugins</groupId> <artifactId>maven-gpg-plugin</artifactId> <version>1.6</version> <executions> <execution> <id>sign-artifacts</id> <phase>verify</phase> <goals> <goal>sign</goal> </goals> </execution> </executions> <configuration> <executable>gpg</executable> </configuration> </plugin> <plugin> <groupId>org.codehaus.mojo</groupId> <artifactId>license-maven-plugin</artifactId> <version>2.2.0</version> <configuration> <verbose>false</verbose> <addSvnKeyWords>true</addSvnKeyWords> </configuration> <executions> <execution> <id>first</id> <goals> <goal>update-file-header</goal> </goals> <phase>process-sources</phase> <configuration> <licenseName>apache_v2</licenseName> <inceptionYear>2017</inceptionYear> <organizationName>Morten Haraldsen @ethlo</organizationName> <addSvnKeyWords>false</addSvnKeyWords> <canUpdateDescription>false</canUpdateDescription> <roots> <root>src/main/java</root> <root>src/test</root> </roots> </configuration> </execution> <execution> <id>add-third-party</id> <goals> <goal>add-third-party</goal> </goals> <phase>process-sources</phase> <configuration> <excludedScopes>test</excludedScopes> </configuration> </execution> </executions> </plugin> <plugin> <groupId>org.apache.felix</groupId> <artifactId>maven-bundle-plugin</artifactId> <version>5.1.8</version> <extensions>true</extensions> <configuration> <instructions> <Export-Package> com.ethlo.time;com.ethlo.time.token; </Export-Package> </instructions> </configuration> </plugin> </plugins> <extensions> <extension> <groupId>org.apache.maven.wagon</groupId> <artifactId>wagon-ssh</artifactId> <version>3.4.3</version> </extension> </extensions> </build> <distributionManagement> <repository> <id>sonatype-nexus-staging</id> <name>Nexus Release Repository</name> <url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url> </repository> <snapshotRepository> <id>sonatype-nexus-snapshots</id> <name>Nexus Snapshot repository</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </snapshotRepository> </distributionManagement> <scm> <url>https://github.com/ethlo/itu</url> <connection>scm:git:git@github.com/ethlo/itu.git</connection> <developerConnection>scm:git:git@github.com/ethlo/itu.git</developerConnection> </scm> <properties> <project.build.sourceEncoding>UTF-8</project.build.sourceEncoding> <gpg.skip>true</gpg.skip> </properties> <profiles> <profile> <id>readme</id> <activation> <activeByDefault>false</activeByDefault> <!-- This profile is not active by default --> </activation> <build> <resources> <resource> <directory>src/main/resources</directory> </resource> <resource> <filtering>true</filtering> <directory>${project.basedir}/src/site</directory> <includes> <include>README.md</include> </includes> <targetPath>${project.basedir}</targetPath> </resource> </resources> </build> </profile> <profile> <id>proguard</id> <activation> <jdk>[9,22)</jdk> </activation> <build> <plugins> <plugin> <groupId>com.github.wvengen</groupId> <artifactId>proguard-maven-plugin</artifactId> <version>2.6.1</version> <executions> <execution> <phase>package</phase> <goals> <goal>proguard</goal> </goals> </execution> </executions> <configuration> <obfuscate>true</obfuscate> <injar>${project.build.finalName}.jar</injar> <outjar>${project.build.finalName}-small.jar</outjar> <outputDirectory>${project.build.directory}</outputDirectory> <attach>true</attach> <options> <option>-dontnote</option> <option>-allowaccessmodification</option> <option>-repackageclasses</option> <option>-flattenpackagehierarchy a</option> <option>-keepattributes Signature</option> <option>-keep class META-INF.versions.9.module-info { *; }</option> <option>-keep public class com.ethlo.time.ParseConfig { *; }</option> <option>-keep public class com.ethlo.time.ITU { *; }</option> <option>-keep public class com.ethlo.time.DateTime { *; }</option> <option>-keep public class com.ethlo.time.Field { *; }</option> <option>-keep public class com.ethlo.time.TemporalType { *; }</option> <option>-keep public class com.ethlo.time.TemporalConsumer { *; }</option> <option>-keep public class com.ethlo.time.TemporalHandler { *; }</option> <option>-keep public class com.ethlo.time.TimezoneOffset { *; }</option> <option>-keep public class com.ethlo.time.DateTimeParsers { *; }</option> <option>-keep public class com.ethlo.time.DateTimeParser { *; }</option> <option>-keep public class com.ethlo.time.DateTimeTokens { *; }</option> <option>-keep public class com.ethlo.time.token.DateTimeToken { *; }</option> </options> <libs> <lib>${java.home}/jmods/java.base.jmod</lib> </libs> </configuration> </plugin> <plugin> <groupId>com.ethlo.documentation</groupId> <artifactId>source-extractor-maven-plugin</artifactId> <version>0.3.0</version> <configuration> <template>src/site/sample-code.template.md</template> <sources> <source>src/test/java/samples/parsing</source> <source>src/test/java/samples/formatting</source> <source>src/test/java/samples/leapsecond</source> <source>src/test/java/samples/durationparsing</source> </sources> </configuration> <executions> <execution> <phase>initialize</phase> <goals> <goal>extract</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>java-module</id> <activation> <jdk>[9,)</jdk> </activation> <build> <plugins> <plugin> <groupId>org.moditect</groupId> <artifactId>moditect-maven-plugin</artifactId> <version>1.2.2.Final</version> <executions> <execution> <id>add-module-info</id> <phase>package</phase> <goals> <goal>add-module-info</goal> </goals> <configuration> <jvmVersion>9</jvmVersion> <module> <moduleInfo> <name>com.ethlo.time</name> <exports> !com.ethlo.time.internal*; *; </exports> </moduleInfo> </module> </configuration> </execution> </executions> </plugin> </plugins> </build> </profile> <profile> <id>coverage</id> <build> <plugins> <plugin> <groupId>org.jacoco</groupId> <artifactId>jacoco-maven-plugin</artifactId> <version>0.8.12</version> <executions> <execution> <goals> <goal>prepare-agent</goal> </goals> </execution> <execution> <id>generate-code-coverage-report</id> <phase>test</phase> <goals> <goal>report</goal> </goals> </execution> </executions> </plugin> </plugins> </build> </profile> </profiles> <repositories> <repository> <snapshots> <enabled>true</enabled> </snapshots> <id>sonatype-nexus-snapshots</id> <name>Nexus Snapshot repository</name> <url>https://oss.sonatype.org/content/repositories/snapshots/</url> </repository> </repositories> </project>