Some good ideas from @valencik in #628 (comment):
@armanbilge how bad would it be to read the pom.properties at build time? Something like this:
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
Some good ideas from @valencik in #628 (comment):