repo-license.md 3.84 KB
Newer Older
Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
1
2
3
---
layout: default
title: How to license your code
4
parent: Git and GitLab
Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
5
has_children: false
6
nav_order: 3
Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
7
8
9
10
11
12
13
14
15
16
---


# How to license your code
{: .fs-9 }

A guide to how to license your code and things you should consider
{: .fs-6 .fw-300 }

---
Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
17

Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
18
19
20
21
**Contents**
- [Why license your material](#why-license-your-material)
- [What license to choose](#what-license-to-choose)
- [How to apply the license and copyright notice](#how-to-apply-the-license-and-copyright-notice)
Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
22

Cassandra Gould van Praag's avatar
Cassandra Gould van Praag committed
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58

## Why license your material

It is essential to license your research outputs so other users understand how you would like them to be re-used, and under what terms.

Important considerations around licensing include the potential for commercial use of your materials, attribution, and integration with any existing licenses if you are releasing material which builds on an existing source (for example, a plug in to FSL).

### Intellectual properties and commercial reuse

Material which  you create while a student or staff at the University are the [Intellectual Property of the University of Oxford](https://governance.admin.ox.ac.uk/legislation/statute-xvi-property-contracts-and-trusts#collapse1383596).

If your work has commercial potential, you should explore opportunities for issuing an academic only license and creating a system for commercial entities to pay for the use of your work. This is in line with [Oxford University Innovation (OUI) recommendations](https://innovation.ox.ac.uk/university-members/commercialising-technology/). OUI are pleased to explore the commercial potential of your work with you and will set up services for commercial licensing.

### Attribution

You deserve to be credited for your work. Although there is an established norm to cite academic papers for the avoidance of plagiarism, this norm is not well established for academic code. Any license which you issue is a legally binding agreement; adding an attribution clause will go a long way to normalising the expectation that you should receive credit for the work you do.


### Existing licenses

If your code builds on existing material, the originators of that material may have issued it with a licence which requires you to share new material with the same level of freedom. This is know as a "share alike" licence. Please carefully check your source material for existing license and ensure you comply with any terms for re-use or distribution.

## What license to choose

In general, we recommend a [CC-BY-4.0 license](https://creativecommons.org/licenses/by/4.0/). This enables others to reuse your work as long as they attribute you as the originator. This license also allows the University to retain copyright.

The University also has detailed [recommendations on open source licensing](https://researchsupport.admin.ox.ac.uk/reporting/openaccess#collapse393821). Please review these recommendations if you are unsure whether a CC-BY-4.0 license is appropriate.  

For a more complete exploration of software licensing, we recommend you visit the [The Turing Way handbook to reproducible, ethical and collaborative data science](https://the-turing-way.netlify.app/reproducible-research/licensing/licensing-software.html)

## How to apply the license and copyright notice

To apply a licence, you simply have to state the name of the licence somewhere in your material. This could be in the `README` file, or in a separate `LICENSE` file. You may wish to copy the full terms of the license text into the file, but this is not necessary. If you include a license file, it is good practice to include it in the [root directory](https://en.wikipedia.org/wiki/Root_directory) of your project, to ensure it is easily found.

For the Copyright notice, you should include the below in our `README` and as a footnote on any published pages (replace `YYYY` with the year the material was created):
> Copyright, YYYY, University of Oxford. All rights reserved