forked from xenon-middleware/xenon
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
108 lines (92 loc) · 3.03 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
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
// Build file which can only run when dependencies and plugins have been downloaded.
// PLUGINS
// ==============
plugins {
// Changes in the plugins section should be also be applied to build.offline.gradle
id 'java'
id 'distribution'
// publishing
id 'maven-publish'
id 'com.jfrog.bintray' version '1.2'
// ide
id 'idea'
id 'eclipse'
// integration tests
id 'org.hidetake.ssh' version '1.1.3'
// code coverage
id 'jacoco'
// quality
id 'org.sonarqube' version '1.0'
id 'pmd'
}
apply from: 'gradle/common.gradle'
apply from: 'gradle/integrationTest.gradle'
apply from: 'gradle/codestyle.gradle'
// DEPENDENCIES
// ==============
// Online dependencies
repositories {
mavenCentral()
jcenter()
}
ext.jschVersion = '0.1.50'
ext.apacheCommonsNetVersion = '3.3'
dependencies {
// Xenon dependencies.
// xenon/lib/**/*.jar to ./lib/
compile group: 'com.jcraft', name: 'jsch', version: jschVersion
compile group: 'commons-net', name: 'commons-net', version: apacheCommonsNetVersion
compile group: 'com.google.code.findbugs', name: 'findbugs', version: '2.0.2'
compile group: 'org.slf4j', name: 'slf4j-api', version: '1.7.5'
// Runtime dependencies
runtime group: 'ch.qos.logback', name: 'logback-core', version: '1.0.11'
runtime group: 'ch.qos.logback', name: 'logback-classic', version: '1.0.11'
// Testing dependencies
testCompile group: 'junit', name: 'junit', version: '4.11'
testCompile group: 'org.hamcrest', name: 'hamcrest-core', version: '1.3'
testCompile group: 'org.hamcrest', name: 'hamcrest-library', version: '1.3'
testCompile group: 'org.mockito', name: 'mockito-all', version: '1.9.5'
userguideCompile sourceSets.main.output
examplesCompile sourceSets.main.output
}
task downloadCompileDependencies(type: Copy) {
from configurations.compile.files
into compileLibDir
}
task downloadTestDependencies(type: Copy) {
from (configurations.testCompile.files - configurations.compile.files)
into testLibDir
}
task downloadRuntimeDependencies(type: Copy) {
from (configurations.runtime.files - configurations.compile.files)
into runtimeLibDir
}
task downloadCodestyleDependencies(type: Copy) {
from configurations.pmd.files
into codestyleLibDir
}
task downloadDependencies(dependsOn: [
downloadCompileDependencies,
downloadTestDependencies,
downloadRuntimeDependencies,
downloadCodestyleDependencies
]) {
description "download all Java dependencies, as resolved by gradle, into the lib directory"
}
// PUBLISH
// =========
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
pkg {
repo = 'xenon'
name = 'xenon'
desc = description
userOrg = 'nlesc'
licenses = ['Apache-2.0']
websiteUrl = 'https://nlesc.github.io/Xenon'
vcsUrl = 'https://github.com/NLeSC/Xenon.git'
issueTrackerUrl = 'https://github.com/NLeSC/Xenon/issues'
}
publications = ['MyPublication']
}