I just started a Plugin Project for Pycharm which I'm coding on Intellij Idea Ultimate. So before anything else I read the online tutorial on Jetbrains websiste. The first step is to modify the build.gradle.kts
file by adding some dependencies and plugins, etc... The problem is, as soon as I modify the build.gradle.kts
file in any way, it throws an unresolved reference error
on every line I added.
Here is the basic gradle build file from the blank project:
plugins {
kotlin("jvm") version "2.0.21"
}
group = ".example"
version = "1.0-SNAPSHOT"
repositories {
mavenCentral()
}
dependencies {
testImplementation(kotlin("test"))
}
tasks.test {
useJUnitPlatform()
}
kotlin {
jvmToolchain(16)
}
And here is the modifications I'm supposed to add:
repositories {
mavenCentral()
intellijPlatform {
defaultRepositories()
}
}
dependencies {
intellijPlatform {
pycharmCommunity("<versionNumber>")
bundledPlugin("PythonCore")
}
}
If anyone knows how I can fix that, or just a hint on the problem I'll gladly take any advice !