To prevent B from being obfuscated include something along the lines of:
-keep class com.projectB.package.** { *; }
for all the packages in project B. This goes in your proguard.cfg of any project that uses these files. When proguard runs, it will know to not obfuscate anything in B and project A will be obfuscated.