fix: deprecation warning from implicit convention reference

This commit is contained in:
Jason Penilla 2023-10-05 11:07:46 -07:00
parent 340ee3582f
commit b1011c70fa
No known key found for this signature in database
GPG key ID: 0E75A301420E48F8

View file

@ -179,7 +179,7 @@ private fun Project.addMcDevSourcesRoot(mcDevSourceDir: Path) {
val dir = mcDevSourceDir.toFile()
the<JavaPluginExtension>().sourceSets.named(SourceSet.MAIN_SOURCE_SET_NAME) {
extensions.getByType<JavaPluginExtension>().sourceSets.named(SourceSet.MAIN_SOURCE_SET_NAME) {
java {
srcDirs(dir)
val pathString = dir.invariantSeparatorsPath