Class IndeedOssUtil


  • public class IndeedOssUtil
    extends java.lang.Object
    • Constructor Summary

      Constructors 
      Constructor Description
      IndeedOssUtil()  
    • Method Summary

      All Methods Static Methods Concrete Methods 
      Modifier and Type Method Description
      static void afterEvaluate​(org.gradle.api.Project project, java.lang.Runnable fn)
      By default, project.afterEvaluate is executed even if there was an exception thrown during configuration.
      • Methods inherited from class java.lang.Object

        clone, equals, finalize, getClass, hashCode, notify, notifyAll, toString, wait, wait, wait
    • Constructor Detail

      • IndeedOssUtil

        public IndeedOssUtil()
    • Method Detail

      • afterEvaluate

        public static void afterEvaluate​(org.gradle.api.Project project,
                                         java.lang.Runnable fn)
        By default, project.afterEvaluate is executed even if there was an exception thrown during configuration. This causes all sorts of havok, primarily in com.indeed.publish projects where various plugins will attempt to read the library's name, and will throw a "java.lang.RuntimeException: indeedPublish.name must be set", because the build.gradle failed before the project was able to set the name. Pretty much everything should use this helper instead, which will skip running the callback if the project is failing out.