Versions Compared

Key

  • This line was added.
  • This line was removed.
  • Formatting was changed.

...

Besides of the bug

Jira
serverASF JIRA
columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
serverId5aa69414-a9e9-3523-82ec-879b028fb15b
keyNETBEANS-2288
NetBeans reads the license information from the Gradle project properties. When working with a multi-project Gradle project it is enough to define these properties in the root project.

Any kind of definition is evaluated as a string and the that string shall :

  • The string can match the Short ID or the License URL in the Built-In License Headers

...

  • The string can be a file path relative to the project dir.
  • The string can

...

  • be a file path relative to the root project dir. (When this is released:
    Jira
    serverASF JIRA
    columnskey,summary,type,created,updated,due,assignee,reporter,priority,status,resolution
    serverId5aa69414-a9e9-3523-82ec-879b028fb15b
    keyNETBEANS-2756
    )
  • The string can be point to an absolute file path.
    (Can be useful as ext.license = file("$rootDir/license.header") in the root build.gradle of a multi-module projects till NETBEANS-2756 in place.)

The properties are evaluated in the following order:

...

See the blog entry, however it is the project.license Ant property which is being read and evaluated for the license information.

Built-In License Headers

NameShort IDLicense URL
ASF - Apache License 2.0apache20-asfhttps://opensource.org/licenses/Apache-2.0
Apache License 2.0apache20https://opensource.org/licenses/Apache-2.0
BSD 2 - Clause Licensebsd2https://opensource.org/licenses/BSD-2-Clause
Eclipse Public License 1.0epl10https://opensource.org/licenses/EPL-1.0
General Public License 2.0gpl20https://opensource.org/licenses/GPL-2.0
General Public License 3.0gpl30https://opensource.org/licenses/GPL-3.0
Lesser GPL 2.1lgpl21

https://opensource.org/licenses/LGPL-2.1

MITmithttps://opensource.org/licenses/MIT
NetBeans CDDL/GPLcddl-netbeans-sunN/A