cbeust / kobalt

A Kotlin-based build system for the JVM.
Apache License 2.0
432 stars 60 forks source link

apt() no longer working #433

Closed ethauvin closed 7 years ago

ethauvin commented 7 years ago

I get the following error:

 Java compiling 1 file
javac: directory not found: ./kobaltBuild/generated/source/apt/sources
Usage: javac <options> <source files>
use -help for a list of possible options
Compilation errors, command:
C:\Program Files\Java\jdk1.8.0_131\bin\javac.exe -d .\kobaltBuild\classes -classpath C:\Users\erik\.kobalt\cache\net\thauvin\erik\semver\0.9.7\semver-0.9.7.jar;C:\Users\erik\.kobalt\cache\org\jetbrains\annotations\13.0\annotations-13.0.jar;C:\Users\erik\.kobalt\cache\com\github\spullara\mustache\java\compiler\0.9.4\compiler-0.9.4.jar;C:\Users\erik\.kobalt\cache\org\jetbrains\kotlin\kotlin-stdlib\1.1.2\kotlin-stdlib-1.1.2.jar;C:\Users\erik\.kobalt\cache\org\jetbrains\kotlin\kotlin-stdlib-js\1.1.2\kotlin-stdlib-js-1.1.2.jar -s .\kobaltBuild\generated/source/apt\sources .\src\main\java\net\thauvin\erik\semver\example\Example.java .\src\main\java\net\thauvin\erik\semver\example\Example.java
Something went wrong running javac, need to switch to RunCommand
*****
***** ERROR Compilation errors, command:
C:\Program Files\Java\jdk1.8.0_131\bin\javac.exe -d .\kobaltBuild\classes -classpath C:\Users\erik\.kobalt\cache\net\thauvin\erik\semver\0.9.7\semver-0.9.7.jar;C:\Users\erik\.kobalt\cache\org\jetbrains\annotations\13.0\annotations-13.0.jar;C:\Users\erik\.kobalt\cache\com\github\spullara\mustache\java\compiler\0.9.4\compiler-0.9.4.jar;C:\Users\erik\.kobalt\cache\org\jetbrains\kotlin\kotlin-stdlib\1.1.2\kotlin-stdlib-1.1.2.jar;C:\Users\erik\.kobalt\cache\org\jetbrains\kotlin\kotlin-stdlib-js\1.1.2\kotlin-stdlib-js-1.1.2.jar -s .\kobaltBuild\generated/source/apt\sources .\src\main\java\net\thauvin\erik\semver\example\Example.java .\src\main\java\net\thauvin\erik\semver\example\Example.java
Something went wrong running javac, need to switch to RunCommand

Project: https://github.com/ethauvin/semver

./clean.sh 0.9.7
./kobaltw publishToMavenLocal
cd example
./kobaltw run

Clean will remove it from your kobalt cache, as I think you might already have it in there.