* adding code for calculating time ago in Java for both version 7 and version 8. The code contains pure java and third-party solutions. * changing name of test classes to contain UnitTest in order to comply with the rules * changing TimeGranularity.toMillis to abstract method
		
			
				
	
	
		
			58 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
			
		
		
	
	
			58 lines
		
	
	
		
			2.1 KiB
		
	
	
	
		
			XML
		
	
	
	
	
	
| <?xml version="1.0" encoding="UTF-8"?>
 | |
| <project xmlns="http://maven.apache.org/POM/4.0.0"
 | |
|     xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
 | |
|     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>
 | |
|     <artifactId>core-java-date-operations-2</artifactId>
 | |
|     <version>${project.parent.version}</version>
 | |
|     <name>core-java-date-operations-2</name>
 | |
|     <packaging>jar</packaging>
 | |
| 
 | |
|     <parent>
 | |
|         <groupId>com.baeldung.core-java-modules</groupId>
 | |
|         <artifactId>core-java-modules</artifactId>
 | |
|         <version>0.0.1-SNAPSHOT</version>
 | |
|     </parent>
 | |
| 
 | |
|     <dependencies>
 | |
|         <dependency>
 | |
|             <groupId>org.apache.commons</groupId>
 | |
|             <artifactId>commons-lang3</artifactId>
 | |
|             <version>${commons-lang3.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>joda-time</groupId>
 | |
|             <artifactId>joda-time</artifactId>
 | |
|             <version>${joda-time.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>com.darwinsys</groupId>
 | |
|             <artifactId>hirondelle-date4j</artifactId>
 | |
|             <version>${hirondelle-date4j.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>net.time4j</groupId>
 | |
|             <artifactId>time4j-base</artifactId>
 | |
|             <version>${time4j-base.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>net.time4j</groupId>
 | |
|             <artifactId>time4j-sqlxml</artifactId>
 | |
|             <version>${time4j-sqlxml.version}</version>
 | |
|         </dependency>
 | |
|         <dependency>
 | |
|             <groupId>org.ocpsoft.prettytime</groupId>
 | |
|             <artifactId>prettytime</artifactId>
 | |
|             <version>${prettytime.version}</version>
 | |
|         </dependency>
 | |
|     </dependencies>
 | |
| 
 | |
|     <properties>
 | |
|         <joda-time.version>2.10</joda-time.version>
 | |
|         <hirondelle-date4j.version>1.5.1</hirondelle-date4j.version>
 | |
|         <prettytime.version>3.2.7.Final</prettytime.version>
 | |
|         <time4j-base.version>5.9</time4j-base.version>
 | |
|         <time4j-sqlxml.version>5.8</time4j-sqlxml.version>
 | |
|     </properties>
 | |
| 
 | |
| </project> |