Skip to content

Commit

Permalink
Put version.properties in package
Browse files Browse the repository at this point in the history
  • Loading branch information
Virtlink committed Jul 14, 2024
1 parent 7d69ec4 commit 948ceac
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion convention-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -59,7 +59,7 @@ gradlePlugin {

// Get the current version into the program
gitonium {
buildPropertiesFile.set(layout.buildDirectory.file("resources/main/version.properties"))
buildPropertiesFile.set(layout.buildDirectory.file("resources/main/org/metaborg/convention/version.properties"))
}

publishing {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@ object BuildInfo {
private val properties = Properties()

init {
val versionPropertiesResourcePath = "/version.properties"
val versionPropertiesResourcePath = "/org/metaborg/convention/version.properties"
BuildInfo::class.java.getResourceAsStream(versionPropertiesResourcePath).use { inputStream ->
properties.load(checkNotNull(inputStream))
}
Expand Down

0 comments on commit 948ceac

Please sign in to comment.