Skip to content

Commit

Permalink
repo: update license
Browse files Browse the repository at this point in the history
The commit includes the following updates which are prerequisites for
moving the repository under the eclipse foundation:

- updates the repository `license` (license file and `package.json`
  entry).
- updates the headers of source code,
- includes the header snippet to easily add new licenses.

See here for motivation: [motivation](#60)

See here for details:
[details](https://github.com/theia-ide/generator-theia-extension/wiki/Re-licensing-theia-ide-generator-theia-extension)

Signed-off-by: vince-fugnitto <vincent.fugnitto@ericsson.com>
  • Loading branch information
vince-fugnitto committed Nov 2, 2020
1 parent 7e61c85 commit 8405eed
Show file tree
Hide file tree
Showing 9 changed files with 743 additions and 203 deletions.
11 changes: 11 additions & 0 deletions .vscode/theia.code-snippets
Original file line number Diff line number Diff line change
@@ -0,0 +1,11 @@
{
"Copyright-JS/JSX/TS/TSX/CSS": {
"prefix": [
"header",
"copyright"
],
"body": "/********************************************************************************\n * Copyright (C) $CURRENT_YEAR ${YourCompany} and others.\n *\n * This program and the accompanying materials are made available under the\n * terms of the Eclipse Public License v. 2.0 which is available at\n * http://www.eclipse.org/legal/epl-2.0.\n *\n * This Source Code may also be made available under the following Secondary\n * Licenses when the conditions for such availability set forth in the Eclipse\n * Public License v. 2.0 are satisfied: GNU General Public License, version 2\n * with the GNU Classpath Exception which is available at\n * https://www.gnu.org/software/classpath/license.html.\n *\n * SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0\n ********************************************************************************/\n\n$0",
"description": "Adds the copyright...",
"scope": "javascript,javascriptreact,typescript,typescriptreact,css"
}
}
843 changes: 642 additions & 201 deletions LICENSE

Large diffs are not rendered by default.

9 changes: 8 additions & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -53,4 +53,11 @@ Publish with [np](https://github.com/sindresorhus/np#np--).

## License

[Apache-2.0](LICENSE)
- [Eclipse Public License 2.0](LICENSE)
- [一 (Secondary) GNU General Public License, version 2 with the GNU Classpath Exception](LICENSE)


## Trademark
"Theia" is a trademark of the Eclipse Foundation
https://www.eclipse.org/theia

17 changes: 17 additions & 0 deletions logo/theia.svg
Loading
Sorry, something went wrong. Reload?
Sorry, we cannot display this file.
Sorry, this file is invalid so it cannot be displayed.
2 changes: 1 addition & 1 deletion package.json
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@
"yeoman-generator"
],
"author": "TypeFox",
"license": "Apache-2.0",
"license": "EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0",
"dependencies": {
"yeoman-generator": "^4.0.2"
},
Expand Down
16 changes: 16 additions & 0 deletions src/app/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

import path = require('path');
import Base = require('yeoman-generator');

Expand Down
16 changes: 16 additions & 0 deletions src/browser/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

import Base  = require('yeoman-generator');

module.exports = class TheiaBrowser extends Base {
Expand Down
16 changes: 16 additions & 0 deletions src/electron/index.ts
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (C) 2017 TypeFox and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

import Base  = require('yeoman-generator');

module.exports = class TheiaElectron extends Base {
Expand Down
16 changes: 16 additions & 0 deletions test/generator-test.js
Original file line number Diff line number Diff line change
@@ -1,3 +1,19 @@
/********************************************************************************
* Copyright (C) 2019 EclipseSource and others.
*
* This program and the accompanying materials are made available under the
* terms of the Eclipse Public License v. 2.0 which is available at
* http://www.eclipse.org/legal/epl-2.0.
*
* This Source Code may also be made available under the following Secondary
* Licenses when the conditions for such availability set forth in the Eclipse
* Public License v. 2.0 are satisfied: GNU General Public License, version 2
* with the GNU Classpath Exception which is available at
* https://www.gnu.org/software/classpath/license.html.
*
* SPDX-License-Identifier: EPL-2.0 OR GPL-2.0 WITH Classpath-exception-2.0
********************************************************************************/

var assert = require('yeoman-assert')
var helpers = require('yeoman-test');
var path = require('path');
Expand Down

0 comments on commit 8405eed

Please sign in to comment.