-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
143 lines (128 loc) · 4.51 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
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
buildscript {
project.ext.CERN_VM = System.getProperty('CERN_TECHNET_VM') ?: System.getenv('CERN_TECHNET_VM') ?: false
project.ext.TRAVIS_CI = System.getProperty('TRAVIS') ?: System.getenv('TRAVIS') ?: false
project.ext.DEPLOYMENT = System.getProperty('deployment') ?: false
project.ext.VCS_TAG = System.getProperty('TRAVIS_TAG') ?: System.getenv('TRAVIS_TAG')
project.ext.POM = [
groupId : 'org.tensorics',
artifactId : 'tensorics-kotlin',
description: 'Kotlin DSL for tensorics.',
developers : [
[
id : 'kaifox',
name : 'Kajetan Fuchsberger',
email: '[email protected]'
],
[
id : 'agorzawski',
name : 'Arek Gorzawski',
email: '[email protected]'
],
[
id : 'michi42',
name : 'Michi Hostettler',
email: '[email protected]'
],
[
id : 'andreacalia',
name : 'Andrea Calia',
email: '[email protected]'
]
]]
project.ext.INFO = [
repo : 'https://github.com/tensorics/tensorics-kotlin.git',
url : 'http://tensorics.org/',
github : 'https://github.com/tensorics/tensorics-kotlin',
githubIssues: 'https://github.com/tensorics/tensorics-kotlin/issues'
]
project.ext.BINTRAY = [
repo : 'tensorics-repo',
name : 'org.tensorics:tensorics-core',
organization: 'tensorics',
userName : 'tensorics-dev',
apiToken : System.getenv('BINTRAY_API_TOKEN')
]
repositories {
if (CERN_VM) {
maven { url 'http://artifactory.cern.ch/gradle-plugins' }
maven { url 'http://artifactory.cern.ch/ds-jcenter' }
maven { url 'http://artifactory.cern.ch/development' }
} else {
mavenCentral()
jcenter()
}
}
dependencies {
classpath 'com.netflix.nebula:nebula-publishing-plugin:5.1.0'
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
apply plugin: 'java'
apply plugin: 'jacoco'
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'nebula.maven-publish'
apply plugin: 'com.jfrog.bintray'
repositories {
if (CERN_VM) {
maven { url 'http://artifactory.cern.ch/ds-jcenter' }
maven { url 'http://artifactory.cern.ch/development' }
} else {
mavenCentral()
jcenter()
}
}
if (DEPLOYMENT) {
println 'Applying deployment scripts'
apply from: './scripts/bintray-deploy.gradle'
}
group 'org.streamingpool'
sourceCompatibility = 1.8
dependencies {
compile 'org.tensorics:tensorics-core:+'
compile 'org.jscience:jscience:4.3.1'
compile 'com.google.guava:guava:21.0'
compile 'org.hamcrest:hamcrest-all:1.3'
compile 'org.slf4j:slf4j-api:1.7.21'
compile "org.jetbrains.kotlin:kotlin-stdlib:1.1.4"
compile "org.jetbrains.kotlin:kotlin-stdlib-jre8:1.1.4"
testCompile 'junit:junit:4.12'
testCompile 'org.slf4j:slf4j-log4j12:+'
testCompile 'pl.pragmatists:JUnitParams:1.0.4'
testCompile 'org.mockito:mockito-core:1.10.19'
testCompile 'org.objenesis:objenesis:2.4'
testCompile 'com.openpojo:openpojo:0.8.4'
testCompile 'org.assertj:assertj-core:3.6.1'
testCompile 'nl.jqno.equalsverifier:equalsverifier:2.3.1'
}
sourceSets {
main {
java {
srcDir 'src/java'
}
}
test {
java {
srcDir 'src/test'
}
}
}
javadoc { options.encoding = "UTF-8" }
task wrapper(type: Wrapper) { gradleVersion = '4.0' }
task javadocJar(type: Jar) {
classifier = 'javadoc'
from javadoc
}
task sourcesJar(type: Jar) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts { archives javadocJar, sourcesJar }
jacocoTestReport {
reports {
xml.enabled true
xml.destination new File("${buildDir}/reports/jacoco/report.xml")
html.enabled true
csv.enabled false
}
}