Talmud for Eruvin 6:5
בַּעַל הַבַּיִת שֶׁהָיָה שֻׁתָּף לִשְׁכֵנִים, לָזֶה בְיַיִן וְלָזֶה בְיַיִן, אֵינָם צְרִיכִים לְעָרֵב. לָזֶה בְיַיִן וְלָזֶה בְשֶׁמֶן, צְרִיכִים לְעָרֵב. רַבִּי שִׁמְעוֹן אוֹמֵר, אֶחָד זֶה וְאֶחָד זֶה, אֵינָם צְרִיכִים לְעָרֵב:
If a house-owner were a partner with his neighbors [in a mavui]; with one, in wine and with another, in wine [(partnership in general, not for the sake of an eruv)], they do not need to make an eruv. [This, if they are all partners in one vessel. And it is only a partnership in a mavui which is valid with wine, viz. (3:1): "An eruv and a partnership (in a mavui) is made with all (foods)"; but a courtyard eruv is made only with a loaf, eruv obtaining by reason of "dwelling," and one associating dwelling only with a loaf. And if he made a mavui partnership with a loaf, it avails all the more, and that loaf partnership may be relied upon also for an eruv, so that a courtyard eruv is not required. But if they made a partnership with wine or with other things, they must make a courtyard eruv and not rely on the partnership (alone) so that the institution of eruv not depart form the (minds of the) children.] (If he were a partner) with one in wine and with another in oil, they must make an eruv. R. Shimon says: In either case they need not make an eruv. The halachah is not in accordance with R. Shimon.]