| | \- androidx.annotation:annotation:1.0.0-alpha1 | +- androidx.lifecycle:lifecycle-common:2.0.0-alpha1 +- androidx.lifecycle:lifecycle-compiler:2.0.0-alpha1 | \- androidx.databinding:databinding-runtime:3.3.0-alpha07 (*) | +- androidx.databinding:databinding-common:3.3.0-alpha07 +- androidx.databinding:databinding-adapters:3.3.0-alpha07 | \- androidx.databinding:databinding-common:3.3.0-alpha07 | | \- androidx.annotation:annotation:1.0.0-rc02 | | +- androidx.lifecycle:lifecycle-common:2.0.0-rc01 +- androidx.databinding:databinding-runtime:3.3.0-alpha07
+- androidx.databinding:databinding-common:3.3.0-alpha07 If you have the plugin vscode-icons installed ( as explained), you will see a nice pictogram in front of the filename.DebugCompileClasspath - Resolved configuration for compilation for variant: debug
If not, you will have to do some advanced Gradle configuration, which is not the focus of this tutorial. Gradle takes care of the file discovery and compilation out of the box as long as you follow some file and folder structuring rules. Setting up a new minimal Kotlin/Native project in VSCīecause we are using Gradle now, it is not necessary anymore to change the executor file extension mapping settings as I showed you in my previous How-To. To get the most out of Gradle inside VSC make sure you have the Gradle Language Support plugin installed: Īt least for the Gradle installation, now let’s move on to VSC and the first Gradle based Kotlin/Native project. The second command installs and registers Gradle.Ĭheck if Gradle is working correctly by executing the following command: gradle -version This way you will have all the up-to-date tools available.
The first command will update all the package definitions of the Homebrew repositories. If you choose to use Homebrew (and I sincerely encourage you to do so), just fire up a terminal window (or use the one that you have opened for installing Homebrew) and run the two commands: brew update brew install gradle
Code is available over at githubīecause you are reading this How-To, I assume you know what Gradle is? In case you don’t, let’s stay very brief about it: Gradle is a tool that manages all the dependencies your project relies on, it configures all tools for the build process, it builds your project and: it has to be installed! Moreover, with Gradle, it becomes also feasible to handle the development of even large applications. With Gradle, all the previous steps can be automated in just a couple of easy steps.
In my last How-To – Build and run a Kotlin/Native application with Visual Studio Code on macOS I showed you how to setup, build, and run your first Kotlin/Native application using the barebone Kotlin/Native compiler inside Visual Studio Code (VSC).