File tree Expand file tree Collapse file tree 1 file changed +2
-1
lines changed
src/main/groovy/com/google/protobuf/gradle Expand file tree Collapse file tree 1 file changed +2
-1
lines changed Original file line number Diff line number Diff line change @@ -192,7 +192,8 @@ class ProtobufPlugin implements Plugin<Project> {
192192 */
193193 private Configuration createCompileProtoPathConfiguration (ProtoSourceSet protoSourceSet ) {
194194 String compileProtoConfigName = Utils . getConfigName(protoSourceSet. name, ' compileProtoPath' )
195- SourceSet sourceSet = project. sourceSets. getByName(protoSourceSet. name)
195+ JavaPluginExtension javaExtension = project. getExtensions(). getByType(JavaPluginExtension . class);
196+ SourceSet sourceSet = javaExtension. getSourceSets(). getByName(protoSourceSet. name)
196197 Configuration compileConfig =
197198 project. configurations. getByName(sourceSet. getCompileOnlyConfigurationName())
198199 Configuration implementationConfig =
You can’t perform that action at this time.
0 commit comments