e.g. if you have this in buildSrc: ```object libs...
# gradle
c
e.g. if you have this in buildSrc:
Copy code
object libs {
	const val kotlinVersion = "1.2.41"
}
then you can use it in plugins:
Copy code
import libs
import org.gradle.kotlin.dsl.*

plugins {
    kotlin("jvm") version libs.kotlinVersion
}
m
nice didn't know about that one
c
comes in handy sometimes 😉
you can also use these in settings.gradle.kts
j
Interesting. This works if the thing in my buildSrc is in the root package. If I have
buildSrc/src/main/kotlin/mypackage
it doesn’t..
j
You'd have to import it if it's not in the default package
j
Yeah, I tried that. IntelliJ knew about the reference, but when I built with gradle, I got symbols not found..