Jakub Josef | 3691b08 | 2017-05-24 19:09:11 +0200 | [diff] [blame] | 1 | version = '1.0' |
| 2 | group = 'com.mirantis' |
Igor Belikov | d3a9c2b | 2017-01-11 16:19:07 +0300 | [diff] [blame] | 3 | apply plugin: 'groovy' |
| 4 | apply plugin: 'codenarc' |
| 5 | |
| 6 | def jcenterRepo = System.getenv('ARTIFACTORY_URL') ?: 'https://artifactory.mcp.mirantis.net/jcenter' |
| 7 | |
| 8 | sourceSets { |
| 9 | main { |
| 10 | groovy { |
| 11 | srcDirs = ['src', 'vars'] |
| 12 | } |
| 13 | } |
| 14 | } |
| 15 | |
Jakub Josef | 9973a7f | 2017-06-20 13:43:48 +0200 | [diff] [blame^] | 16 | configurations { |
| 17 | ivy |
| 18 | } |
| 19 | |
| 20 | dependencies { |
| 21 | compile group: 'org.codehaus.groovy', name: 'groovy', version: '2.4.6' |
| 22 | compile group: 'com.cloudbees', name: 'groovy-cps', version: '1.12' |
| 23 | compile group: 'org.jenkins-ci.main', name: 'jenkins-core', version: '2.62' |
| 24 | //compile group: 'org.jenkins-ci.plugins.workflow', name: 'workflow-cps', version: '2.13' |
| 25 | //compile group: 'com.sonyericsson.hudson.plugins.gerrit', name: 'gerrit-trigger', version: '2.23.2' |
| 26 | compile group: 'org.jfrog.buildinfo', name: 'build-info-api', version: '2.2.1' |
| 27 | compile fileTree(include: ['*.jar'], dir: 'libs') |
| 28 | ivy group: 'org.apache.ivy', name: 'ivy', version: '2.4.0' |
| 29 | |
| 30 | } |
| 31 | |
| 32 | tasks.withType(GroovyCompile) { |
| 33 | groovyClasspath += configurations.ivy |
| 34 | } |
Igor Belikov | d3a9c2b | 2017-01-11 16:19:07 +0300 | [diff] [blame] | 35 | |
| 36 | repositories { |
Jakub Josef | 9973a7f | 2017-06-20 13:43:48 +0200 | [diff] [blame^] | 37 | mavenCentral() |
| 38 | maven {url jcenterRepo} |
| 39 | maven {url "http://repo.jenkins-ci.org/releases/"} |
Igor Belikov | d3a9c2b | 2017-01-11 16:19:07 +0300 | [diff] [blame] | 40 | } |
| 41 | |
| 42 | codenarc { |
| 43 | configFile = new File('codenarcRules.groovy') |
| 44 | reportFormat = 'text' |
| 45 | } |