-
Notifications
You must be signed in to change notification settings - Fork 12
Problem guessing build folder when deploying to Heroku #9
Comments
Hi @rjaros , thank you for reporting this, but unfortunately i don't know if there is a way to always get the correct build folder from inside a compiler plugin. I think, the best way is it, to get it from an gradle plugin and then pass the path to the compiler plugin to a https://github.com/JetBrains/kotlin/blob/master/compiler/plugin-api/src/org/jetbrains/kotlin/compiler/plugin/CommandLineProcessor.kt |
In my plugin I've just replaced
Instead of searching for the module name it just takes everything before the "src" folder in the path. It works fine for me. You could consider this as a fallback in the |
This sounds great, i will use your code inside the method |
The code above turned out to be too simple. It fails when the project dir is located on path containing
Feel free to use it in your project. |
I've created the compiler plugin and it works fine when the build process is run locally. But when I try to deploy my application to Heroku the build process fails, because the
guessingBuildFolder()
function is not able to correctly identify build directory. It returns something like this:The text was updated successfully, but these errors were encountered: