Gradle can't build Kotlin


When I try to build my kotlin project with Gradle it shows NO-SOURCE both for compileKotlin and compileJava
gradlew build output:

:compileKotlin NO-SOURCE
:compileJava NO-SOURCE
:processResources NO-SOURCE
:classes UP-TO-DATE
:compileTestKotlin NO-SOURCE
:compileTestJava NO-SOURCE
:processTestResources NO-SOURCE
:testClasses UP-TO-DATE
:check UP-TO-DATE


My build.gradle:
group ‘mysticlands’
version ‘1.0-SNAPSHOT’

buildscript {
    ext.kotlin_version = '1.1.3-2'

    ext.bungee_api_version = "1.12-SNAPSHOT"
    ext.kryonet_version = "2.21-2"

    repositories {
    dependencies {
        classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"

apply plugin: 'kotlin'

repositories {

    maven { url "" }
    maven { url "" }

dependencies {
    compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:$kotlin_version"

    compile "$bungee_api_version"
    compile "kryonet:kryonet:$kryonet_version"

compileKotlin {
    kotlinOptions.jvmTarget = "1.8"
compileTestKotlin {
    kotlinOptions.jvmTarget = "1.8"

Any my folder structure:

I started in the default project IDEA generates when I select Kotlin under the Gradle project type.


@glorantq Please make sure that the Gradle project directory is the one that contains src. You can do that by adding println projectDir to your build.gradle and running a Gradle build.

If you could share the project (even the basic structure, the build script and folders without all the actual source files), I would look at it more closely. Currently, I can’t figure out what else might be the cause.