-
Notifications
You must be signed in to change notification settings - Fork 3
/
Copy pathbuild.gradle
137 lines (109 loc) · 3.97 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
plugins {
id 'scala'
id 'maven-publish'
id 'com.jfrog.artifactory' version '4.7.3'
id 'com.jfrog.bintray' version '1.8.4'
id 'com.adtran.scala-multiversion-plugin' version '1.0.35'
}
group = 'io.rsocket'
description = 'Akka RSocket transport implementations (TCP, Websocket)'
repositories {
jcenter()
}
ext {
rsocketVersion = "1.0.0-RC5"
akkaHttpVersion = "10.1.8"
akkaStreamVersion = "2.5.23"
junitVersion = "5.1.0"
}
configurations {
scalaAnt
}
dependencies {
zinc "com.typesafe.zinc:zinc:0.3.15"
compile "org.scala-lang:scala-library:%scala-version%"
compile "io.rsocket:rsocket-core:$rsocketVersion"
compile "com.typesafe.akka:akka-http_%%:$akkaHttpVersion"
compile "com.typesafe.akka:akka-stream_%%:$akkaStreamVersion"
testCompile "io.rsocket:rsocket-test:$rsocketVersion"
testCompile "io.rsocket:rsocket-transport-netty:$rsocketVersion"
if (scalaVersion.startsWith("2.11")) {
testCompile "com.typesafe.akka:akka-actor-testkit-typed_%%:2.5.21"
} else {
testCompile "com.typesafe.akka:akka-actor-testkit-typed_%%:$akkaStreamVersion"
}
testRuntimeOnly 'ch.qos.logback:logback-classic:1.2.3'
testRuntimeOnly "com.typesafe.akka:akka-slf4j_%%:$akkaStreamVersion"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junitVersion"
scalaAnt 'com.sandinh:scala-ant_2.13:2.13.1'
}
scaladoc {
scalaClasspath += scalaVersion.startsWith("2.13") ? configurations.scalaAnt : layout.files()
}
sourceCompatibility = 1.8
targetCompatibility = 1.8
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
task scaladocJar(type: Jar, dependsOn: scaladoc) {
classifier = 'javadoc'
from scaladoc.destinationDir
}
artifacts {
archives jar
archives sourcesJar
archives scaladocJar
}
plugins.withType(MavenPublishPlugin) {
publishing {
publications {
maven(MavenPublication) {
groupId project.group
artifactId archivesBaseName
from components.java
artifact sourcesJar
artifact scaladocJar
pom.withXml {
asNode().':version' + {
resolveStrategy = DELEGATE_FIRST
name project.name
description project.description
url 'http://rsocket.io'
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/license/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'rdegnan'
name 'Ryland Degnan'
email '[email protected]'
}
}
scm {
connection 'scm:git:[email protected]:rsocket/rsocket-transport-akka.git'
developerConnection 'scm:git:[email protected]:rsocket/rsocket-transport-akka.git'
url 'https://github.com/rsocket/rsocket-transport-akka'
}
}
}
}
}
}
}
apply from: 'artifactory.gradle'
apply from: 'bintray.gradle'
ScalaCompileOptions.metaClass.daemonServer = true
ScalaCompileOptions.metaClass.fork = true
ScalaCompileOptions.metaClass.useAnt = false
ScalaCompileOptions.metaClass.useCompileDaemon = false
project.tasks.scaladoc.scalaDocOptions.additionalParameters = ["-no-link-warnings"]
project.tasks.compileScala.scalaCompileOptions.additionalParameters = ["-target:jvm-1.8"]
project.tasks.compileTestScala.scalaCompileOptions.additionalParameters = ["-target:jvm-1.8"]
test {
useJUnitPlatform()
maxParallelForks = 1
}