I want to create a project that's based on apache 2.0 open source code.
I know that I should include a NOTICE file and the license, but my question is where should I place them? in the code or inside the built application?

1 Answer 1


Place it in the root directory of your project.

  • is it fine to place it in the code itself? in a comment (both license and notice)?
    – ATP
    Dec 23, 2020 at 16:05
  • 1
    If your project is a single file, put everything in that file. If your project is multiple files, don't put any comment at the top of the files. Just use the LICENSE and NOTICE files.
    – techboyg5
    Dec 23, 2020 at 17:57
  • thanks I got it. but I still don't understand why its necessary nobody is going to see it
    – ATP
    Dec 23, 2020 at 18:00

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service and acknowledge you have read our privacy policy.

Not the answer you're looking for? Browse other questions tagged or ask your own question.