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

Prepare Build Monitor View for core Guava upgrade

    • 1.13+build.202109302210

      See JENKINS-65988. Jenkins core is using Guava 11.0.1, which was released on January 9, 2012. Jenkins core would like to upgrade to Guava 30.1.1, which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.

      Stopwatch

      In particular, this plugin has been identified as using the com.google.common.base.Stopwatch API, which has changed between Guava 11.0.1 and latest. The following methods exist in Guava 11.0.1 but not latest:

      • Stopwatch#elapsedMillis()
      • Stopwatch#elapsedTime(TimeUnit desiredUnit)
      • Stopwatch#toString(int significantDigits)

      To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. Please consider migrating away from the Stopwatch API and using System#nanoTime directly.

      Objects#toStringHelper

      In particular, this plugin has been identified as using the com.google.common.base.Objects#toStringHelper method, which existed in Guava 11.0.1 but was removed in later versions.

      To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate away from Objects#toStringHelper and rewrite the code to use the native functionality provided by the Java Platform. Another option is to use Apache Commons Lang 2.4 (which is bundled in Jenkins core) and its org.apache.commons.lang.builder.ToStringBuilder API.

          [JENKINS-66299] Prepare Build Monitor View for core Guava upgrade

          Basil Crow created issue -
          Basil Crow made changes -
          Assignee New: Jan Molak [ janmolak ]
          Basil Crow made changes -
          Description Original: See JENKINS-65988. Jenkins core is using [Guava 11.0.1|https://github.com/google/guava/releases/tag/v11.0.1], which was released on January 9, 2012. Jenkins core would like to upgrade to [Guava 30.1.1|https://github.com/google/guava/releases/tag/v30.1.1], which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.

          In particular, this plugin has been identified as using the {{com.google.common.base.Stopwatch}} API, which has changed between Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Stopwatch.html] and [latest|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Stopwatch.html]. The following methods exist in Guava 11.0.1 but not latest:

          * {{Stopwatch#elapsedMillis()}}
          * {{Stopwatch#elapsedTime(TimeUnit desiredUnit)}}
          * {{Stopwatch#toString(int significantDigits)}}

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. Please consider migrating away from the {{Stopwatch}} API and using {{System#nanoTime}} directly.
          New: See JENKINS-65988. Jenkins core is using [Guava 11.0.1|https://github.com/google/guava/releases/tag/v11.0.1], which was released on January 9, 2012. Jenkins core would like to upgrade to [Guava 30.1.1|https://github.com/google/guava/releases/tag/v30.1.1], which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.

          h3. Stopwatch

          In particular, this plugin has been identified as using the {{com.google.common.base.Stopwatch}} API, which has changed between Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Stopwatch.html] and [latest|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Stopwatch.html]. The following methods exist in Guava 11.0.1 but not latest:

          * {{Stopwatch#elapsedMillis()}}
          * {{Stopwatch#elapsedTime(TimeUnit desiredUnit)}}
          * {{Stopwatch#toString(int significantDigits)}}

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. Please consider migrating away from the {{Stopwatch}} API and using {{System#nanoTime}} directly.

          h3. Objects#toStringHelper

          In particular, this plugin has been identified as using the {{com.google.common.base.Objects#toStringHelper}} method, which existed in Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Objects.html] but was [removed in later versions|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Objects.html].

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate away from {{Objects#toStringHelper}} and rewrite the code to use the native functionality provided by the Java Platform. Another option is to use Apache Commons Lang 2.4 (which is bundled in Jenkins core) and its [{{org.apache.commons.lang.builder.ToStringBuilder}}|https://www.oschina.net/uploads/doc/commons-lang-2.4/org/apache/commons/lang/builder/ToStringBuilder.html] API.
          Basil Crow made changes -
          Description Original: See JENKINS-65988. Jenkins core is using [Guava 11.0.1|https://github.com/google/guava/releases/tag/v11.0.1], which was released on January 9, 2012. Jenkins core would like to upgrade to [Guava 30.1.1|https://github.com/google/guava/releases/tag/v30.1.1], which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.

          h3. Stopwatch

          In particular, this plugin has been identified as using the {{com.google.common.base.Stopwatch}} API, which has changed between Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Stopwatch.html] and [latest|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Stopwatch.html]. The following methods exist in Guava 11.0.1 but not latest:

          * {{Stopwatch#elapsedMillis()}}
          * {{Stopwatch#elapsedTime(TimeUnit desiredUnit)}}
          * {{Stopwatch#toString(int significantDigits)}}

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. Please consider migrating away from the {{Stopwatch}} API and using {{System#nanoTime}} directly.

          h3. Objects#toStringHelper

          In particular, this plugin has been identified as using the {{com.google.common.base.Objects#toStringHelper}} method, which existed in Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Objects.html] but was [removed in later versions|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Objects.html].

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate away from {{Objects#toStringHelper}} and rewrite the code to use the native functionality provided by the Java Platform. Another option is to use Apache Commons Lang 2.4 (which is bundled in Jenkins core) and its [{{org.apache.commons.lang.builder.ToStringBuilder}}|https://www.oschina.net/uploads/doc/commons-lang-2.4/org/apache/commons/lang/builder/ToStringBuilder.html] API.
          New: See JENKINS-65988. Jenkins core is using [Guava 11.0.1|https://github.com/google/guava/releases/tag/v11.0.1], which was released on January 9, 2012. Jenkins core would like to upgrade to [Guava 30.1.1|https://github.com/google/guava/releases/tag/v30.1.1], which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.
          h3. {{Stopwatch}}

          In particular, this plugin has been identified as using the {{com.google.common.base.Stopwatch}} API, which has changed between Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Stopwatch.html] and [latest|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Stopwatch.html]. The following methods exist in Guava 11.0.1 but not latest:
           * {{Stopwatch#elapsedMillis()}}
           * {{Stopwatch#elapsedTime(TimeUnit desiredUnit)}}
           * {{Stopwatch#toString(int significantDigits)}}

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. Please consider migrating away from the {{Stopwatch}} API and using {{System#nanoTime}} directly.
          h3. {{Objects#toStringHelper}}

          In particular, this plugin has been identified as using the {{com.google.common.base.Objects#toStringHelper}} method, which existed in Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Objects.html] but was [removed in later versions|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Objects.html].

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate away from {{Objects#toStringHelper}} and rewrite the code to use the native functionality provided by the Java Platform. Another option is to use Apache Commons Lang 2.4 (which is bundled in Jenkins core) and its [{{org.apache.commons.lang.builder.ToStringBuilder}}|https://www.oschina.net/uploads/doc/commons-lang-2.4/org/apache/commons/lang/builder/ToStringBuilder.html] API.

          h3. {{HashFunction#hashString(CharSequence input)}}

          In particular, this plugin has been identified as using the {{com.google.common.hash.HashFunction#hashString(CharSequence input)}} method, which existed in Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/hash/HashFunction.html] but was [removed in later versions|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/hash/HashFunction.html].

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate to {{com.google.common.hash.HashFunction#hashString​(CharSequence input, Charset charset)}}, which exists in both Guava versions.
          Basil Crow made changes -
          Description Original: See JENKINS-65988. Jenkins core is using [Guava 11.0.1|https://github.com/google/guava/releases/tag/v11.0.1], which was released on January 9, 2012. Jenkins core would like to upgrade to [Guava 30.1.1|https://github.com/google/guava/releases/tag/v30.1.1], which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.
          h3. {{Stopwatch}}

          In particular, this plugin has been identified as using the {{com.google.common.base.Stopwatch}} API, which has changed between Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Stopwatch.html] and [latest|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Stopwatch.html]. The following methods exist in Guava 11.0.1 but not latest:
           * {{Stopwatch#elapsedMillis()}}
           * {{Stopwatch#elapsedTime(TimeUnit desiredUnit)}}
           * {{Stopwatch#toString(int significantDigits)}}

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. Please consider migrating away from the {{Stopwatch}} API and using {{System#nanoTime}} directly.
          h3. {{Objects#toStringHelper}}

          In particular, this plugin has been identified as using the {{com.google.common.base.Objects#toStringHelper}} method, which existed in Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Objects.html] but was [removed in later versions|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Objects.html].

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate away from {{Objects#toStringHelper}} and rewrite the code to use the native functionality provided by the Java Platform. Another option is to use Apache Commons Lang 2.4 (which is bundled in Jenkins core) and its [{{org.apache.commons.lang.builder.ToStringBuilder}}|https://www.oschina.net/uploads/doc/commons-lang-2.4/org/apache/commons/lang/builder/ToStringBuilder.html] API.

          h3. {{HashFunction#hashString(CharSequence input)}}

          In particular, this plugin has been identified as using the {{com.google.common.hash.HashFunction#hashString(CharSequence input)}} method, which existed in Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/hash/HashFunction.html] but was [removed in later versions|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/hash/HashFunction.html].

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate to {{com.google.common.hash.HashFunction#hashString​(CharSequence input, Charset charset)}}, which exists in both Guava versions.
          New: See JENKINS-65988. Jenkins core is using [Guava 11.0.1|https://github.com/google/guava/releases/tag/v11.0.1], which was released on January 9, 2012. Jenkins core would like to upgrade to [Guava 30.1.1|https://github.com/google/guava/releases/tag/v30.1.1], which was released on March 19, 2021. Plugins must be prepared to be compatible with both Guava 11.0.1 and Guava 30.1.1 in advance of this core transition.
          h3. {{Stopwatch}}

          In particular, this plugin has been identified as using the {{com.google.common.base.Stopwatch}} API, which has changed between Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Stopwatch.html] and [latest|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Stopwatch.html]. The following methods exist in Guava 11.0.1 but not latest:
           * {{Stopwatch#elapsedMillis()}}
           * {{Stopwatch#elapsedTime(TimeUnit desiredUnit)}}
           * {{Stopwatch#toString(int significantDigits)}}

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. Please consider migrating away from the {{Stopwatch}} API and using {{System#nanoTime}} directly.
          h3. {{Objects#toStringHelper}}

          In particular, this plugin has been identified as using the {{com.google.common.base.Objects#toStringHelper}} method, which existed in Guava [11.0.1|https://guava.dev/releases/11.0.1/api/docs/com/google/common/base/Objects.html] but was [removed in later versions|https://guava.dev/releases/snapshot-jre/api/docs/com/google/common/base/Objects.html].

          To facilitate the Jenkins core transition, this plugin must be prepared and released such that it works with both Guava 11.0.1 and latest. The general recommendation is to migrate away from {{Objects#toStringHelper}} and rewrite the code to use the native functionality provided by the Java Platform. Another option is to use Apache Commons Lang 2.4 (which is bundled in Jenkins core) and its [{{org.apache.commons.lang.builder.ToStringBuilder}}|https://www.oschina.net/uploads/doc/commons-lang-2.4/org/apache/commons/lang/builder/ToStringBuilder.html] API.
          Basil Crow made changes -
          Remote Link New: This issue links to "jan-molak/jenkins-build-monitor-plugin#479 (Web Link)" [ 26849 ]
          Basil Crow made changes -
          Status Original: Open [ 1 ] New: In Progress [ 3 ]
          Basil Crow made changes -
          Status Original: In Progress [ 3 ] New: In Review [ 10005 ]
          Basil Crow made changes -
          Resolution New: Fixed [ 1 ]
          Status Original: In Review [ 10005 ] New: Fixed but Unreleased [ 10203 ]

          Basil Crow added a comment -

          Released in 1.13+build.202109302210. Thank you janmolak!

          Basil Crow added a comment - Released in 1.13+build.202109302210. Thank you janmolak !
          Basil Crow made changes -
          Released As New: 1.13+build.202109302210
          Assignee Original: Jan Molak [ janmolak ] New: Basil Crow [ basil ]
          Status Original: Fixed but Unreleased [ 10203 ] New: Resolved [ 5 ]

            basil Basil Crow
            basil Basil Crow
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

              Created:
              Updated:
              Resolved: