itu
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency>
<groupId>com.ethlo.time</groupId>
<artifactId>itu</artifactId>
<version>1.16.0</version>
</dependency><!--
#%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.16.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.27.7</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.22.1</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.code-intelligence</groupId>
<artifactId>jazzer-junit</artifactId>
<version>0.30.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>
<resources>
<resource>
<directory>src/main/resources</directory>
</resource>
<resource>
<!-- The BSL-1.0 notice for the Joffe date algorithms must travel with every source copy, the
sources jar included; the binary jar carries it too, as the ASF does with NOTICE -->
<directory>${project.basedir}</directory>
<includes>
<include>THIRD-PARTY-LICENSES.md</include>
</includes>
<targetPath>META-INF</targetPath>
</resource>
</resources>
<plugins>
<plugin>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.15.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.4.0</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.4.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.5.1</version>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>3.5.6</version>
</plugin>
<plugin>
<groupId>org.codehaus.mojo</groupId>
<artifactId>versions-maven-plugin</artifactId>
<version>2.21.0</version>
</plugin>
<plugin>
<groupId>org.sonatype.central</groupId>
<artifactId>central-publishing-maven-plugin</artifactId>
<version>0.10.0</version>
<extensions>true</extensions>
<configuration>
<publishingServerId>central</publishingServerId>
<autoPublish>true</autoPublish>
<waitUntil>validated</waitUntil>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-gpg-plugin</artifactId>
<version>3.2.3</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.5.3</version>
</extension>
</extensions>
</build>
<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>
<!-- Version advertised in the generated README. Kept separate from project.version, which stays
on -SNAPSHOT because the release version comes from the git tag. Bump on each release. -->
<itu.released.version>1.16.0</itu.released.version>
</properties>
<profiles>
<profile>
<id>readme</id>
<activation>
<activeByDefault>false</activeByDefault> <!-- This profile is not active by default -->
</activation>
<build>
<resources>
<!-- Appended to the main <resources>, not replacing them: src/main/resources and the
THIRD-PARTY-LICENSES.md copy still apply -->
<resource>
<filtering>true</filtering>
<directory>${project.basedir}/src/site</directory>
<includes>
<include>README.md</include>
</includes>
<targetPath>${project.basedir}</targetPath>
</resource>
</resources>
<plugins>
<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>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.MutableDateTimeBuffer { *; }</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>
</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>
</project>