I have a Gradle task which invokes a shell script which sets some environment variables. These variables are used by another shell script which is also invoked by Gradle as another task. However, the second task cannot view these variables. What is wrong and how do I actually achieve my required behavior?
I am working in Unix/Linux. Both the Gradle tasks are basically Exec type of tasks.