title: Cannot build gradle project: invalid type code: B3 using Java 11
body: <p>I'm using Java 11 for the project. Gradle version is 5.5. IntelijIDEA 2019.1.3 </p>
  
  <p>So, when I'm building the project, I get the error:</p>
  
  <pre><code>Cause: invalid type code: B3
  </code></pre>
  
  <p>Stacktrace shows me:</p>
  
  <pre><code>org.gradle.internal.exceptions.LocationAwareException: Build file 'D:\project\scripts\build.gradle' line: 21
  A problem occurred evaluating project ':scripts'.
      at org.gradle.initialization.exception.DefaultExceptionAnalyser.transform(DefaultExceptionAnalyser.java:99)
      at org.gradle.initialization.exception.DefaultExceptionAnalyser.collectFailures(DefaultExceptionAnalyser.java:55)
      at org.gradle.initialization.exception.MultipleBuildFailuresExceptionAnalyser.transform(MultipleBuildFailuresExceptionAnalyser.java:47)
      at org.gradle.initialization.exception.StackTraceSanitizingExceptionAnalyser.transform(StackTraceSanitizingExceptionAnalyser.java:29)
  </code></pre>
  
  <p>And the command <code>gradle task dev update</code> tells me:</p>
  
  <pre><code>* What went wrong:
  A problem occurred evaluating project ':scripts'.
  &gt; Could not find method leftShift() for arguments [build_44ncodnspa3jbc57fnmmpuh13$_run_closure1@4c5511e6] on task ':scripts:dev' of type org.gradle.api.DefaultTask.
  
  * Try:
  Run with --stacktrace option to get the stack trace. Run with --info or --debug option to get more log output. Run with --scan to get full insights.
  
  * Get more help at https://help.gradle.org
  
  BUILD FAILED
  </code></pre>
  
  <p>In <code>build.gradle</code> file code that gives me the error is:</p>
  
  <pre><code>task("dev") &lt;&lt; {
      println "executing dev"
      liquibase {
          activities {
              main {
                  changeLogFile changeLog
                  classpath "$projectDir/src/main/resources/"
                  url 'jdbc:postgresql://localhost:5432/project'
                  username 'testName'
                  password 'testPassword'
                  liquibaseSchemaName 'liquibase'
              }
          }
      }
  }
  </code></pre>
  
  <p>I used solution with <a href="https://stackoverflow.com/a/54235107/8370915">unticking the flag</a> <code>Settings -&gt; Experimental -&gt; Only sync the active variant</code>.</p>
  
  <p>But can I solve the issue via code and without changing IntelijIDEA settings? 
  Because <a href="https://developer.android.com/studio/build/optimize-your-build#single_variant_sync" rel="nofollow noreferrer">syncing the project</a> is important thing as process of optimization. Especially, if it's large project.</p>