JetBrains / kotlin-netbeans

Kotlin Plugin for NetBeans https://kotlinlang.org
Other
95 stars 26 forks source link

How to stop it from adding Kotlin support to Maven, Ant, or Gradle projects? #112

Open gbutler69 opened 7 years ago

gbutler69 commented 7 years ago

The Netbeans 8.2 plug-in appears to automagically add Kotlin support to every Maven, Ant, or Gradle project that is created in Nebeans. If I manually remove the Kotlin maven plug-in and depencencies from the pom.xml and then save and reload the project in Netbeans, the plug-in automatically adds back the Kotlin support to the pom.xml (in the case of a maven project - same for ant or gradle as well). How can this be stopped? I can't see anything under settings for it.

baratynskiy commented 7 years ago

What version of Kotlin plugin do you use? The latest plugin version shouldn't add any dependencies automatically until some Kotlin code is added. Moreover, the plugin doesn't add any dependencies to Gradle-based projects at all (even if there is a Kotlin code).

gbutler69 commented 7 years ago

EDIT: I found that I can install the 0.2.0 version of the plug-in and uninstall the 0.1.0 version. It appears that it isn't automatically detected as an update to the plug-in though. Is it supposed to work like that?

EDIT 2: It appears that the 0.2.0 version solves the problem. It's odd/confusing that it didn't just show up as an available update to the plug-in though. Is that something to do with how the plug-in was published to Netbeans? BTW, I misspoke regarding Gradle. It was only automatically adding the dependencies to a Maven project (and re-adding them if they were manually removed). Thanks for the help.

Version 0.1.0 of the Kotlin plug-in (which is the version that is installable from the plug-ins in Netbeans 8.2). Is there a newer version? Is it going to be published to the Netbeans marketplace/plug-in downloader?

joebowbeer commented 7 years ago

I see this in 0.2.0.

Simply installing the Kotlin plugin modified two files in a Netbeans native (standard) Java project as a side-effect:

tlf30 commented 7 years ago

Has this been fixed in the latest update?