Incompatibility of idea plugin and scala plugin in Gradle

The company considers starting to work in Scala.  However, we could not include both plugins - scala and idea in same Gradle project.  For example, starting a fresh & empty project we call 'sc' with this build.gradle:

plugins {
id 'idea'
id 'scala'
}

version '1.0-SNAPSHOT'

sourceCompatibility = 1.8

repositories {
mavenCentral()
}

dependencies {
testCompile group: 'junit', name: 'junit', version: '4.12'
}

we get: Task with name 'ideaProject' not found in root project 'sc'.

Does anyone know how to resolve this show stopper issue?

Versions:

Intellij: 2019.1, Gradle: 4.10.2

Thanks!

3

I'm having the same problem using the idea ext plugin together the scala plugin:

An exception occurred applying plugin request [id: 'org.jetbrains.gradle.plugin.idea-ext', version: '1.0.1']
> Failed to apply plugin [id 'org.gradle.idea']
> Task with name 'ideaProject' not found in project ':foo'.

Idea 2021.2 Gradle 5.6

0

Still the same problem in IDEA 2021.2.4 UE, gradle 7.4.2

0

Still present in IDEA Ultimate 2024.2.3, gradle 8.7

0

请先登录再写评论。