Plugin messes up repository URLs

XMLWordPrintable

    • Type: Bug
    • Resolution: Fixed
    • Priority: Critical
    • Component/s: gradle-jpi-plugin
    • None

      The plugin injects the public Maven repositories. When running a build behind a firewall with local Maven repository this will cause the build to take a very long time (30-60min).
      I had to remove the repository URLs after the plugin was loaded.

      It would be better if the repository URLs are documented in the Wiki but not injected by default.

      Workaround:

      // remove external repositories that were injected by JPI plugin - we only use our local Nexus
      repositories {
      all { repo ->
      if (repo.url.toString().contains("http://repo1.maven.org/") || repo.url.toString().contains("http://maven.jenkins-ci.org/")) {
      logger.warn "Repository ${repo.url} REMOVED"
      remove repo
      }

      }
      }

            Assignee:
            Daniel Spilker
            Reporter:
            Roland Gruber
            Votes:
            0 Vote for this issue
            Watchers:
            3 Start watching this issue

              Created:
              Updated:
              Resolved: