Skip to content

Commit 3d0b2cd

Browse files
authored
Switch Dgraph back to Apache 2.0 (#2652)
While the promise of Commons Clause is a great one, i.e. restricting resale while allowing proprietary usage, its subjective implementation generates a lot of friction and confusion for the open source community. Being an open source developer at heart, I'm glad to be bringing Dgraph back to Apache 2.0 license. It is something that we started off with, but then got lost into the AGPL woods. At the end of the day, Apache license is the gold standard of licenses, and something open source users (i.e. the world) feel very comfortable with. The vision for Dgraph is to bring graph databases mainstream, allowing them to be the primary databases holding the source of truth, and that's only possible if it can be adopted by any company, big or small, without any concerns. **Apache license lets achieve that vision.** We will be adding proprietary features later on under an enterprise license, but as long as I'm in charge, we're not moving the core away from Apache 2.0 license. This is it.
1 parent 88ea8ff commit 3d0b2cd

File tree

204 files changed

+2442
-622
lines changed

Some content is hidden

Large Commits have some content hidden by default. Use the searchbox below for content that may be hidden.

204 files changed

+2442
-622
lines changed

LICENSE.md

Lines changed: 3 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -2,9 +2,9 @@
22

33
Copyright 2016-2018 Dgraph Labs, Inc.
44

5-
Licensed under the Apache License, Version 2.0 (the "License") and the Commons
6-
Clause Restriction; you may not use this file except in compliance with the
7-
License. You may obtain a copy of the License at
5+
Source code in this repository is licensed under the Apache Public License 2.0
6+
(APL). A copy of APL is present in this repository, and is also available online
7+
at
88

99
http://www.apache.org/licenses/LICENSE-2.0
1010

@@ -13,28 +13,6 @@ under the License is distributed on an "AS IS" BASIS, WITHOUT WARRANTIES OR
1313
CONDITIONS OF ANY KIND, either express or implied. See the License for the
1414
specific language governing permissions and limitations under the License.
1515

16-
### Commons Clause Restriction
17-
18-
The Software is provided to you by the Licensor under the License, as defined
19-
below, subject to the following condition. Without limiting other conditions in
20-
the License, the grant of rights under the License will not include, and the
21-
License does not grant to you, the right to Sell the Software. For purposes of
22-
the foregoing, “Sell” means practicing any or all of the rights granted to you
23-
under the License to provide to third parties, for a fee or other consideration
24-
(including without limitation fees for hosting or consulting/ support services
25-
related to the Software), a product or service whose value derives, entirely or
26-
substantially, from the functionality of the Software. Any license notice or
27-
attribution required by the License must also include this Commons Cause License
28-
Condition notice.
29-
30-
For purposes of the clause above, the “Licensor” is Dgraph Labs, Inc., the
31-
“License” is the Apache License, Version 2.0, and the Software is the Dgraph
32-
software provided with this notice.
33-
34-
You may obtain a copy of the clause at
35-
36-
https://commonsclause.com/
37-
3816
## Trademark
3917

4018
Dgraph is a registered trademark of Dgraph Labs, Inc.

README.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -84,7 +84,7 @@ makes it easy to build applications with it.
8484
| Full Text Search | Native support | Native support | Via External Indexing System |
8585
| Regular Expressions | Native support | Native support | Via External Indexing System |
8686
| Geo Search | Native support | External support only | Via External Indexing System |
87-
| License | Apache 2.0 + Commons Clause | GPL v3 | Apache 2.0 |
87+
| License | Apache 2.0 | GPL v3 | Apache 2.0 |
8888

8989
## Users
9090
- **Dgraph official documentation is present at [docs.dgraph.io](https://docs.dgraph.io).**
@@ -108,7 +108,7 @@ makes it easy to build applications with it.
108108
## Unofficial Client Libraries
109109
The Dgraph team maintain a number of [officially supported client libraries](https://docs.dgraph.io/clients/). The following libraries are contributed by the community.
110110

111-
**C# .NET**
111+
**C# .NET**
112112

113113
* [https://github.com/AlexandreDaSilva/DgraphNet](https://github.com/AlexandreDaSilva/DgraphNet)
114114
* [https://github.com/MichaelJCompton/Dgraph-dotnet](https://github.com/MichaelJCompton/Dgraph-dotnet)

algo/doc.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/*
2-
* Copyright 2016-2018 Dgraph Labs, Inc.
2+
* Copyright 2016-2018 Dgraph Labs, Inc. and Contributors
33
*
4-
* This file is available under the Apache License, Version 2.0,
5-
* with the Commons Clause restriction.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
615
*/
716

817
// Package algo contains algorithms such as merging, intersecting sorted lists.

algo/heap.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/*
2-
* Copyright 2016-2018 Dgraph Labs, Inc.
2+
* Copyright 2016-2018 Dgraph Labs, Inc. and Contributors
33
*
4-
* This file is available under the Apache License, Version 2.0,
5-
* with the Commons Clause restriction.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
615
*/
716

817
package algo

algo/heap_test.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/*
2-
* Copyright 2016-2018 Dgraph Labs, Inc.
2+
* Copyright 2016-2018 Dgraph Labs, Inc. and Contributors
33
*
4-
* This file is available under the Apache License, Version 2.0,
5-
* with the Commons Clause restriction.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
615
*/
716

817
package algo

algo/uidlist.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/*
2-
* Copyright 2016-2018 Dgraph Labs, Inc.
2+
* Copyright 2016-2018 Dgraph Labs, Inc. and Contributors
33
*
4-
* This file is available under the Apache License, Version 2.0,
5-
* with the Commons Clause restriction.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
615
*/
716

817
package algo

algo/uidlist_test.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/*
2-
* Copyright 2016-2018 Dgraph Labs, Inc.
2+
* Copyright 2016-2018 Dgraph Labs, Inc. and Contributors
33
*
4-
* This file is available under the Apache License, Version 2.0,
5-
* with the Commons Clause restriction.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
615
*/
716

817
package algo

conn/node.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/*
2-
* Copyright 2017-2018 Dgraph Labs, Inc.
2+
* Copyright 2017-2018 Dgraph Labs, Inc. and Contributors
33
*
4-
* This file is available under the Apache License, Version 2.0,
5-
* with the Commons Clause restriction.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
615
*/
716

817
package conn

conn/node_test.go

Lines changed: 16 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,19 @@
1+
/*
2+
* Copyright 2018 Dgraph Labs, Inc. and Contributors
3+
*
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
15+
*/
16+
117
package conn
218

319
import (

conn/pool.go

Lines changed: 12 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,17 @@
11
/*
2-
* Copyright 2016-2018 Dgraph Labs, Inc.
2+
* Copyright 2016-2018 Dgraph Labs, Inc. and Contributors
33
*
4-
* This file is available under the Apache License, Version 2.0,
5-
* with the Commons Clause restriction.
4+
* Licensed under the Apache License, Version 2.0 (the "License");
5+
* you may not use this file except in compliance with the License.
6+
* You may obtain a copy of the License at
7+
*
8+
* http://www.apache.org/licenses/LICENSE-2.0
9+
*
10+
* Unless required by applicable law or agreed to in writing, software
11+
* distributed under the License is distributed on an "AS IS" BASIS,
12+
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
13+
* See the License for the specific language governing permissions and
14+
* limitations under the License.
615
*/
716

817
package conn

0 commit comments

Comments
 (0)