Search Options

Display Count
Sort
Preferred Language
Advanced Search

Results 1 - 5 of 5 for licenseFile (0.31 seconds)

  1. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/BuildPlugin.java

                }
                final File licenseFile = DefaultGroovyMethods.asType(ext.get("licenseFile"), File.class);
                final File noticeFile = DefaultGroovyMethods.asType(ext.get("noticeFile"), File.class);
                jar.metaInf(spec -> {
                    spec.from(licenseFile.getParent(), from -> {
                        from.include(licenseFile.getName());
                        from.rename(s -> "LICENSE.txt");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 14:34:07 GMT 2021
    - 3.4K bytes
    - Click Count (0)
  2. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/InternalPluginBuildPlugin.java

            final var licenseFile = extension.getLicenseFile();
            var tasks = project.getTasks();
            if (licenseFile != null) {
                tasks.withType(Zip.class).named("bundlePlugin").configure(zip -> zip.from(licenseFile.getParentFile(), copySpec -> {
                    copySpec.include(licenseFile.getName());
                    copySpec.rename(s -> "LICENSE.txt");
                }));
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 01 09:19:30 GMT 2021
    - 5K bytes
    - Click Count (0)
  3. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/LicenseAnalyzer.java

    
        public static LicenseInfo licenseType(File licenseFile) {
            for (LicenseMatcher matcher : matchers) {
                boolean matches = matcher.matches(licenseFile);
                if (matches) {
                    return new LicenseInfo(matcher.getIdentifier(), matcher.spdxLicense, matcher.sourceRedistributionRequired);
                }
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jul 27 00:12:58 GMT 2021
    - 12.8K bytes
    - Click Count (0)
  4. build-tools-internal/src/main/java/org/elasticsearch/gradle/internal/precommit/DependencyLicensesTask.java

                checkFile(dependencyName, jarName, notices, "NOTICE");
    
                File licenseFile = new File(licensesDir, getFileName(dependencyName, licenses, "LICENSE"));
                LicenseInfo licenseInfo = LicenseAnalyzer.licenseType(licenseFile);
                if (licenseInfo.isSourceRedistributionRequired()) {
                    checkFile(dependencyName, jarName, sources, "SOURCES");
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Mon Jul 26 12:16:14 GMT 2021
    - 14.3K bytes
    - Click Count (0)
  5. build-tools-internal/src/integTest/groovy/org/elasticsearch/gradle/internal/PublishPluginFuncTest.groovy

                     }
                }
                        
                // requires elasticsearch artifact available
                tasks.named('bundlePlugin').configure { enabled = false }
                licenseFile = file('license.txt')
                noticeFile = file('notice.txt')
                version = "1.0"
                group = 'org.acme'        
            """
    
            when:
    Created: Wed Apr 08 16:19:15 GMT 2026
    - Last Modified: Tue Jun 22 07:24:59 GMT 2021
    - 19K bytes
    - Click Count (0)
Back to Top