You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
@@ -266,10 +273,12 @@ class WirePlugin : Plugin<Project> {
266
273
if (extension.protoLibrary) {
267
274
val sourceSets = project.extensions.getByType(SourceSetContainer::class.java)
268
275
// Note that there are no source sets for some platforms such as native.
269
-
if (sourceSets.isNotEmpty()) {
276
+
if (sourceSets.isNotEmpty()&& sourceSets.findByName("main") !=null) {
270
277
sourceSets.getByName("main") { main:SourceSet->
271
278
main.resources.srcDir(protoOutputDirectory)
272
279
}
280
+
} else {
281
+
project.logger.warn("${project.displayName} doesn't have a 'main' source sets. The .proto files will not automatically be added to the artifact. You have to manually add them.")
0 commit comments