File tree Expand file tree Collapse file tree 1 file changed +1
-1
lines changed
src/main/groovy/net/minecraftforge/gradleutils Expand file tree Collapse file tree 1 file changed +1
-1
lines changed Original file line number Diff line number Diff line change @@ -50,7 +50,7 @@ import java.nio.file.Path
50
50
this . projectName. convention(this . providers. provider { this . project. name })
51
51
this . branch. convention(DEFAULT_BRANCH )
52
52
this . localPath. convention(this . providers. provider { getRelativePath(rootDirectory, this . projectLayout. projectDirectory) })
53
- this . gradleJavaVersion. convention(this . project. extensions. getByType (JavaPluginExtension ). toolchain. languageVersion. map { it. canCompileOrRun(DEFAULT_GRADLE_JAVA ) ? it. asInt() : DEFAULT_GRADLE_JAVA })
53
+ this . gradleJavaVersion. convention(this . project. extensions. findByType (JavaPluginExtension )? . toolchain? . languageVersion? . map { it. canCompileOrRun(DEFAULT_GRADLE_JAVA ) ? it. asInt() : DEFAULT_GRADLE_JAVA } ?: providers . provider { DEFAULT_GRADLE_JAVA })
54
54
this . sharedActionsBranch. convention(DEFAULT_SHARED_ACTIONS_BRANCH )
55
55
56
56
this . outputFile. convention(rootDirectory. dir(' .github/workflows' ). file(this . projectName. map { " publish_${ it} .yaml" }))
You can’t perform that action at this time.
0 commit comments