File tree Expand file tree Collapse file tree 10 files changed +44
-38
lines changed
src/test/java/io/rsocket/util Expand file tree Collapse file tree 10 files changed +44
-38
lines changed Original file line number Diff line number Diff line change @@ -27,7 +27,7 @@ repositories {
27
27
}
28
28
29
29
dependencies {
30
- compile 'io.rsocket:reactivesocket:0.9.20'
30
+ implementation 'io.rsocket:reactivesocket:0.9.20'
31
31
}
32
32
```
33
33
Original file line number Diff line number Diff line change 15
15
*/
16
16
17
17
if (project. hasProperty(' bintrayUser' ) && project. hasProperty(' bintrayKey' )) {
18
- artifactory {
19
- publish {
20
- contextUrl = ' https://oss.jfrog.org'
21
-
22
- repository {
23
- repoKey = ' oss-snapshot-local'
24
-
25
- // Credentials for oss.jfrog.org are a user's Bintray credentials
26
- username = project. property(' bintrayUser' )
27
- password = project. property(' bintrayKey' )
28
- }
29
- }
30
- }
31
18
32
19
subprojects {
33
20
plugins. withId(' com.jfrog.artifactory' ) {
34
- artifactoryPublish {
35
- publications(' maven' )
21
+ artifactory {
22
+ publish {
23
+ contextUrl = ' https://oss.jfrog.org'
24
+
25
+ repository {
26
+ repoKey = ' oss-snapshot-local'
27
+
28
+ // Credentials for oss.jfrog.org are a user's Bintray credentials
29
+ username = project. property(' bintrayUser' )
30
+ password = project. property(' bintrayKey' )
31
+ }
32
+
33
+ defaults {
34
+ publications(' maven' )
35
+ }
36
+ }
36
37
}
37
38
}
38
39
}
39
- }
40
+ }
Original file line number Diff line number Diff line change @@ -27,18 +27,20 @@ plugins {
27
27
dependencies {
28
28
api ' io.netty:netty-buffer'
29
29
api ' io.projectreactor:reactor-core'
30
- api ' io.projectreactor.addons:reactor-extra'
31
30
32
- implementation ' com.google.code.findbugs:jsr305'
33
- implementation ' org.jctools:jctools-core'
31
+ implementation ' io.projectreactor.addons:reactor-extra'
34
32
implementation ' org.slf4j:slf4j-api'
35
33
34
+ compileOnly ' com.google.code.findbugs:jsr305'
35
+ compileOnly ' org.jctools:jctools-core'
36
+
36
37
testImplementation ' io.projectreactor:reactor-test'
37
38
testImplementation ' org.assertj:assertj-core'
38
39
testImplementation ' org.junit.jupiter:junit-jupiter-api'
39
40
testImplementation ' org.mockito:mockito-core'
40
41
41
42
testRuntimeOnly ' ch.qos.logback:logback-classic'
43
+ testRuntimeOnly ' org.jctools:jctools-core'
42
44
testRuntimeOnly ' org.junit.jupiter:junit-jupiter-engine'
43
45
44
46
// TODO: Remove after JUnit5 migration
53
55
}
54
56
55
57
shadowJar {
58
+ configurations = [project. configurations. compileOnly]
59
+
56
60
dependencies {
57
61
include(dependency(' org.jctools:jctools-core' ))
58
62
}
Original file line number Diff line number Diff line change 20
20
import static org .hamcrest .Matchers .*;
21
21
22
22
import io .rsocket .Payload ;
23
- import javax .annotation .Nullable ;
24
23
import org .junit .Test ;
25
24
26
25
public class DefaultPayloadTest {
@@ -34,7 +33,7 @@ public void testReuse() {
34
33
assertDataAndMetadata (p , DATA_VAL , METADATA_VAL );
35
34
}
36
35
37
- public void assertDataAndMetadata (Payload p , String dataVal , @ Nullable String metadataVal ) {
36
+ public void assertDataAndMetadata (Payload p , String dataVal , String metadataVal ) {
38
37
assertThat ("Unexpected data." , p .getDataUtf8 (), equalTo (dataVal ));
39
38
if (metadataVal == null ) {
40
39
assertThat ("Non-null metadata" , p .hasMetadata (), equalTo (false ));
Original file line number Diff line number Diff line change @@ -19,17 +19,17 @@ plugins {
19
19
}
20
20
21
21
dependencies {
22
- compile project(' :rsocket-core' )
23
- compile project(' :rsocket-transport-local' )
24
- compile project(' :rsocket-transport-netty' )
22
+ implementation project(' :rsocket-core' )
23
+ implementation project(' :rsocket-transport-local' )
24
+ implementation project(' :rsocket-transport-netty' )
25
25
26
- testCompile project(' :rsocket-test' )
27
- testCompile ' org.junit.jupiter:junit-jupiter-api'
28
- testCompile ' org.mockito:mockito-core'
26
+ testImplementation project(' :rsocket-test' )
27
+ testImplementation ' org.junit.jupiter:junit-jupiter-api'
28
+ testImplementation ' org.mockito:mockito-core'
29
29
30
30
// TODO: Remove after JUnit5 migration
31
31
testCompileOnly ' junit:junit'
32
- testCompile ' org.hamcrest:hamcrest-library'
32
+ testImplementation ' org.hamcrest:hamcrest-library'
33
33
testRuntimeOnly ' org.junit.vintage:junit-vintage-engine'
34
34
}
35
35
Original file line number Diff line number Diff line change @@ -22,7 +22,8 @@ plugins {
22
22
}
23
23
24
24
dependencies {
25
- implementation project(' :rsocket-core' )
25
+ api project(' :rsocket-core' )
26
+
26
27
implementation ' org.slf4j:slf4j-api'
27
28
28
29
testImplementation project(' :rsocket-test' )
Original file line number Diff line number Diff line change @@ -22,11 +22,12 @@ plugins {
22
22
}
23
23
24
24
dependencies {
25
- implementation project(' :rsocket-core' )
26
- implementation ' com.google.code.findbugs:jsr305 '
27
- implementation ' io.micrometer:micrometer-core '
25
+ api project(' :rsocket-core' )
26
+ api ' io.micrometer:micrometer-core '
27
+
28
28
implementation ' org.slf4j:slf4j-api'
29
29
30
+ compileOnly ' com.google.code.findbugs:jsr305'
30
31
31
32
testImplementation project(' :rsocket-test' )
32
33
testImplementation ' io.projectreactor:reactor-test'
Original file line number Diff line number Diff line change @@ -22,9 +22,9 @@ plugins {
22
22
}
23
23
24
24
dependencies {
25
+ api project(' :rsocket-core' )
25
26
api ' io.aeron:aeron-all'
26
27
27
- implementation project(' :rsocket-core' )
28
28
implementation ' org.slf4j:slf4j-api'
29
29
30
30
testImplementation project(' :rsocket-test' )
Original file line number Diff line number Diff line change @@ -22,8 +22,9 @@ plugins {
22
22
}
23
23
24
24
dependencies {
25
- implementation project(' :rsocket-core' )
26
- implementation ' com.google.code.findbugs:jsr305'
25
+ api project(' :rsocket-core' )
26
+
27
+ compileOnly ' com.google.code.findbugs:jsr305'
27
28
28
29
testImplementation project(' :rsocket-test' )
29
30
testImplementation ' io.projectreactor:reactor-test'
Original file line number Diff line number Diff line change @@ -22,10 +22,9 @@ plugins {
22
22
}
23
23
24
24
dependencies {
25
+ api project(' :rsocket-core' )
25
26
api ' io.projectreactor.ipc:reactor-netty'
26
27
27
- implementation project(' :rsocket-core' )
28
-
29
28
testImplementation project(' :rsocket-test' )
30
29
testImplementation ' org.junit.jupiter:junit-jupiter-api'
31
30
You can’t perform that action at this time.
0 commit comments