Some good ideas from @valencik in https://github.com/typelevel/typelevel.github.com/pull/628#discussion_r3057951796: > @armanbilge how bad would it be to read the pom.properties at build time? Something like this: > > ```scala > def webjarVersion(artifactId: String): String = { > val propsPath = s"/META-INF/maven/org.webjars.npm/$artifactId/pom.properties" > val props = java.util.Properties() > props.load(classOf[Main.type].getResourceAsStream(propsPath)) > props.getProperty("version") > } > ``` > > I get that Scala Steward is smart enough to bump both versions, but I never am when manually doing/testing things. > > Actually, more so than just versioning, we could have a little helper class for loading resources from webjars >
Activity