Multiple Build configurations
Answered
I use ./gradlew clean build to build the binary of my intellij plugin. I want to pass some arguments in this command like ./gradlew clean build --prod or ./gradlew clean build --dev. Now, I want to access these arguments inside my plugin's codebase and have different functionality based on these arguments. For example in my code I want to have (if(args.isEquals("prod")) {} else {})
Post is closed for comments.
Hi,
What is the difference between this and the previously asked question?
https://intellij-support.jetbrains.com/hc/en-us/community/posts/14945131578898-how-to-add-multiple-build-configurations-for-my-plugin
I forgot about it and also I didn't understand the answer there.
I edited my last message in the old topic. If it is unclear, I suggest reading about resources filtering in Gradle.
Please continue in the old topic in case of additional questions. I'm closing this one.