Uploaded image for project: 'Couchbase Documentation'
  1. Couchbase Documentation
  2. DOC-6193

Versions used multiple times in build.gradle should be constants.

    XMLWordPrintable

Details

    • Improvement
    • Resolution: Fixed
    • Minor
    • Mobile 2.7
    • Mobile 2.7
    • couchbase-lite, Mobile
    • None

    Description

      When a version must be consistent across multiple uses, e.g.:

      tomcat "org.apache.tomcat.embed:tomcat-embed-core:9.0.24",
              "org.apache.tomcat.embed:tomcat-embed-logging-juli:9.0.0.M6",
              "org.apache.tomcat.embed:tomcat-embed-jasper:9.0.24"
      

      ... it is best practice to define a constant:

      ext {
         TOMCAT_VERSION="9.0.24"
      

      ... and then to use it every place that the version is needed:

      tomcat "org.apache.tomcat.embed:tomcat-embed-core:${TOMCAT_VERSION}",
              "org.apache.tomcat.embed:tomcat-embed-logging-juli:9.0.0.M6",
              "org.apache.tomcat.embed:tomcat-embed-jasper:${TOMCAT_VERSION}"


      IB Updates:

      PR for review: https://github.com/couchbase/docs-couchbase-lite/pull/177

       

      Attachments

        Activity

          People

            Ian.bridge Ian Bridge
            blake.meike Blake Meike
            Votes:
            0 Vote for this issue
            Watchers:
            1 Start watching this issue

            Dates

              Created:
              Updated:
              Resolved:

              PagerDuty