How do you know for sure that only your team is using the code? Are you ok with "the enemy" using your code to kill your soldiers, or you?
I realize I don’t have any code that would be of any use to any military. If I did, I don’t see how I could write a license to allow the use of my code by only people I agree with.
The OSI might disapprove, but you don’t have to listen to them.