title: Migrating from build.gradle to build.gradle.kts having issue with some code snippets
body: <pre><code>Kotlin 1.4.10
  AS 4.1
  </code></pre>
  <p>I have a <code>build.gradle (app)</code> that I am migrating to <code>build.gradle.kts</code>. The only 2 code snippets I haven't been able to change is the following.</p>
  <p>Just wondering what the following should be in <code>build.gradle.kts</code></p>
  <pre><code>productFlavors {
      project.android.buildTypes.all { buildType -&gt;
          buildType.javaCompileOptions.annotationProcessorOptions.arguments =
              [
                      enableParallelEpoxyProcessing: &quot;true&quot;
              ]
      }
  
      variantFilter { variant -&gt;
          def names = variant.flavors*.name
  
          if ((names.contains(&quot;sit&quot;) &amp;&amp; variant.buildType.name == &quot;release&quot;)
                  || (names.contains(&quot;staging&quot;) &amp;&amp; variant.buildType.name == &quot;release&quot;)) {
              variant.ignore = true
          }
      }
  }
  </code></pre>
  <p>Many thanks for any suggestions,</p>