forked from sshoogr/sshoogr
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
76 lines (63 loc) · 1.9 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
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
group = 'com.aestasit.infrastructure.sshoogr'
version = '0.9.17-SNAPSHOT'
buildscript {
repositories { mavenCentral() }
dependencies { classpath 'net.saliman:gradle-cobertura-plugin:2.2.4' }
dependencies { classpath 'org.ajoberstar:gradle-git:0.8.0' }
}
apply plugin: 'groovy'
apply plugin: 'maven'
apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'cobertura'
apply plugin: 'github-pages'
apply from: 'repos.gradle'
apply from: 'sonar.gradle'
apply from: 'docs.gradle'
sourceCompatibility = '1.6'
targetCompatibility = '1.6'
compileGroovy {
options.compilerArgs << '-Xlint:-options'
}
configure(allprojects) {
ext.groovyVersion = '2.1.8'
ext.slf4jVersion = '1.7.5'
ext.logbackVersion = '1.1.2'
}
dependencies {
compile "org.codehaus.groovy:groovy-all:${groovyVersion}"
compile "org.slf4j:slf4j-api:${slf4jVersion}"
compile "org.slf4j:jcl-over-slf4j:${slf4jVersion}"
compile "ch.qos.logback:logback-classic:${logbackVersion}"
compile 'commons-io:commons-io:1.4'
compile 'commons-codec:commons-codec:1.9'
compile 'com.jcraft:jsch:0.1.51'
testCompile 'junit:junit:4.11'
testCompile 'com.aestasit.infrastructure.mock:groovy-sshd-mock:0.3'
}
sourceSets {
integrationTest {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
}
}
configurations {
all*.exclude group: 'commons-logging'
all*.exclude group: 'log4j'
all*.exclude module: 'slf4j-simple'
integrationTestCompile.extendsFrom testCompile
integrationTestRuntime.extendsFrom testRuntime
}
task wrapper(type: Wrapper) {
gradleVersion = '1.12'
}
task integration(type: Test) {
description = "Run integration tests (located in src/integrationTest/groovy)."
testClassesDir = project.sourceSets.integrationTest.output.classesDir
classpath = project.sourceSets.integrationTest.runtimeClasspath
}
idea {
module {
testSourceDirs += file('src/integrationTest/groovy')
}
}