-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
147 lines (125 loc) · 3.8 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
144
145
146
147
plugins {
id "com.github.maiflai.scalatest" version "0.19"
id "com.jfrog.bintray" version "1.7.3"
id "org.scoverage" version "2.1.0"
}
apply plugin: "scala"
apply plugin: "maven"
apply plugin: "maven-publish"
apply plugin: "org.scoverage"
repositories {
mavenCentral()
maven { url "https://jitpack.io" }
}
project.version = "0.5"
configurations {
codacy
}
dependencies {
compile "org.scala-lang:scala-library:2.12+"
compile "org.reactivestreams:reactive-streams:1.0.0.final"
compile "org.slf4j:slf4j-api:1.7+"
compile "org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1+"
compile "org.apache.geronimo.specs:geronimo-jms_1.1_spec:1.1+"
testCompile "org.scalatest:scalatest_2.12:3.0+"
testCompile "org.apache.activemq:activemq-broker:+"
testCompile "org.apache.activemq:activemq-kahadb-store:+"
testCompile "com.typesafe.akka:akka-stream_2.12:2.4+"
testCompile "io.swave:swave-core_2.12:+"
testCompile "com.storm-enroute:scalameter_2.12:0.8.2"
testCompile "io.monix:monix_2.12:2.3.0"
testCompile("net.timewalker.ffmq:ffmq4-server:4.0.0") {
exclude module: "jms"
exclude module: "log4j"
}
testCompile "org.reactivestreams:reactive-streams-tck:1.0.0.final"
testRuntime "ch.qos.logback:logback-classic:+"
testRuntime "org.slf4j:log4j-over-slf4j:1.6+"
testRuntime "org.pegdown:pegdown:1.6.0"
scoverage "org.scoverage:scalac-scoverage-plugin_2.12:+",
"org.scoverage:scalac-scoverage-runtime_2.12:+"
codacy "com.github.codacy:codacy-coverage-reporter:-SNAPSHOT"
}
test {
maxParallelForks = 1
}
task sendCoverageToCodacy(type: JavaExec, dependsOn: checkScoverage) {
main = "com.codacy.CodacyCoverageReporter"
classpath = configurations.codacy
args = ["-l", "Scala", "-r", "${buildDir}/reports/scoverage/cobertura.xml"]
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = "sources"
from sourceSets.main.allSource
}
task scaladocJar(type: Jar, dependsOn: scaladoc) {
classifier = 'scaladoc'
from scaladoc.destinationDir
}
artifacts {
archives sourcesJar
archives scaladocJar
}
jar {
manifest {
attributes(
"Implementation-Title": "Reajames",
"Implementation-Vendor": "ru.reajames",
"Implementation-Version": project.version
)
}
}
def pomConfig = {
licenses {
license {
name "The Apache Software License, Version 2.0"
url "http://www.apache.org/licenses/LICENSE-2.0.txt"
distribution "repo"
}
}
developers {
developer {
id "dobrynya"
name "Dmitry Dobrynin"
email "dobrynya@inbox.ru"
}
}
}
publishing {
publications {
MyPublication(MavenPublication) {
from components.java
artifact sourcesJar
artifact scaladocJar
groupId "ru.reajames"
artifactId "reajames"
version project.version
pom.withXml {
def root = asNode()
root.appendNode("description", "ReaJaMeS is JMS in terms of Reactive Streams")
root.appendNode("name", "Reajames")
root.appendNode("url", "https://github.com/dobrynya/reajames")
root.children().last() + pomConfig
}
}
}
}
bintray {
user = project.properties.bintrayUser
key = project.properties.bintrayApiKey
pkg {
repo = "maven"
name = "reajames"
vcsUrl = "https://github.com/dobrynya/reajames.git"
licenses = ["Apache-2.0"]
version {
name = project.version
released = new Date()
}
}
publications = ["MyPublication"]
}
checkScoverage {
minimumRate = 0.85
}
check.dependsOn(sendCoverageToCodacy)