diff --git a/groovy18-timestamp.patch b/groovy18-timestamp.patch index 716fcba..6725045 100644 --- a/groovy18-timestamp.patch +++ b/groovy18-timestamp.patch @@ -18,7 +18,7 @@ public class CompiledAtASTTransformation implements ASTTransformation { - private final static compileTime = new Date().toString() -+ private final static compileTime = System.getenv("SOURCE_DATE_EPOCH") != null ? new new Date(1000 * Long.parseLong(sourceDateEpoch)).toString() : new Date().toString() ++ private final static compileTime = System.getenv("SOURCE_DATE_EPOCH") != null ? new new Date(1000 * Long.parseLong(System.getenv("SOURCE_DATE_EPOCH"))).toString() : new Date().toString() public void visit(ASTNode[] astNodes, SourceUnit sourceUnit) { @@ -29,10 +29,10 @@ - -+ ++ ${title} - -+ ++ @@ -43,10 +43,10 @@ - -+ ++ ${title} - -+ ++ @@ -57,7 +57,7 @@ - -+ ++ ${title} @@ -68,10 +68,10 @@ - -+ ++ ${title} - -+ ++