Jakub Josef | d75c1d5 | 2017-03-15 18:06:03 +0100 | [diff] [blame] | 1 | apply plugin: 'groovy' |
| 2 | apply plugin: 'codenarc' |
| 3 | |
Denis Egorenko | 0f1c849 | 2021-05-18 12:45:31 +0400 | [diff] [blame] | 4 | def jcenterRepo = System.getenv('ARTIFACTORY_URL') ?: 'https://artifactory.mcp.mirantis.net/artifactory/jcenter' |
Jakub Josef | d75c1d5 | 2017-03-15 18:06:03 +0100 | [diff] [blame] | 5 | |
Jakub Josef | 92cbacc | 2017-05-24 18:22:14 +0200 | [diff] [blame] | 6 | dependencies{ |
| 7 | compile 'org.codehaus.groovy:groovy-all:2.3.6' |
| 8 | } |
| 9 | |
Jakub Josef | d75c1d5 | 2017-03-15 18:06:03 +0100 | [diff] [blame] | 10 | sourceSets { |
| 11 | main { |
| 12 | groovy { |
Jakub Josef | fcb615e | 2017-04-10 14:34:40 +0200 | [diff] [blame] | 13 | srcDirs = ['.'] |
Jakub Josef | d75c1d5 | 2017-03-15 18:06:03 +0100 | [diff] [blame] | 14 | } |
| 15 | } |
| 16 | } |
| 17 | |
Jakub Josef | 04a692c | 2017-05-24 18:34:28 +0200 | [diff] [blame] | 18 | compileGroovy.enabled = false |
| 19 | |
Jakub Josef | d75c1d5 | 2017-03-15 18:06:03 +0100 | [diff] [blame] | 20 | repositories { |
| 21 | maven { |
| 22 | url jcenterRepo |
| 23 | } |
| 24 | } |
| 25 | |
| 26 | codenarc { |
| 27 | configFile = new File('codenarcRules.groovy') |
| 28 | reportFormat = 'text' |
| 29 | } |