I have coded a project for private use. I currently have no intention for commercializing it but the plan might change in the future. A friend of mine now wants to use it for his project, and asks if he can incorporate my code into his work.
I have no idea whether he wants to commercialize his project and I do not care if he does. However, I do want to make sure that the copyright of my code still belongs to me regardless what he does with his.
What is the best way to ensure and enforce this? I would rather specify everything clear, sound and upfront than getting into arguments, or worse, legal stuff later.