Jakub Josef | 3691b08 | 2017-05-24 19:09:11 +0200 | [diff] [blame] | 1 | version = '1.0' |
| 2 | group = 'com.mirantis' |
| 3 | |
Igor Belikov | d3a9c2b | 2017-01-11 16:19:07 +0300 | [diff] [blame] | 4 | apply plugin: 'groovy' |
| 5 | apply plugin: 'codenarc' |
| 6 | |
Dmitry Burmistrov | 287b7ed | 2021-05-17 19:01:16 +0400 | [diff] [blame] | 7 | def jcenterRepo = System.getenv('ARTIFACTORY_URL') ?: 'https://artifactory.mcp.mirantis.net/artifactory/jcenter' |
Igor Belikov | d3a9c2b | 2017-01-11 16:19:07 +0300 | [diff] [blame] | 8 | |
| 9 | sourceSets { |
| 10 | main { |
| 11 | groovy { |
| 12 | srcDirs = ['src', 'vars'] |
| 13 | } |
| 14 | } |
| 15 | } |
| 16 | |
| 17 | compileGroovy.enabled = false |
| 18 | |
| 19 | repositories { |
| 20 | maven { |
| 21 | url jcenterRepo |
| 22 | } |
| 23 | } |
| 24 | |
| 25 | codenarc { |
| 26 | configFile = new File('codenarcRules.groovy') |
| 27 | reportFormat = 'text' |
| 28 | } |