Skip to content

Commit

Permalink
fix issue with autoconfiguring
Browse files Browse the repository at this point in the history
  • Loading branch information
OlegDokuka committed Dec 25, 2018
1 parent 899efc6 commit 1c854b4
Show file tree
Hide file tree
Showing 5 changed files with 16 additions and 3 deletions.
9 changes: 9 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,6 +17,7 @@ allprojects {
apply plugin: 'java'
apply plugin: 'eclipse'
apply plugin: 'io.spring.dependency-management'
apply plugin: 'maven-publish'

group = 'io.rsocket.spring.boot'
version = '0.0.1.RELEASE'
Expand Down Expand Up @@ -45,4 +46,12 @@ allprojects {
}
}
}

publishing {
publications {
maven(MavenPublication) {
from components.java
}
}
}
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
rootProject.name = 'demo'
rootProject.name = 'spring-boot-rsocket'


include 'spring-boot-autoconfigure-rsocket'
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@

@ConfigurationProperties(prefix = "rsocket.server", ignoreUnknownFields = true)
public class RSocketServerProperties {
private String path;
private String path = "/rs";

public String getPath() {
return path;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -62,13 +62,15 @@ public ReactorResourceFactory reactorServerResourceFactory() {
}

@Bean
public RSocketNettyReactiveWebServerFactory nettyReactiveWebServerFactory(
public RSocketNettyReactiveWebServerFactory rSocketNettyReactiveWebServerFactory(
ReactorResourceFactory resourceFactory,
RSocketServerProperties rSocketServerProperties,
SocketAcceptor socketAcceptor
) {
RSocketNettyReactiveWebServerFactory serverFactory = new RSocketNettyReactiveWebServerFactory();
serverFactory.setResourceFactory(resourceFactory);
serverFactory.setSocketAcceptor(socketAcceptor);
serverFactory.setPath(rSocketServerProperties.getPath());
return serverFactory;
}
}
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,2 @@
org.springframework.boot.autoconfigure.EnableAutoConfiguration=\
io.rsocket.spring.boot.RSocketWebServerFactoryAutoConfiguration

0 comments on commit 1c854b4

Please sign in to comment.