All Downloads are FREE. Search and download functionalities are using the official Maven repository.

org.febit.devkit.gradle.codegen.module.febit.tmpl Maven / Gradle / Ivy

The newest version!
package ${classPackage};

import java.time.Instant;

@SuppressWarnings({
        "squid:S3400" // Methods should not return constants
})
@org.febit.lang.annotation.Generated
public class ${classSimpleName} implements org.febit.lang.module.IModule {

    public static String groupId() {
        return "${groupId}";
    }

    public static String artifactId() {
        return "${artifactId}";
    }

    public static String version() {
        return "${version}";
    }

    public static String commitId() {
        return "${commitId}";
    }

    public static Instant buildTime() {
        // ${buildTime}
        return Instant.ofEpochSecond(${buildTime.epochSecond}L);
    }

    @Override
    public String getGroupId() {
        return groupId();
    }

    @Override
    public String getArtifactId() {
        return artifactId();
    }

    @Override
    public String getVersion() {
        return version();
    }

    @Override
    public String getCommitId() {
        return commitId();
    }

    @Override
    public Instant getBuildTime() {
        return buildTime();
    }
}




© 2015 - 2025 Weber Informatics LLC | Privacy Policy