diff --git a/convention-plugin/build.gradle.kts b/convention-plugin/build.gradle.kts index 35ae119..8753ac0 100644 --- a/convention-plugin/build.gradle.kts +++ b/convention-plugin/build.gradle.kts @@ -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 { diff --git a/convention-plugin/src/main/kotlin/org/metaborg/convention/BuildInfo.kt b/convention-plugin/src/main/kotlin/org/metaborg/convention/BuildInfo.kt index c7b9d12..2b1b537 100644 --- a/convention-plugin/src/main/kotlin/org/metaborg/convention/BuildInfo.kt +++ b/convention-plugin/src/main/kotlin/org/metaborg/convention/BuildInfo.kt @@ -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)) }