-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
53 lines (42 loc) · 1.22 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
plugins {
id 'groovy'
id 'idea'
}
group = "com.cinchfinancial.codeclimate"
archivesBaseName = "codeclimate-codenarc"
version = "1.0"
sourceCompatibility = '1.8'
targetCompatibility = '1.8'
repositories {
jcenter()
maven { url "https://oss.sonatype.org/content/repositories/snapshots" }
maven { url "http://repo.maven.apache.org/maven2" }
}
dependencies {
compile group: 'org.codenarc', name: 'CodeNarc', version: '1.0'
compile group: "org.codehaus.groovy", name: "groovy-all", version: "2.4.12"
runtime "org.slf4j:slf4j-api:1.7.25"
runtime "org.slf4j:slf4j-simple:1.7.25"
runtime group: 'org.gmetrics', name: 'GMetrics', version: '1.0'
testCompile 'org.apache.ant:ant:1.9.4'
testCompile 'commons-cli:commons-cli:1.4'
testCompile 'junit:junit:4.12'
}
sourceSets {
main {
java { srcDirs = [] }
groovy { srcDirs = ['src/main/groovy', 'src/main/java'] }
}
}
task copyLibs(type: Copy, dependsOn:["jar"]) {
from configurations.runtimeClasspath
from("${buildDir}/libs") {
include "*.jar"
}
into "${projectDir}/lib"
}
task copyTestLibs(type: Copy) {
into "${buildDir}/lib"
from configurations.testCompile
}
task infra(dependsOn: ["copyLibs"])