google / protobuf-gradle-plugin

Protobuf Plugin for Gradle
Other
1.73k stars 269 forks source link

Download protoc from custom repositories #712

Closed rafan closed 3 months ago

rafan commented 1 year ago

When configuring protoc using artifact like the following:

protobuf {
    protoc {
        artifact = 'com.google.protobuf:protoc:3.21.12'
    }
}

It always downloads from the Maven Central (i.e., repo.apache.maven.org). However, it fails in a restricted environment where egress connections are regulated.

Either the plugin honors the repositories setup in build.gradle or it allows customization on repositories.

ejona86 commented 3 months ago

I don't think this is the case. We don't configure any repositories within the plugin. We only create configurations and then resolve them.