Skip to content

Commit 0f9a0bd

Browse files
committed
Move version.properties to api package to make it accessible from built jar
1 parent 3523ba4 commit 0f9a0bd

File tree

3 files changed

+3
-3
lines changed

3 files changed

+3
-3
lines changed

buildSrc/src/main/kotlin/net/kautler/versions.gradle.kts

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -81,7 +81,7 @@ dependencies {
8181

8282
normalization {
8383
runtimeClasspath {
84-
ignore("net/kautler/command/version.properties")
84+
ignore("net/kautler/command/api/version.properties")
8585
}
8686
}
8787

@@ -111,7 +111,7 @@ tasks.processResources {
111111
inputs.property("commitId", commitId)
112112
inputs.property("buildTimestamp", now)
113113
filteringCharset = "ISO-8859-1"
114-
filesMatching("net/kautler/command/version.properties") {
114+
filesMatching("net/kautler/command/api/version.properties") {
115115
expand(
116116
"version" to version,
117117
"commitId" to commitId,

src/main/java/net/kautler/command/api/Version.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ public class Version {
3535
* The resource from which the version properties are read.
3636
*/
3737
private static final URL versionPropertiesResource =
38-
Version.class.getResource("../version.properties");
38+
Version.class.getResource("version.properties");
3939

4040
/**
4141
* The version of this library.

src/main/resources/net/kautler/command/version.properties renamed to src/main/resources/net/kautler/command/api/version.properties

File renamed without changes.

0 commit comments

Comments
 (0)