Skip to content

Commit

Permalink
update dependency graph based on testing
Browse files Browse the repository at this point in the history
  • Loading branch information
Myron Scott committed Jan 17, 2025
1 parent 3a7e05e commit 24b1b5b
Show file tree
Hide file tree
Showing 8 changed files with 27 additions and 30 deletions.
5 changes: 1 addition & 4 deletions default-configuration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -38,10 +38,7 @@ dependencies {
implementation "org.terracotta:tcconfig-schema:10.7.5"
implementation "commons-cli:commons-cli:1.3.1"

compileOnly project(":common-spi")
compileOnly project(":configuration-provider")
compileOnly project(":server-bootstrap")
compileOnly "org.terracotta:standard-cluster-services:1.9.1"
compileOnly project(":server-api")
compileOnly "org.slf4j:slf4j-api:$slf4jVersion"

testImplementation project(":common-spi")
Expand Down
1 change: 0 additions & 1 deletion examples/extended-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,6 +23,5 @@ description = 'terracotta-core examples exended server'


dependencies {
compileOnly project(':tc-server')
compileOnly project(':common-spi')
}
3 changes: 2 additions & 1 deletion galvan-support/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -35,8 +35,9 @@ configurations {
}

dependencies {
api project(":galvan")

implementation "junit:junit:$junitVersion"
implementation project(":galvan")
implementation project(":test-interfaces")
implementation "org.terracotta:terracotta-utilities-port-chooser:0.0.19"
compileOnly project(':common')
Expand Down
20 changes: 11 additions & 9 deletions passthrough-server/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -31,17 +31,19 @@ jar {
}

dependencies {
implementation "junit:junit:$junitVersion"

compileOnly "com.google.code.findbugs:annotations:3.0.1"

implementation project(':test-interfaces')
implementation "org.terracotta:entity-client-api:$terracottaApisVersion"
implementation "org.terracotta:entity-common-api:$terracottaApisVersion"
implementation "org.terracotta:entity-server-api:$terracottaApisVersion"
implementation "org.terracotta:standard-cluster-services:$terracottaApisVersion"
implementation "org.terracotta:monitoring-support:$terracottaApisVersion"
runtimeOnly project(':tripwire:plugin')
api project(':test-interfaces')
api "org.terracotta:connection-api:$terracottaApisVersion"

api "org.terracotta:entity-client-api:$terracottaApisVersion"
api "org.terracotta:entity-common-api:$terracottaApisVersion"
api "org.terracotta:entity-server-api:$terracottaApisVersion"
api "org.terracotta:standard-cluster-services:$terracottaApisVersion"
api "org.terracotta:monitoring-support:$terracottaApisVersion"
api project(':tripwire:plugin')
api project(':server-spi')

testImplementation "junit:junit:$junitVersion"
testImplementation "org.mockito:mockito-core:$mockitoVersion"
testImplementation "org.hamcrest:hamcrest-all:$hamcrestVersion"
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -31,8 +31,8 @@
import java.util.Set;
import java.util.Vector;
import java.util.concurrent.atomic.AtomicLong;
import java.util.function.Supplier;

import org.junit.Assert;
import org.terracotta.entity.EntityClientService;
import org.terracotta.entity.EntityServerService;
import org.terracotta.entity.ServiceProvider;
Expand Down Expand Up @@ -85,9 +85,15 @@ public PassthroughServer() {

public void registerAsynchronousServerCrasher(IAsynchronousServerCrasher crasher) {
// This should only be set once.
Assert.assertNull(this.crasher);
assertFalse(()->(this.crasher != null));
this.crasher = crasher;
}

public void assertFalse(Supplier<Boolean> p) {
if (p.get()) {
throw new RuntimeException("not false");
}
}

public void setServerName(String serverName) {
this.serverName = serverName;
Expand All @@ -102,12 +108,12 @@ public void setGroupPort(int groupPort) {
}

public void registerServerEntityService(EntityServerService<?, ?> service) {
Assert.assertFalse(this.hasStarted);
assertFalse(()->this.hasStarted);
this.savedServerEntityServices.add(service);
}

public void registerClientEntityService(EntityClientService<?, ?, ? extends EntityMessage, ? extends EntityResponse, ?> service) {
Assert.assertFalse(this.hasStarted);
assertFalse(()->this.hasStarted);
this.entityClientServices.add(service);
}

Expand Down
1 change: 1 addition & 0 deletions server-api/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -39,6 +39,7 @@ dependencies {
compileOnlyApi project(':server-spi')
compileOnlyApi project(':common-api')
compileOnlyApi project(':configuration-provider')
compileOnlyApi project(':server-bootstrap')
}

publishing {
Expand Down
11 changes: 1 addition & 10 deletions server-runtime/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,16 +28,7 @@ base {
}

dependencies {
compileOnlyApi "org.terracotta:entity-common-api:$terracottaApisVersion"
compileOnlyApi "org.terracotta:entity-server-api:$terracottaApisVersion"
compileOnlyApi "org.terracotta:monitoring-support:$terracottaApisVersion"
compileOnlyApi "org.terracotta:packaging-support:$terracottaApisVersion"
compileOnlyApi "org.terracotta:standard-cluster-services:$terracottaApisVersion"

compileOnlyApi project(":tripwire:plugin")
compileOnlyApi project(':server-spi')
compileOnlyApi project(':configuration-provider')
compileOnlyApi project(':common-spi')
compileOnlyApi project(':server-api')

implementation project(':tc-server')
implementation project(':terracotta')
Expand Down
2 changes: 1 addition & 1 deletion server-spi/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -30,6 +30,6 @@ jar {
}

dependencies {
compileOnlyApi project(':common-spi')
api project(':common-spi')
}

0 comments on commit 24b1b5b

Please sign in to comment.