Uploaded image for project: 'Jenkins'
  1. Jenkins
  2. JENKINS-70153

Add support for gradle build-tools warnings (w:)

    XMLWordPrintable

Details

    Description

      Support gradle build-tools warnings form console log

      Example:

      25.11.2022 09:06:54  > Task :travel:compileDebugKotlin
      25.11.2022 09:06:54  w: '-Xjvm-default=compatibility' is deprecated, please use '-Xjvm-default=all|all-compatibility'
      25.11.2022 09:06:54  w: /var/lib/jenkins/workspace/.../CountryFavoriteRepositoryImpl.kt: (35, 35): Type mismatch: inferred type is CountryFavoriteDto? but CountryFavoriteDto was expected
      25.11.2022 09:06:54  w: /var/lib/jenkins/workspace/.../CountryFavoriteUseCase.kt: (86, 39): Name shadowed: favoriteCountry
      25.11.2022 09:06:54  w: /var/lib/jenkins/workspace/.../CountryDetailActivity.kt: (48, 30): 'getParcelableExtra(String!): T?' is deprecated. Deprecated in Java 

      And Gradle WARNINGS.

      Example:

      25.11.2022 09:07:34  > Configure project :app
      25.11.2022 09:07:34  WARNING:The option setting 'android.jetifier.ignorelist=io.cucumber.cucumber-java' is experimental.
      25.11.2022 09:07:34  WARNING:API 'android.registerTransform' is obsolete.
      25.11.2022 09:07:34  It will be removed in version 8.0 of the Android Gradle plugin.
      25.11.2022 09:07:34  The Transform API is removed to improve build performance. Projects that use the
      25.11.2022 09:07:34  Transform API force the Android Gradle plugin to use a less optimized flow for the
      25.11.2022 09:07:34  build that can result in large regressions in build times. It's also difficult to
      25.11.2022 09:07:34  use the Transform API and combine it with other Gradle features; the replacement
      25.11.2022 09:07:34  APIs aim to make it easier to extend the build without introducing performance or
      25.11.2022 09:07:34  correctness issues.
      25.11.2022 09:07:34  
      25.11.2022 09:07:34  There is no single replacement for the Transform API—there are new, targeted
      25.11.2022 09:07:34  APIs for each use case. All the replacement APIs are in the
      25.11.2022 09:07:34  `androidComponents {}` block.
      25.11.2022 09:07:34  
      25.11.2022 09:07:34  The Transform API uses incremental APIs deprecated since Gradle 7.5. Please add
      25.11.2022 09:07:34  `android.experimental.legacyTransform.forceNonIncremental=true` to
      25.11.2022 09:07:34  `gradle.properties` to fix this issue. Note that this will run transforms
      25.11.2022 09:07:34  non-incrementally and may have a build performance impact.
      25.11.2022 09:07:34  For more information, see https://developer.android.com/studio/releases/gradle-plugin-api-updates#transform-api.
      25.11.2022 09:07:34  To determine what is calling android.registerTransform, use -Pandroid.debug.obsoleteApi=true on the command line to display more information. 

      Attachments

        Activity

          People

            Unassigned Unassigned
            it12lsp Christian Häussler
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated: