blob: 48c1c62b7dac62944b65088b152e1dcff8023e2e [file] [log] [blame]
Jakub Josef3691b082017-05-24 19:09:11 +02001version = '1.0'
2group = 'com.mirantis'
Igor Belikovd3a9c2b2017-01-11 16:19:07 +03003apply plugin: 'groovy'
4apply plugin: 'codenarc'
5
6def jcenterRepo = System.getenv('ARTIFACTORY_URL') ?: 'https://artifactory.mcp.mirantis.net/jcenter'
7
8sourceSets {
9 main {
10 groovy {
11 srcDirs = ['src', 'vars']
12 }
13 }
14}
15
Jakub Josef9973a7f2017-06-20 13:43:48 +020016configurations {
17 ivy
18}
19
20dependencies {
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
32tasks.withType(GroovyCompile) {
33 groovyClasspath += configurations.ivy
34}
Igor Belikovd3a9c2b2017-01-11 16:19:07 +030035
36repositories {
Jakub Josef9973a7f2017-06-20 13:43:48 +020037 mavenCentral()
38 maven {url jcenterRepo}
39 maven {url "http://repo.jenkins-ci.org/releases/"}
Igor Belikovd3a9c2b2017-01-11 16:19:07 +030040}
41
42codenarc {
43 configFile = new File('codenarcRules.groovy')
44 reportFormat = 'text'
45}