Fix templates indentation
This commit is contained in:
parent
4961829fcd
commit
3a767ddcb2
3 changed files with 81 additions and 81 deletions
|
@ -1,38 +1,38 @@
|
||||||
/*
|
/*
|
||||||
* This file is automatically generated.
|
* This file is automatically generated.
|
||||||
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package {{packageName}}
|
package {{packageName}}
|
||||||
|
|
||||||
import java.util.Date
|
import java.util.Date
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides semantic version information.
|
* Provides semantic version information.
|
||||||
*
|
*
|
||||||
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
||||||
*/
|
*/
|
||||||
object {{className}} {
|
object {{className}} {
|
||||||
@JvmField
|
@JvmField
|
||||||
val PROJECT = "{{project}}"
|
val PROJECT = "{{project}}"
|
||||||
@JvmField
|
@JvmField
|
||||||
val BUILDDATE = Date({{epoch}}L)
|
val BUILDDATE = Date({{epoch}}L)
|
||||||
@JvmField
|
@JvmField
|
||||||
val MAJOR = {{major}}
|
val MAJOR = {{major}}
|
||||||
@JvmField
|
@JvmField
|
||||||
val MINOR = {{minor}}
|
val MINOR = {{minor}}
|
||||||
@JvmField
|
@JvmField
|
||||||
val PATCH = {{patch}}
|
val PATCH = {{patch}}
|
||||||
@JvmField
|
@JvmField
|
||||||
val PRERELEASE = "{{preRelease}}"
|
val PRERELEASE = "{{preRelease}}"
|
||||||
@JvmField
|
@JvmField
|
||||||
val PRERELEASE_PREFIX = "{{preReleasePrefix}}"
|
val PRERELEASE_PREFIX = "{{preReleasePrefix}}"
|
||||||
@JvmField
|
@JvmField
|
||||||
val BUILDMETA = "{{buildMeta}}"
|
val BUILDMETA = "{{buildMeta}}"
|
||||||
@JvmField
|
@JvmField
|
||||||
val BUILDMEATA_PREFIX = "{{buildMetaPrefix}}"
|
val BUILDMEATA_PREFIX = "{{buildMetaPrefix}}"
|
||||||
@JvmField
|
@JvmField
|
||||||
val SEPARATOR = "{{separator}}"
|
val SEPARATOR = "{{separator}}"
|
||||||
@JvmField
|
@JvmField
|
||||||
val VERSION = "{{version}}"
|
val VERSION = "{{version}}"
|
||||||
}
|
}
|
||||||
|
|
|
@ -1,34 +1,34 @@
|
||||||
/*
|
/*
|
||||||
* This file is automatically generated.
|
* This file is automatically generated.
|
||||||
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
* Do not modify! -- ALL CHANGES WILL BE ERASED!
|
||||||
*/
|
*/
|
||||||
|
|
||||||
package {{packageName}};
|
package {{packageName}};
|
||||||
|
|
||||||
import java.util.Date;
|
import java.util.Date;
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Provides semantic version information.
|
* Provides semantic version information.
|
||||||
*
|
*
|
||||||
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
||||||
*/
|
*/
|
||||||
public final class {{className}} {
|
public final class {{className}} {
|
||||||
public static final String PROJECT = "{{project}}";
|
public static final String PROJECT = "{{project}}";
|
||||||
public static final Date BUILDDATE = new Date({{epoch}}L);
|
public static final Date BUILDDATE = new Date({{epoch}}L);
|
||||||
public static final int MAJOR = {{major}};
|
public static final int MAJOR = {{major}};
|
||||||
public static final int MINOR = {{minor}};
|
public static final int MINOR = {{minor}};
|
||||||
public static final int PATCH = {{patch}};
|
public static final int PATCH = {{patch}};
|
||||||
public static final String PRERELEASE = "{{preRelease}}";
|
public static final String PRERELEASE = "{{preRelease}}";
|
||||||
public static final String PRERELEASE_PREFIX = "{{preReleasePrefix}}";
|
public static final String PRERELEASE_PREFIX = "{{preReleasePrefix}}";
|
||||||
public static final String BUILDMETA = "{{buildMeta}}";
|
public static final String BUILDMETA = "{{buildMeta}}";
|
||||||
public static final String BUILDMETA_PREFIX = "{{buildMetaPrefix}}";
|
public static final String BUILDMETA_PREFIX = "{{buildMetaPrefix}}";
|
||||||
public static final String SEPARATOR = "{{separator}}";
|
public static final String SEPARATOR = "{{separator}}";
|
||||||
public static final String VERSION = "{{version}}";
|
public static final String VERSION = "{{version}}";
|
||||||
|
|
||||||
/**
|
/**
|
||||||
* Disables the default constructor.
|
* Disables the default constructor.
|
||||||
*/
|
*/
|
||||||
private {{className}}() {
|
private {{className}}() {
|
||||||
throw new UnsupportedOperationException("Illegal constructor call.");
|
throw new UnsupportedOperationException("Illegal constructor call.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
|
@ -84,7 +84,7 @@ class VersionProcessorTest {
|
||||||
*
|
*
|
||||||
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
* @author <a href="https://github.com/ethauvin/semver">Semantic Version Annotation Processor</a>
|
||||||
*/
|
*/
|
||||||
public final class MyTest {
|
public final class %s {
|
||||||
public static final String PROJECT = "%s";
|
public static final String PROJECT = "%s";
|
||||||
public static final Date BUILDDATE = new Date(L);
|
public static final Date BUILDDATE = new Date(L);
|
||||||
public static final int MAJOR = %d;
|
public static final int MAJOR = %d;
|
||||||
|
@ -100,13 +100,13 @@ class VersionProcessorTest {
|
||||||
/**
|
/**
|
||||||
* Disables the default constructor.
|
* Disables the default constructor.
|
||||||
*/
|
*/
|
||||||
private MyTest() {
|
private %s() {
|
||||||
throw new UnsupportedOperationException("Illegal constructor call.");
|
throw new UnsupportedOperationException("Illegal constructor call.");
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
""", version.packageName(), version.project(), version.major(), version.minor(), version.patch(),
|
""", version.packageName(), version.className(), version.project(), version.major(),
|
||||||
version.preRelease(), version.preReleasePrefix(), version.buildMeta(),
|
version.minor(), version.patch(), version.preRelease(), version.preReleasePrefix(),
|
||||||
version.buildMetaPrefix(), version.separator()),
|
version.buildMeta(), version.buildMetaPrefix(), version.separator(), version.className()),
|
||||||
writer.toString());
|
writer.toString());
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue