Skip to content
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
4 changes: 3 additions & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,9 @@ artifacts {
shadowJar {
classifier = 'fat'
manifest {
attributes 'Main-Class': mainClassName
attributes 'Main-Class': mainClassName,
'Implementation-Title': archivesBaseName,
'Implementation-Version': version
}

dependsOn "test"
Expand Down
6 changes: 2 additions & 4 deletions src/main/java/com/cyngn/exovert/util/GeneratorHelper.java
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,6 @@
import org.slf4j.LoggerFactory;

import javax.lang.model.element.Modifier;
import java.util.Date;

/**
* @author truelove@cyngn.com (Jeremy Truelove) 9/1/15
Expand All @@ -20,11 +19,10 @@ public static FieldSpec getLogger(String nameSpace, String className) {

public static String getJavaDocHeader(String text, DateTime updatedTime) {
return "GENERATED CODE DO NOT MODIFY - last updated: " + updatedTime + "\n\n" +
"\tgenerated by exovert - https://github.com/cyngn/exovert\n\n" + text + "\n";
"\tgenerated by exovert ("+GeneratorHelper.class.getPackage().getImplementationVersion()+") - https://github.com/cyngn/exovert\n\n" + text + "\n";
}

public static String getJavaDocHeader(String text) {
return "GENERATED CODE DO NOT MODIFY - last updated: " + DateTime.now() + "\n\n" +
"\tgenerated by exovert - https://github.com/cyngn/exovert\n\n" + text + "\n";
return getJavaDocHeader(text, DateTime.now());
}
}