Skip to content

Commit

Permalink
fix: read quarkus-hilla version from commons artifact
Browse files Browse the repository at this point in the history
  • Loading branch information
mcollovati committed Nov 30, 2023
1 parent f85a884 commit 480c655
Showing 1 changed file with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -47,14 +47,14 @@ static Optional<String> getVersion() {
if (version == null) {
try (final InputStream vaadinPomProperties = Thread.currentThread()
.getContextClassLoader()
.getResourceAsStream("META-INF/maven/com.github.mcollovati/quarkus-hilla/pom.properties")) {
.getResourceAsStream("META-INF/maven/com.github.mcollovati/quarkus-hilla-commons/pom.properties")) {
if (vaadinPomProperties != null) {
final Properties properties = new Properties();
properties.load(vaadinPomProperties);
version = properties.getProperty("version", "");
} else {
LOGGER.info("Unable to determine Quarkus-Hilla version. "
+ "No META-INF/maven/com.github.mcollovati/quarkus-hilla/pom.properties found");
+ "No META-INF/maven/com.github.mcollovati/quarkus-hilla-commons/pom.properties found");
version = "";
}
} catch (Exception e) {
Expand Down

0 comments on commit 480c655

Please sign in to comment.