Hello, trying to compile official example from github using gradle:
alexxxdev:~/kotlin $ git clone https://github.com/JetBrains/kotlin-examples.git
Cloning into 'kotlin-examples'...
remote: Reusing existing pack: 224, done.
remote: Total 224 (delta 0), reused 0 (delta 0)
Receiving objects: 100% (224/224), 520.63 KiB | 200.00 KiB/s, done.
Resolving deltas: 100% (42/42), done.
Checking connectivity... готово.
alexxxdev:~/kotlin $ cd kotlin-examples/gradle/mixed-java-kotlin-hello-world/
alexxxdev:~/kotlin/kotlin-examples/gradle/mixed-java-kotlin-hello-world [git:master] $ gradle build
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-gradle-plugin/0.1-SNAPSHOT/kotlin-gradle-plugin-0.1-20140523.171125-502.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-project/0.1-SNAPSHOT/kotlin-project-0.1-20140523.170417-515.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-stdlib/0.1-SNAPSHOT/kotlin-stdlib-0.1-20140523.170802-513.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-runtime/0.1-SNAPSHOT/kotlin-runtime-0.1-20140523.170712-514.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-gradle-plugin/0.1-SNAPSHOT/kotlin-gradle-plugin-0.1-20140523.171125-502.jar
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-stdlib/0.1-SNAPSHOT/kotlin-stdlib-0.1-20140523.170802-513.jar
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-runtime/0.1-SNAPSHOT/kotlin-runtime-0.1-20140523.170712-514.jar
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-gradle-plugin-core/0.1-SNAPSHOT/kotlin-gradle-plugin-core-0.1-20140523.171109-502.pom
Download http://repo1.maven.org/maven2/commons-lang/commons-lang/2.3/commons-lang-2.3.pom
Download http://repo1.maven.org/maven2/com/google/guava/guava/12.0/guava-12.0.pom
Download http://repo1.maven.org/maven2/com/google/guava/guava-parent/12.0/guava-parent-12.0.pom
Download http://repo1.maven.org/maven2/org/sonatype/oss/oss-parent/7/oss-parent-7.pom
Download http://repo1.maven.org/maven2/org/apache/directory/studio/org.apache.commons.io/2.4/org.apache.commons.io-2.4.pom
Download http://repo1.maven.org/maven2/org/apache/directory/studio/parent-libraries/2.0.0.v20130125/parent-libraries-2.0.0.v20130125.pom
Download http://repo1.maven.org/maven2/org/apache/directory/studio/parent/2.0.0.v20130125/parent-2.0.0.v20130125.pom
Download http://repo1.maven.org/maven2/org/apache/directory/project/project/27/project-27.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-compiler/0.1-SNAPSHOT/kotlin-compiler-0.1-20140523.170454-513.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-jdk-annotations/0.1-SNAPSHOT/kotlin-jdk-annotations-0.1-20140523.170511-513.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kdoc/0.1-SNAPSHOT/kdoc-0.1-20140523.170844-513.pom
Download http://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.pom
Download http://repo1.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.pom
Download http://repo1.maven.org/maven2/org/apache/commons/commons-parent/25/commons-parent-25.pom
Download http://repo1.maven.org/maven2/org/pegdown/pegdown/1.1.0/pegdown-1.1.0.pom
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.0.2/parboiled-core-1.0.2.pom
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-java/1.0.2/parboiled-java-1.0.2.pom
Download http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.pom
Download http://repo1.maven.org/maven2/asm/asm-parent/3.3.1/asm-parent-3.3.1.pom
Download http://repo1.maven.org/maven2/asm/asm-util/3.3.1/asm-util-3.3.1.pom
Download http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.pom
Download http://repo1.maven.org/maven2/asm/asm-analysis/3.3.1/asm-analysis-3.3.1.pom
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-gradle-plugin-core/0.1-SNAPSHOT/kotlin-gradle-plugin-core-0.1-20140523.171109-502.jar
Download http://repo1.maven.org/maven2/commons-lang/commons-lang/2.3/commons-lang-2.3.jar
Download http://repo1.maven.org/maven2/com/google/code/findbugs/jsr305/1.3.9/jsr305-1.3.9.jar
Download http://repo1.maven.org/maven2/com/google/guava/guava/12.0/guava-12.0.jar
Download http://repo1.maven.org/maven2/commons-io/commons-io/2.4/commons-io-2.4.jar
Download http://repo1.maven.org/maven2/org/apache/directory/studio/org.apache.commons.io/2.4/org.apache.commons.io-2.4.jar
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-compiler/0.1-SNAPSHOT/kotlin-compiler-0.1-20140523.170454-513.jar
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kotlin-jdk-annotations/0.1-SNAPSHOT/kotlin-jdk-annotations-0.1-20140523.170511-513.jar
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-core/1.0.2/parboiled-core-1.0.2.jar
Download http://repo1.maven.org/maven2/asm/asm/3.3.1/asm-3.3.1.jar
Download http://repo1.maven.org/maven2/asm/asm-tree/3.3.1/asm-tree-3.3.1.jar
Download http://repo1.maven.org/maven2/asm/asm-util/3.3.1/asm-util-3.3.1.jar
Download http://repo1.maven.org/maven2/asm/asm-analysis/3.3.1/asm-analysis-3.3.1.jar
Download http://repo1.maven.org/maven2/org/parboiled/parboiled-java/1.0.2/parboiled-java-1.0.2.jar
Download http://repo1.maven.org/maven2/org/pegdown/pegdown/1.1.0/pegdown-1.1.0.jar
Download http://oss.sonatype.org/content/repositories/snapshots/org/jetbrains/kotlin/kdoc/0.1-SNAPSHOT/kdoc-0.1-20140523.170844-513.jar
The TaskContainer.add() method has been deprecated and is scheduled to be removed in Gradle 2.0. Please use the create() method instead.
:compileKotlin
:compileJava
/home/alexxxdev/kotlin/kotlin-examples/gradle/mixed-java-kotlin-hello-world/src/main/java/demo/HelloWorld.java:5: error: cannot find symbol
final KotlinGreetingJoiner example = new KotlinGreetingJoiner(new Greeter("Hi"));
^
symbol: class KotlinGreetingJoiner
location: class HelloWorld
/home/alexxxdev/kotlin/kotlin-examples/gradle/mixed-java-kotlin-hello-world/src/main/java/demo/HelloWorld.java:5: error: cannot find symbol
final KotlinGreetingJoiner example = new KotlinGreetingJoiner(new Greeter("Hi"));
^
symbol: class KotlinGreetingJoiner
location: class HelloWorld
2 errors
:compileJava FAILED
FAILURE: Build failed with an exception.
-
What went wrong:
Execution failed for task ‘:compileJava’.
> Compilation failed; see the compiler error output for details.
-
Try:
Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output.
BUILD FAILED
Total time: 2 mins 48.953 secs
OS: Ubuntu 14.04 x64
java version:
Java™ SE Runtime Environment (build 1.7.0_55-b13)
Java HotSpot™ 64-Bit Server VM (build 24.55-b03, mixed mode)
Please help solve the problem