title: In Gradle, how to print out a message in the console / Event Log?
body: <p>I'm trying to verify that my source and target paths are properly setup when I execute a deploy command.</p>
  <p>See the example below:<br/>
  (copied from: <a href="http://eppz.eu/blog/unity-android-plugin-tutorial-2/" rel="noreferrer">http://eppz.eu/blog/unity-android-plugin-tutorial-2/</a>)</p>
  <pre><code>android.libraryVariants.all { variant -&gt;
      // Task names.
      String variantName = &quot;${variant.name.capitalize()}&quot;; // Like 'Debug'
      String deployTaskGroup = &quot;plugin&quot;;
      String deployTaskName = &quot;deploy${variantName}PluginArchive&quot;; // Like 'deployDebugPluginArchive'
      String dependencyTaskName = &quot;assemble${variantName}&quot;; // Like 'assembleDebug'
      // Source.
      String sourceAARFolder = &quot;${buildDir.getPath()}/outputs/aar/&quot;;
      String sourceAARName = &quot;${project.name}-${variant.name}.aar&quot;;
      // Target.
      String targetAssetFolder = &quot;Assets/Plugins/My Plugin&quot;;
      String targetAARFolder = &quot;${rootDir.getPath()}/../../${targetAssetFolder}&quot;; // Navigate into 'Assets'
      String targetAARName = &quot;My Plugin Android.aar&quot;; // The form you ship your plugin
  
      String targetProjDir = System.env.UNITY_PROJECT; // &lt;-- Need to confirm this line!
      //Log.i(targetProjDir); //??????????? something like this?
  
      // Create task.
      task(deployTaskName, dependsOn: dependencyTaskName, type: Copy) {
          from(sourceAARFolder)
          into(targetAARFolder)
          include(sourceAARName)
          rename(sourceAARName, targetAARName)
      }.group = deployTaskGroup;
  }
  </code></pre>
  <p>Is there any way to display the above <code>targetProjDir</code> string variable to some sort of console, or the Event Log in Android Studio (assuming that is it's console's name)?</p>