Skip to content

Commit

Permalink
Fix javadocs and build descriptor
Browse files Browse the repository at this point in the history
  • Loading branch information
slinkydeveloper committed Nov 14, 2023
1 parent 875ff38 commit 1f76a75
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 16 deletions.
4 changes: 1 addition & 3 deletions admin-client/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ dependencies {
}

// Add generated output to source sets
sourceSets { main { java.srcDir("$buildDir/generate-resources/main/src/main/java") } }
sourceSets { main { java.srcDir(tasks.named("openApiGenerate")) } }

// Configure openapi generator
tasks.withType<GenerateTask> {
Expand All @@ -45,8 +45,6 @@ tasks.withType<GenerateTask> {
}

tasks.withType<JavaCompile>().configureEach {
dependsOn("openApiGenerate")

targetCompatibility = "11"
sourceCompatibility = "11"

Expand Down
26 changes: 13 additions & 13 deletions sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunner.java
Original file line number Diff line number Diff line change
Expand Up @@ -6,12 +6,12 @@
/**
* Restate runner for JUnit 5. Example:
*
* <p><code>
* @RegisterExtension
* private final static RestateRunner restateRunner = RestateRunnerBuilder.create()
* .withService(new MyService())
* .buildRunner();
* </code>
* <pre>{@code
* {@literal @}RegisterExtension
* private final static RestateRunner restateRunner = RestateRunnerBuilder.create()
* .withService(new MyService())
* .buildRunner();
* }</pre>
*
* <p>The runner will deploy the services locally, execute Restate as container using
* testcontainers, and register the services.
Expand All @@ -22,13 +22,13 @@
* <p>Use the annotations {@link RestateGrpcChannel}, {@link RestateURL} and {@link
* RestateAdminClient} to interact with the deployed runtime:
*
* <p><code>
* @Test
* void testGreet(@RestateGrpcChannel ManagedChannel channel) {
* CounterGrpc.CounterBlockingStub client = CounterGrpc.newBlockingStub(channel);
* // Use client
* }
* </code>
* <pre>{@code
* {@literal @}Test
* void testGreet({@literal @}RestateGrpcChannel ManagedChannel channel) {
* CounterGrpc.CounterBlockingStub client = CounterGrpc.newBlockingStub(channel);
* // Use client
* }
* }</pre>
*/
public class RestateRunner extends BaseRestateRunner implements BeforeAllCallback {
private final ManualRestateRunner deployer;
Expand Down

0 comments on commit 1f76a75

Please sign in to comment.