title: Switch Maven repository 'cache(http://cache)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols
body: <p>I'm using a <code>buildSrc</code> module in my Android library project, and a <code>jitpack</code> build at <code>jitci.com</code> fails with the error message shown below. However, locally, the project builds and runs on my phone fine, and a <code>jitpack</code> build of the latest project release at the <code>jitpack.io</code> website builds fine. I am also able to use that successful build in a separate Android project as a dependency. Why does the build fail at <code>jitci.com</code> only, with that error message? I'm not using the maven repository <code>cache(http://cache)</code> anywhere in my project, and I'm not using any insecure HTTP connections for repositories anywhere in my project.</p>
  <p><strong>settings.gradle file</strong></p>
  <pre><code>pluginManagement {
      repositories {
          gradlePluginPortal()
          google()
          mavenCentral()
      }
  }
  dependencyResolutionManagement {
      repositoriesMode.set(RepositoriesMode.FAIL_ON_PROJECT_REPOS)
      repositories {
          google()
          mavenCentral()
          maven { url 'https://jitpack.io' }
      }
  }
  
  rootProject.name = &quot;ComposeComponents&quot;
  include ':app'
  include ':compose-components'
  </code></pre>
  <p><strong>build.gradle file @ buildSrc module</strong></p>
  <pre><code>import org.gradle.kotlin.dsl.`kotlin-dsl`
  
  plugins {
      `kotlin-dsl`
  }
  
  repositories {
      mavenCentral()
  }
  </code></pre>
  <p><strong>jitpack build exception error message @ jitci.com</strong></p>
  <pre><code>A problem occurred configuring project ':buildSrc'.
  63. &gt; Could not resolve all dependencies for configuration ':buildSrc:classpath'.
  64. &gt; Using insecure protocols with repositories, without explicit opt-in, is unsupported. 
  Switch Maven repository 'cache(http://cache)' to redirect to a secure protocol (like HTTPS) or allow insecure protocols. See https://docs.gradle.org/7.3.3/dsl/org.gradle.api.artifacts.repositories.UrlArtifactRepository.html#org.gradle.api.artifacts.repositories.UrlArtifactRepository:allowInsecureProtocol for more details. 
  </code></pre>