Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

How to specify regex in alias attribute of downloadLicenses section #164

Open
kant111 opened this issue Sep 3, 2018 · 1 comment
Open

Comments

@kant111
Copy link

kant111 commented Sep 3, 2018

Below is how the downloadLicenses section of my project look like

downloadLicenses {
        ext.apacheTwo = license('Apache License, Version 2.0', 'http://opensource.org/licenses/Apache-2.0')
        ext.bsd = license('BSD License', 'http://www.opensource.org/licenses/bsd-license.php')

        includeProjectDependencies = true
        aliases = [
                (apacheTwo) : [
                                'The Apache Software License, Version 2.0',
                                'The Apache License, Version 2.0',
                                'Apache Software License - Version 2.0',
                                'Apache License (v2.0)',
                                'Apache 2.0 License',
                                'Apache 2',
                                'Apache 2.0',
                                'Apache License Version 2.0',
                                'Apache License, Version 2.0',
                                'Apache License 2.0',
                                license('Apache License', 'http://www.apache.org/licenses/LICENSE-2.0')
                            ],
                (bsd) : [
                            'BSD',
                            'BSD License',
                            'The BSD License',
                            'BSD 2-Clause License',
                            'New BSD license',
                            'BSD 3-Clause',
                            'BSD 3-clause',
                            'The BSD 3-Clause License',
                            'New BSD License',
                            'The New BSD License',
                            license('New BSD License', 'http://www.opensource.org/licenses/bsd-license.php')
                        ]
        ]
    }

Even a character or case change I have to add it to the list. is there a way to sepcify regex or something?

@blagerweij
Copy link

I created a PR to support regexes:
#167

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants