No one has asserted that they have compromised the United States military, rather they have jeopardized our government's efforts at defending our security. The defense of the country isn't restricted exclusively to the military- diplomatic efforts exist for the sole purpose of keeping us from having to use our military at the cost of American lives. Publishing information that damages these efforts does nothing but take more diplomatic options off the table, eventually leaving military force as the only option.
No one is denying that there are many interesting facts and evidence of corruption brought to light by these documents, and this may raise them a rung in hell. If they had evidence of corruption though then the prudent and moral thing to do would be to release redacted documents relating to that corruption only. However the indiscriminate publishing of these documents and their recent threats of releasing unredacted versions make their intentions quite clear.