Skip to content

Commit

Permalink
Merge pull request #24 from estigma88/#23-conditionalonbean-issue
Browse files Browse the repository at this point in the history
Updating starters to use correctly the @ConditionalOnBean features
  • Loading branch information
estigma88 authored Aug 21, 2018
2 parents 409e414 + 8789c07 commit 8ebb388
Show file tree
Hide file tree
Showing 6 changed files with 13 additions and 11 deletions.
8 changes: 5 additions & 3 deletions main/desktop-network-gui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,14 @@ repositories {
mavenCentral()
}

version = '2.0.1'
version = '2.0.2'

dependencies {
compile("org.springframework.boot:spring-boot-starter:1.5.10.RELEASE")

compile group: 'com.github.estigma88', name: 'jdhtuq-chord-spring-boot-starter', version: '2.0.0'
compile group: 'com.github.estigma88', name: 'jdhtuq-dhash-spring-boot-starter', version: '2.0.0'
//compile group: 'com.github.estigma88', name: 'jdhtuq-chord-spring-boot-starter', version: '2.0.0'
//compile group: 'com.github.estigma88', name: 'jdhtuq-dhash-spring-boot-starter', version: '2.0.0'
compile project(':main:starters:chord-spring-boot-starter')
compile project(':main:starters:dhash-spring-boot-starter')
compile group: 'com.github.estigma88', name: 'jdhtuq-socket-communication-spring-boot-starter', version: '2.0.0'
}
6 changes: 3 additions & 3 deletions main/desktop-structure-gui/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,12 +8,12 @@ repositories {
mavenCentral()
}

version = '2.0.1'
version = '2.0.2'

dependencies {
compile("org.springframework.boot:spring-boot-starter:1.5.10.RELEASE")

compile group: 'com.github.estigma88', name: 'jdhtuq-chord-spring-boot-starter', version: '2.0.0'
compile group: 'com.github.estigma88', name: 'jdhtuq-dhash-spring-boot-starter', version: '2.0.0'
compile project(':main:starters:chord-spring-boot-starter')
compile project(':main:starters:dhash-spring-boot-starter')
compile group: 'com.github.estigma88', name: 'jdhtuq-data-structure-communication-spring-boot-starter', version: '2.0.0'
}
2 changes: 1 addition & 1 deletion main/starters/chord-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
}

group = 'com.github.estigma88'
version = '2.0.0'
version = '2.0.1'

sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -43,7 +43,7 @@ public OverlayNodeFactory overlayNodeFactory(CommunicationManager communicationM
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean(name = {"communicationManagerChord"})
public CommunicationManager communicationManagerChord(CommunicationManagerFactory communicationManagerFactory) {
return communicationManagerFactory.newCommunicationManager("chord");
}
Expand Down Expand Up @@ -73,7 +73,7 @@ public KeyFactory keyFactory(HashingGenerator hashingGenerator) {
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean(name = "scheduledStableRing")
public ScheduledExecutorService scheduledStableRing() {
return Executors.newScheduledThreadPool(chordProperties.getStableRingThreadPool());
}
Expand Down
2 changes: 1 addition & 1 deletion main/starters/dhash-spring-boot-starter/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ plugins {
}

group = 'com.github.estigma88'
version = '2.0.0'
version = '2.0.1'

sourceCompatibility = 1.8

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -35,7 +35,7 @@ public StorageNodeFactory storageNodeFactory(OverlayNodeFactory overlayNodeFacto
}

@Bean
@ConditionalOnMissingBean
@ConditionalOnMissingBean(name = {"communicationManagerDHash"})
public CommunicationManager communicationManagerDHash(CommunicationManagerFactory communicationManagerFactory) {
return communicationManagerFactory.newCommunicationManager("dhash");
}
Expand Down

0 comments on commit 8ebb388

Please sign in to comment.