From 18355460e2ccef6ef9283572ea967b7266a6abae Mon Sep 17 00:00:00 2001 From: slinkydeveloper Date: Tue, 14 Nov 2023 15:55:27 +0100 Subject: [PATCH] Fix javadocs and build descriptor --- admin-client/build.gradle.kts | 4 +-- .../restate/sdk/testing/RestateRunner.java | 26 +++++++++---------- 2 files changed, 14 insertions(+), 16 deletions(-) diff --git a/admin-client/build.gradle.kts b/admin-client/build.gradle.kts index 1d048c77..606d5354 100644 --- a/admin-client/build.gradle.kts +++ b/admin-client/build.gradle.kts @@ -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 { @@ -45,8 +45,6 @@ tasks.withType { } tasks.withType().configureEach { - dependsOn("openApiGenerate") - targetCompatibility = "11" sourceCompatibility = "11" diff --git a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunner.java b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunner.java index e17474c8..b5db797f 100644 --- a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunner.java +++ b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunner.java @@ -6,12 +6,12 @@ /** * Restate runner for JUnit 5. Example: * - *

- * @RegisterExtension - * private final static RestateRunner restateRunner = RestateRunnerBuilder.create() - * .withService(new MyService()) - * .buildRunner(); - * + *

{@code
+ *@literal @RegisterExtension
+ * private final static RestateRunner restateRunner = RestateRunnerBuilder.create()
+ *         .withService(new MyService())
+ *         .buildRunner();
+ * }
* *

The runner will deploy the services locally, execute Restate as container using * testcontainers, and register the services. @@ -22,13 +22,13 @@ *

Use the annotations {@link RestateGrpcChannel}, {@link RestateURL} and {@link * RestateAdminClient} to interact with the deployed runtime: * - *

- * @Test - * void testGreet(@RestateGrpcChannel ManagedChannel channel) { - * CounterGrpc.CounterBlockingStub client = CounterGrpc.newBlockingStub(channel); - * // Use client - * } - * + *

{@code
+ *@literal @Test
+ * void testGreet(@literal @RestateGrpcChannel ManagedChannel channel) {
+ *     CounterGrpc.CounterBlockingStub client = CounterGrpc.newBlockingStub(channel);
+ *     // Use client
+ * }
+ * }
*/ public class RestateRunner extends BaseRestateRunner implements BeforeAllCallback { private final ManualRestateRunner deployer;