最新消息:雨落星辰是一个专注网站SEO优化、网站SEO诊断、搜索引擎研究、网络营销推广、网站策划运营及站长类的自媒体原创博客

kotlin - Pycharm plugin projet, build.gradle.kts unresolved references - Stack Overflow

programmeradmin4浏览0评论

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 !

发布评论

评论列表(0)

  1. 暂无评论