Skip to content

Commit

Permalink
Remove DefaultProtoSourceSet casting to ProtoSourceSet in domainObjec…
Browse files Browse the repository at this point in the history
…tContainer factory method (#640)
  • Loading branch information
rougsig authored Nov 18, 2022

Verified

This commit was created on GitHub.com and signed with GitHub’s verified signature. The key has expired.
1 parent 7b37f79 commit 0ba3ce0
Showing 2 changed files with 2 additions and 2 deletions.
Original file line number Diff line number Diff line change
@@ -65,7 +65,7 @@ abstract class ProtobufExtension {
this.taskConfigActions = []
this.generatedFilesBaseDir = "${project.buildDir}/generated/source/proto"
this.sourceSets = project.objects.domainObjectContainer(ProtoSourceSet) { String name ->
new DefaultProtoSourceSet(name, project.objects) as ProtoSourceSet
new DefaultProtoSourceSet(name, project.objects)
}
}

Original file line number Diff line number Diff line change
@@ -138,7 +138,7 @@ class ProtobufPlugin implements Plugin<Project> {

NamedDomainObjectContainer<ProtoSourceSet> variantSourceSets =
project.objects.domainObjectContainer(ProtoSourceSet) { String name ->
new DefaultProtoSourceSet(name, project.objects) as ProtoSourceSet
new DefaultProtoSourceSet(name, project.objects)
}
ProjectExt.forEachVariant(this.project) { BaseVariant variant ->
addTasksForVariant(variant, variantSourceSets, postConfigure)

0 comments on commit 0ba3ce0

Please sign in to comment.