Skip to content

Maven Dependency Improvements #502

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 1 commit into from
May 11, 2018
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,7 @@ repositories {
}

dependencies {
compile 'io.rsocket:reactivesocket:0.9.20'
implementation 'io.rsocket:reactivesocket:0.9.20'
}
```

Expand Down
33 changes: 17 additions & 16 deletions artifactory.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,25 +15,26 @@
*/

if (project.hasProperty('bintrayUser') && project.hasProperty('bintrayKey')) {
artifactory {
publish {
contextUrl = 'https://oss.jfrog.org'

repository {
repoKey = 'oss-snapshot-local'

// Credentials for oss.jfrog.org are a user's Bintray credentials
username = project.property('bintrayUser')
password = project.property('bintrayKey')
}
}
}

subprojects {
plugins.withId('com.jfrog.artifactory') {
artifactoryPublish {
publications('maven')
artifactory {
publish {
contextUrl = 'https://oss.jfrog.org'

repository {
repoKey = 'oss-snapshot-local'

// Credentials for oss.jfrog.org are a user's Bintray credentials
username = project.property('bintrayUser')
password = project.property('bintrayKey')
}

defaults {
publications('maven')
}
}
}
}
}
}
}
10 changes: 7 additions & 3 deletions rsocket-core/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -27,18 +27,20 @@ plugins {
dependencies {
api 'io.netty:netty-buffer'
api 'io.projectreactor:reactor-core'
api 'io.projectreactor.addons:reactor-extra'

implementation 'com.google.code.findbugs:jsr305'
implementation 'org.jctools:jctools-core'
implementation 'io.projectreactor.addons:reactor-extra'
implementation 'org.slf4j:slf4j-api'

compileOnly 'com.google.code.findbugs:jsr305'
compileOnly 'org.jctools:jctools-core'

testImplementation 'io.projectreactor:reactor-test'
testImplementation 'org.assertj:assertj-core'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.mockito:mockito-core'

testRuntimeOnly 'ch.qos.logback:logback-classic'
testRuntimeOnly 'org.jctools:jctools-core'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'

// TODO: Remove after JUnit5 migration
Expand All @@ -53,6 +55,8 @@ jar {
}

shadowJar {
configurations = [project.configurations.compileOnly]

dependencies {
include(dependency('org.jctools:jctools-core'))
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,6 @@
import static org.hamcrest.Matchers.*;

import io.rsocket.Payload;
import javax.annotation.Nullable;
import org.junit.Test;

public class DefaultPayloadTest {
Expand All @@ -34,7 +33,7 @@ public void testReuse() {
assertDataAndMetadata(p, DATA_VAL, METADATA_VAL);
}

public void assertDataAndMetadata(Payload p, String dataVal, @Nullable String metadataVal) {
public void assertDataAndMetadata(Payload p, String dataVal, String metadataVal) {
assertThat("Unexpected data.", p.getDataUtf8(), equalTo(dataVal));
if (metadataVal == null) {
assertThat("Non-null metadata", p.hasMetadata(), equalTo(false));
Expand Down
14 changes: 7 additions & 7 deletions rsocket-examples/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,17 +19,17 @@ plugins {
}

dependencies {
compile project(':rsocket-core')
compile project(':rsocket-transport-local')
compile project(':rsocket-transport-netty')
implementation project(':rsocket-core')
implementation project(':rsocket-transport-local')
implementation project(':rsocket-transport-netty')

testCompile project(':rsocket-test')
testCompile 'org.junit.jupiter:junit-jupiter-api'
testCompile 'org.mockito:mockito-core'
testImplementation project(':rsocket-test')
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.mockito:mockito-core'

// TODO: Remove after JUnit5 migration
testCompileOnly 'junit:junit'
testCompile 'org.hamcrest:hamcrest-library'
testImplementation 'org.hamcrest:hamcrest-library'
testRuntimeOnly 'org.junit.vintage:junit-vintage-engine'
}

Expand Down
3 changes: 2 additions & 1 deletion rsocket-load-balancer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,8 @@ plugins {
}

dependencies {
implementation project(':rsocket-core')
api project(':rsocket-core')

implementation 'org.slf4j:slf4j-api'

testImplementation project(':rsocket-test')
Expand Down
7 changes: 4 additions & 3 deletions rsocket-micrometer/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,11 +22,12 @@ plugins {
}

dependencies {
implementation project(':rsocket-core')
implementation 'com.google.code.findbugs:jsr305'
implementation 'io.micrometer:micrometer-core'
api project(':rsocket-core')
api 'io.micrometer:micrometer-core'

implementation 'org.slf4j:slf4j-api'

compileOnly 'com.google.code.findbugs:jsr305'

testImplementation project(':rsocket-test')
testImplementation 'io.projectreactor:reactor-test'
Expand Down
2 changes: 1 addition & 1 deletion rsocket-transport-aeron/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,9 +22,9 @@ plugins {
}

dependencies {
api project(':rsocket-core')
api 'io.aeron:aeron-all'

implementation project(':rsocket-core')
implementation 'org.slf4j:slf4j-api'

testImplementation project(':rsocket-test')
Expand Down
5 changes: 3 additions & 2 deletions rsocket-transport-local/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,8 +22,9 @@ plugins {
}

dependencies {
implementation project(':rsocket-core')
implementation 'com.google.code.findbugs:jsr305'
api project(':rsocket-core')

compileOnly 'com.google.code.findbugs:jsr305'

testImplementation project(':rsocket-test')
testImplementation 'io.projectreactor:reactor-test'
Expand Down
3 changes: 1 addition & 2 deletions rsocket-transport-netty/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -22,10 +22,9 @@ plugins {
}

dependencies {
api project(':rsocket-core')
api 'io.projectreactor.ipc:reactor-netty'

implementation project(':rsocket-core')

testImplementation project(':rsocket-test')
testImplementation 'org.junit.jupiter:junit-jupiter-api'

Expand Down