Skip to content

Commit b1017b7

Browse files
committed
defer scala plugin application
1 parent e249433 commit b1017b7

File tree

1 file changed

+6
-1
lines changed

1 file changed

+6
-1
lines changed

build.gradle

Lines changed: 6 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -18,9 +18,9 @@ plugins {
1818
id 'java'
1919
id 'java-library'
2020
id 'eclipse'
21-
id 'scala'
2221
id 'org.jetbrains.gradle.plugin.idea-ext' version '1.1.7'
2322
id 'com.gtnewhorizons.retrofuturagradle' version '1.3.+'
23+
id 'scala' apply false
2424
id 'net.darkhax.curseforgegradle' version '1.0.+' apply false
2525
id 'com.modrinth.minotaur' version '2.7.+' apply false
2626
id 'com.diffplug.spotless' version '6.13.0' apply false
@@ -133,6 +133,11 @@ if (coreModClass) {
133133

134134
// Plugin application
135135

136+
// Scala
137+
if (getFile(targetPackageScala).exists()) {
138+
apply plugin: 'scala'
139+
}
140+
136141
// Spotless
137142
//noinspection GroovyAssignabilityCheck
138143
project.extensions.add(com.diffplug.blowdryer.Blowdryer, 'Blowdryer', com.diffplug.blowdryer.Blowdryer) // make Blowdryer available in plugin application

0 commit comments

Comments
 (0)