2 ms·
It's really not that bad. I would start with downloading IDEA and then following the steps to select a Kotlin/Gradle project (make sure to select Kotlin Build S
by jpgvm 5y ago
It's really not that bad. I would start with downloading IDEA and then following the steps to select a Kotlin/Gradle project (make sure to select Kotlin Build Script) which will spit out a "Hello World" basic setup for you.
From there add a dependency by editing build.gradle.kts and you will be doing OK in no time.
- Aeolun 5y agoYeah, but I can not do that without a using the whole project template. Half of all the options in the build file mean nothing to me, much less why they’d need to be there in my starter project.
- jpgvm 5y agoI don't buy that. The minimal project Gradle build script does exactly 4 things. 1. Enable the Kotlin Plugin 2. Set the package metadata (group and version) 3. Add Maven Central as a repository (equivalent of say npmjs.com) 4. Add the Kotlin Stdlib as a dependency. You may have accidentally enabled extra stuff through the new project wizard which is admittedly more complex than it should be (especially if you are using IDEA Ultimate with many plugins enabled). I suggest the following flow: New Project -> Select Gradle on the side panel -> Check the Kotlin Build Script box -> Select only Kotlin/JVM. This should set you up with a very minimal project with exactly 3 files (build.gradle.kts, gradle.properties, settings.gradle.kts). From here you can either create a package i.e go for the src/main/kotlin/com/example/main.kt route or just create main.kt in the top level without a package.
- innocenat 5y agoIncidentally, that's how I feel about the JS ecosystem with webpack/etc.