Gradle Publish Command, In your project directory, run … First, we need to initialize a new Kotlin project using Gradle.