I would like to read plugin version from external file and parse this value with kotlin-semver.
I tried:
pluginManagement {
plugins {
id("precompiled-script-plugin") // plugin with "io.github.z4kn4fein:semver:2.0.0" in dependencies block
}
buildscript {
dependencies {
classpath("io.github.z4kn4fein:semver:2.0.0")
}
repositories {
maven {
url = uri("***")
credentials {
username = ***
password = ***
}
}
}
}
repositories {
maven {
url = uri("***")
credentials {
username = ***
password = ***
}
}
io.github.z4kn4fein.semver.Version.parse("....") // compilation error
}
}
What do I need to do to make io.github.z4kn4fein.semver.Version
accessible in pluginManagement
block?