diff --git a/build.gradle b/build.gradle index 9bbfad5..1866d12 100644 --- a/build.gradle +++ b/build.gradle @@ -18,24 +18,30 @@ apply plugin: 'java' apply from: "https://raw.githubusercontent.com/gocd/gocd-plugin-gradle-task-helpers/master/helper.gradle?_=${(int) (new Date().toInstant().epochSecond / 60)}" gocdPlugin { - id = 'cd.go.authorization.github' - pluginVersion = '3.3.1' - goCdVersion = '20.9.0' - name = 'GitHub OAuth authorization plugin' - description = 'GitHub OAuth authorization plugin for GoCD' - vendorName = 'Thoughtworks, Inc.' - vendorUrl = 'https://github.com/gocd-contrib/github-oauth-authorization-plugin' - - githubRepo { - owner = System.getenv('GITHUB_USER') ?: 'bob' - repo = 'github-oauth-authorization-plugin' - token = System.getenv('GITHUB_TOKEN') ?: 'bad-token' - } - - pluginProject = project - - prerelease = !"No".equalsIgnoreCase(System.getenv('PRERELEASE')) - assetsToRelease = [project.tasks.jar] + id = 'cd.go.authorization.github' + pluginVersion = '3.3.1' + goCdVersion = '20.9.0' + name = 'GitHub OAuth authorization plugin' + description = 'GitHub OAuth authorization plugin for GoCD' + vendorName = 'Thoughtworks, Inc.' + vendorUrl = 'https://github.com/gocd-contrib/github-oauth-authorization-plugin' + + githubRepo { + owner = System.getenv('GITHUB_USER') ?: 'bob' + repo = 'github-oauth-authorization-plugin' + token = System.getenv('GITHUB_TOKEN') ?: 'bad-token' + } + + pluginProject = project + + prerelease = !"No".equalsIgnoreCase(System.getenv('PRERELEASE')) + assetsToRelease = [project.tasks.jar] + + licenseReport { + excludes = [ + 'com.squareup.okio:okio' // Seems to not be able to resolve license, not sure if POM issue or jk1-license-report issue. Maybe due to no jar? + ] + } } group = 'cd.go'