diff --git a/LICENSE b/LICENSE new file mode 100644 index 000000000..8963cdde5 --- /dev/null +++ b/LICENSE @@ -0,0 +1,21 @@ + MIT License + + Copyright (c) 2023 - Restate Software, Inc., Restate GmbH + + Permission is hereby granted, free of charge, to any person obtaining a copy + of this software and associated documentation files (the "Software"), to deal + in the Software without restriction, including without limitation the rights + to use, copy, modify, merge, publish, distribute, sublicense, and/or sell + copies of the Software, and to permit persons to whom the Software is + furnished to do so, subject to the following conditions: + + The above copyright notice and this permission notice shall be included in all + copies or substantial portions of the Software. + + THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR + IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY, + FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE + AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER + LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, + OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE + SOFTWARE diff --git a/build.gradle.kts b/build.gradle.kts index bb3fd638f..9db07a08f 100644 --- a/build.gradle.kts +++ b/build.gradle.kts @@ -30,11 +30,37 @@ allprojects { configure { java { + targetExclude("build/generated/**/*.java") + googleJavaFormat() - targetExclude("build/generated/**/*.java") + licenseHeaderFile("$rootDir/config/license-header") + } + + format("proto") { + target("**/*.proto") + + // Exclude proto and service-protocol directories because those get the license header from + // their repos. + targetExclude( + fileTree("$rootDir/sdk-core/src/main/proto") { include("**/*.*") }, + fileTree("$rootDir/sdk-core-impl/src/main/service-protocol") { include("**/*.*") }) + + licenseHeaderFile("$rootDir/config/license-header", "syntax") + } + + kotlin { + targetExclude("build/generated/**/*.kt") + ktfmt() + licenseHeaderFile("$rootDir/config/license-header") } + kotlinGradle { ktfmt() } + + format("properties") { + target("**/*.properties") + trimTrailingWhitespace() + } } tasks { check { dependsOn(checkLicense) } } diff --git a/config/license-header b/config/license-header new file mode 100644 index 000000000..0e5fe0c8e --- /dev/null +++ b/config/license-header @@ -0,0 +1,8 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE \ No newline at end of file diff --git a/examples/build.gradle.kts b/examples/build.gradle.kts index 17cc2e3ab..ab9818d81 100644 --- a/examples/build.gradle.kts +++ b/examples/build.gradle.kts @@ -44,13 +44,6 @@ dependencies { implementation(coreLibs.log4j.core) } -configure { - kotlin { - ktfmt() - targetExclude("build/generated/**/*.kt") - } -} - val pluginJar = file( "${project.rootProject.rootDir}/protoc-gen-restate-java-blocking/build/libs/protoc-gen-restate-java-blocking-${project.version}-all.jar") diff --git a/examples/src/main/java/dev/restate/sdk/examples/Counter.java b/examples/src/main/java/dev/restate/sdk/examples/Counter.java index 14303bc66..2a56b9cd3 100644 --- a/examples/src/main/java/dev/restate/sdk/examples/Counter.java +++ b/examples/src/main/java/dev/restate/sdk/examples/Counter.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.examples; import dev.restate.sdk.blocking.RestateContext; diff --git a/examples/src/main/java/dev/restate/sdk/examples/LambdaFactory.java b/examples/src/main/java/dev/restate/sdk/examples/LambdaFactory.java index d9fe8951f..4f3572c3b 100644 --- a/examples/src/main/java/dev/restate/sdk/examples/LambdaFactory.java +++ b/examples/src/main/java/dev/restate/sdk/examples/LambdaFactory.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.examples; import dev.restate.sdk.lambda.LambdaRestateServer; diff --git a/examples/src/main/java/dev/restate/sdk/examples/VanillaGrpcCounter.java b/examples/src/main/java/dev/restate/sdk/examples/VanillaGrpcCounter.java index d57aea91a..f26e12bff 100644 --- a/examples/src/main/java/dev/restate/sdk/examples/VanillaGrpcCounter.java +++ b/examples/src/main/java/dev/restate/sdk/examples/VanillaGrpcCounter.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.examples; import com.google.protobuf.Empty; diff --git a/examples/src/main/kotlin/dev/restate/sdk/examples/CounterKt.kt b/examples/src/main/kotlin/dev/restate/sdk/examples/CounterKt.kt index 00b6d4e85..49c27a19f 100644 --- a/examples/src/main/kotlin/dev/restate/sdk/examples/CounterKt.kt +++ b/examples/src/main/kotlin/dev/restate/sdk/examples/CounterKt.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.examples import com.google.protobuf.Empty diff --git a/examples/src/main/proto/counter.proto b/examples/src/main/proto/counter.proto index 514b8c3dc..065e1ac2d 100644 --- a/examples/src/main/proto/counter.proto +++ b/examples/src/main/proto/counter.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; package counter; diff --git a/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/CodeGenUtils.java b/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/CodeGenUtils.java index 80a27da6c..4a3dcfb36 100644 --- a/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/CodeGenUtils.java +++ b/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/CodeGenUtils.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking.gen; import com.google.common.html.HtmlEscapers; diff --git a/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/JavaBlockingGen.java b/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/JavaBlockingGen.java index db6fdeabd..e140b883f 100644 --- a/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/JavaBlockingGen.java +++ b/protoc-gen-restate-java-blocking/src/main/java/dev/restate/sdk/blocking/gen/JavaBlockingGen.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking.gen; import static dev.restate.sdk.blocking.gen.CodeGenUtils.*; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/BaseSuspendableCallbackStateMachine.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/BaseSuspendableCallbackStateMachine.java index fe53bda3b..b0a1cf2a2 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/BaseSuspendableCallbackStateMachine.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/BaseSuspendableCallbackStateMachine.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import java.util.function.Consumer; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/CallbackHandle.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/CallbackHandle.java index 5f4c98a6e..cb06e096f 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/CallbackHandle.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/CallbackHandle.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import java.util.function.Consumer; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/DeferredResults.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/DeferredResults.java index 3484aaf77..f524dd2ed 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/DeferredResults.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/DeferredResults.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import dev.restate.sdk.core.syscalls.DeferredResult; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Entries.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Entries.java index 659ddc0c9..716de1ec8 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Entries.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Entries.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.ByteString; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExceptionCatchingInvocationInputSubscriber.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExceptionCatchingInvocationInputSubscriber.java index bb7baf7ca..850cb8547 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExceptionCatchingInvocationInputSubscriber.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExceptionCatchingInvocationInputSubscriber.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import java.util.concurrent.Flow; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExecutorSwitchingWrappers.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExecutorSwitchingWrappers.java index 5ab8c63a7..75f6f7e6f 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExecutorSwitchingWrappers.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ExecutorSwitchingWrappers.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.ByteString; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcContextDataProvider.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcContextDataProvider.java index 64d3a3646..4ea4a37e9 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcContextDataProvider.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcContextDataProvider.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import dev.restate.sdk.core.InvocationId; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcServerCallListenerAdaptor.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcServerCallListenerAdaptor.java index 8adff9379..dbfdb217a 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcServerCallListenerAdaptor.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/GrpcServerCallListenerAdaptor.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import io.grpc.Metadata; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/IncomingEntriesStateMachine.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/IncomingEntriesStateMachine.java index daaff1825..a38a0386f 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/IncomingEntriesStateMachine.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/IncomingEntriesStateMachine.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InputPublisherState.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InputPublisherState.java index af5b04d2e..29784e3fc 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InputPublisherState.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InputPublisherState.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import dev.restate.sdk.core.AbortedExecutionException; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationFlow.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationFlow.java index 40da1e1d2..b16e9484c 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationFlow.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationFlow.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationHandler.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationHandler.java index 56027a1c4..00fd9fcec 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationHandler.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationHandler.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; /** diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationIdImpl.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationIdImpl.java index 10cd58de6..7a71ab8a1 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationIdImpl.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationIdImpl.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import dev.restate.sdk.core.InvocationId; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationStateMachine.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationStateMachine.java index 162fae666..30658cd0c 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationStateMachine.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/InvocationStateMachine.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.ByteString; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageHeader.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageHeader.java index b4df24d7a..587585f86 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageHeader.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageHeader.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageType.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageType.java index 9e742a087..ca8490652 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageType.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/MessageType.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ProtocolException.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ProtocolException.java index 28993b75b..e61c78670 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ProtocolException.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ProtocolException.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResultStateMachine.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResultStateMachine.java index e8fdd42e7..56691dd93 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResultStateMachine.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResultStateMachine.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import dev.restate.generated.service.protocol.Protocol; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResults.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResults.java index 3730070de..601bda28d 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResults.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ReadyResults.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import dev.restate.sdk.core.TerminalException; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateGrpcServer.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateGrpcServer.java index 147f20e97..2a5de2e2d 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateGrpcServer.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateGrpcServer.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCall.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCall.java index 55eb19906..e79f75d9f 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCall.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCall.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCallListener.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCallListener.java index 23824dad7..f0f5b973a 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCallListener.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/RestateServerCallListener.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; /** diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandler.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandler.java index d31ab877f..1dc668c83 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandler.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandler.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.DescriptorProtos; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SideEffectAckStateMachine.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SideEffectAckStateMachine.java index f834006b5..398ac7b56 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SideEffectAckStateMachine.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SideEffectAckStateMachine.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; /** State machine tracking side effects acks */ diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SuspendableCallback.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SuspendableCallback.java index 029d28c9e..21b4a6c0f 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SuspendableCallback.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SuspendableCallback.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; interface SuspendableCallback { diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsImpl.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsImpl.java index cdad68ef9..c8170e5e3 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsImpl.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsImpl.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.Util.toProtocolFailure; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsInternal.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsInternal.java index e7a04c1d7..ced86ed0f 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsInternal.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/SyscallsInternal.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import dev.restate.sdk.core.impl.DeferredResults.DeferredResultInternal; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Tracing.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Tracing.java index f2fee3c6e..6766e346d 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Tracing.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Tracing.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import io.opentelemetry.api.common.AttributeKey; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/UserStateStore.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/UserStateStore.java index c9be8ebda..ba223970c 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/UserStateStore.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/UserStateStore.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.ByteString; diff --git a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Util.java b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Util.java index b2f8c9105..151fd61a5 100644 --- a/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Util.java +++ b/sdk-core-impl/src/main/java/dev/restate/sdk/core/impl/Util.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import com.google.protobuf.MessageLite; diff --git a/sdk-core-impl/src/main/sdk-proto/dev/restate/sdk/java.proto b/sdk-core-impl/src/main/sdk-proto/dev/restate/sdk/java.proto index e02fd5992..0e31615eb 100644 --- a/sdk-core-impl/src/main/sdk-proto/dev/restate/sdk/java.proto +++ b/sdk-core-impl/src/main/sdk-proto/dev/restate/sdk/java.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; package dev.restate.sdk.java; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AssertUtils.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AssertUtils.java index ecbc92bff..0e166df78 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AssertUtils.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AssertUtils.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AwakeableIdTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AwakeableIdTestSuite.java index 637bcccab..e9daf6d1e 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AwakeableIdTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/AwakeableIdTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.ProtoUtils.inputMessage; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/DeferredTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/DeferredTestSuite.java index 060f951d8..8360d3ffc 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/DeferredTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/DeferredTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.ProtoUtils.*; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/EagerStateTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/EagerStateTestSuite.java index 21277e74b..f0ed348ac 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/EagerStateTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/EagerStateTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.ProtoUtils.*; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/FlowUtils.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/FlowUtils.java index 9bc31ad20..2c0ee2f63 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/FlowUtils.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/FlowUtils.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import java.util.*; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/InvocationIdTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/InvocationIdTestSuite.java index 5b46d7449..bc8c0124a 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/InvocationIdTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/InvocationIdTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.ProtoUtils.*; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockMultiThreaded.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockMultiThreaded.java index a659bca32..36cb7864a 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockMultiThreaded.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockMultiThreaded.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockSingleThread.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockSingleThread.java index be68bb522..a6b80a355 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockSingleThread.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/MockSingleThread.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/OnlyInputAndOutputTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/OnlyInputAndOutputTestSuite.java index dcf0b8bf2..eca6968b1 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/OnlyInputAndOutputTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/OnlyInputAndOutputTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.ProtoUtils.*; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ProtoUtils.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ProtoUtils.java index a0458febf..aca969c00 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ProtoUtils.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ProtoUtils.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.Util.toProtocolFailure; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandlerTest.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandlerTest.java index e8f64d357..39a244221 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandlerTest.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/ServiceDiscoveryHandlerTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SideEffectTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SideEffectTestSuite.java index b016651d2..013168e8e 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SideEffectTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SideEffectTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.AssertUtils.containsOnlyExactErrorMessage; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SleepTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SleepTestSuite.java index ae35835c8..17ba0d49d 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SleepTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/SleepTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.ProtoUtils.*; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateMachineFailuresTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateMachineFailuresTestSuite.java index e73cfa3b1..63f6bf410 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateMachineFailuresTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateMachineFailuresTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.AssertUtils.*; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateTestSuite.java index 4bafc176e..8b6d768ea 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/StateTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.AssertUtils.containsOnlyExactErrorMessage; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestDefinitions.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestDefinitions.java index 753241967..3e5388156 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestDefinitions.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestDefinitions.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.ProtoUtils.headerFromMessage; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestRunner.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestRunner.java index 7ca4551cb..5f73d2398 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestRunner.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/TestRunner.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static java.lang.String.format; diff --git a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/UserFailuresTestSuite.java b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/UserFailuresTestSuite.java index 98fba6e65..f8e8d4666 100644 --- a/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/UserFailuresTestSuite.java +++ b/sdk-core-impl/src/test/java/dev/restate/sdk/core/impl/UserFailuresTestSuite.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.impl; import static dev.restate.sdk.core.impl.AssertUtils.*; diff --git a/sdk-core-impl/src/test/proto/codegen.proto b/sdk-core-impl/src/test/proto/codegen.proto index 239a829c5..ecbf49d62 100644 --- a/sdk-core-impl/src/test/proto/codegen.proto +++ b/sdk-core-impl/src/test/proto/codegen.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; option java_multiple_files = true; diff --git a/sdk-core-impl/src/test/proto/common.proto b/sdk-core-impl/src/test/proto/common.proto index 9ab5e2cb6..746d3efc9 100644 --- a/sdk-core-impl/src/test/proto/common.proto +++ b/sdk-core-impl/src/test/proto/common.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; option java_multiple_files = true; diff --git a/sdk-core-impl/src/test/proto/counter.proto b/sdk-core-impl/src/test/proto/counter.proto index 1b4aa850e..3e05898e7 100644 --- a/sdk-core-impl/src/test/proto/counter.proto +++ b/sdk-core-impl/src/test/proto/counter.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; package counter; diff --git a/sdk-core-impl/src/test/proto/greeter.proto b/sdk-core-impl/src/test/proto/greeter.proto index b6f6f2b60..137594103 100644 --- a/sdk-core-impl/src/test/proto/greeter.proto +++ b/sdk-core-impl/src/test/proto/greeter.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; option java_multiple_files = true; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/AbortedExecutionException.java b/sdk-core/src/main/java/dev/restate/sdk/core/AbortedExecutionException.java index cb9a4f6ad..b58872727 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/AbortedExecutionException.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/AbortedExecutionException.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; /** You MUST NOT catch this exception. */ diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/BindableBlockingService.java b/sdk-core/src/main/java/dev/restate/sdk/core/BindableBlockingService.java index 5552f1acb..1370ea7e2 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/BindableBlockingService.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/BindableBlockingService.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; import io.grpc.BindableService; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/BindableNonBlockingService.java b/sdk-core/src/main/java/dev/restate/sdk/core/BindableNonBlockingService.java index ed0477385..b43ffb0e9 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/BindableNonBlockingService.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/BindableNonBlockingService.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; import io.grpc.BindableService; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/CoreSerdes.java b/sdk-core/src/main/java/dev/restate/sdk/core/CoreSerdes.java index 2c5fe875c..7e5baa210 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/CoreSerdes.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/CoreSerdes.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; import com.google.protobuf.ByteString; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/InvocationId.java b/sdk-core/src/main/java/dev/restate/sdk/core/InvocationId.java index 01a7aad11..75448ad60 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/InvocationId.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/InvocationId.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; import io.grpc.Context; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/Serde.java b/sdk-core/src/main/java/dev/restate/sdk/core/Serde.java index 2b01a7175..43d1de920 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/Serde.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/Serde.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; import com.google.protobuf.ByteString; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/StateKey.java b/sdk-core/src/main/java/dev/restate/sdk/core/StateKey.java index bf1a09ecc..045258c9d 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/StateKey.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/StateKey.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; /** diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/TerminalException.java b/sdk-core/src/main/java/dev/restate/sdk/core/TerminalException.java index 3c2af979b..ff1db9ab8 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/TerminalException.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/TerminalException.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; /** When thrown in a Restate service method, it will complete the invocation with an error. */ diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingFunction.java b/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingFunction.java index dc659ba7a..b43525801 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingFunction.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingFunction.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.function; import java.util.function.Function; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingRunnable.java b/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingRunnable.java index b078ed256..07ca0c723 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingRunnable.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingRunnable.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.function; /** Like {@link Runnable} but can throw checked exceptions. */ diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingSupplier.java b/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingSupplier.java index 0dd0fe801..900030b7b 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingSupplier.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/function/ThrowingSupplier.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.function; /** Like {@link java.util.function.Supplier} but can throw checked exceptions. */ diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/DeferredResult.java b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/DeferredResult.java index 88ab72327..c85f621f2 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/DeferredResult.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/DeferredResult.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.syscalls; import javax.annotation.Nullable; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/EnterSideEffectSyscallCallback.java b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/EnterSideEffectSyscallCallback.java index 045939f6a..ddcd64a77 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/EnterSideEffectSyscallCallback.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/EnterSideEffectSyscallCallback.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.syscalls; public interface EnterSideEffectSyscallCallback extends ExitSideEffectSyscallCallback { diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ExitSideEffectSyscallCallback.java b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ExitSideEffectSyscallCallback.java index 531068320..505d2f3b0 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ExitSideEffectSyscallCallback.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ExitSideEffectSyscallCallback.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.syscalls; import com.google.protobuf.ByteString; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResult.java b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResult.java index b4b543805..3f448727b 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResult.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResult.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.syscalls; import dev.restate.sdk.core.TerminalException; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResultHolder.java b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResultHolder.java index f5fa5d6f0..9ad58505f 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResultHolder.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/ReadyResultHolder.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.syscalls; import java.util.function.Function; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/SyscallCallback.java b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/SyscallCallback.java index 5a747836e..8a3d835c9 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/SyscallCallback.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/SyscallCallback.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.syscalls; import java.util.concurrent.CompletableFuture; diff --git a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/Syscalls.java b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/Syscalls.java index cb3c500c7..d88e04a98 100644 --- a/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/Syscalls.java +++ b/sdk-core/src/main/java/dev/restate/sdk/core/syscalls/Syscalls.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.syscalls; import com.google.protobuf.ByteString; diff --git a/sdk-core/src/test/java/dev/restate/sdk/core/CoreSerdesTest.java b/sdk-core/src/test/java/dev/restate/sdk/core/CoreSerdesTest.java index c95c4d46d..d66a5b326 100644 --- a/sdk-core/src/test/java/dev/restate/sdk/core/CoreSerdesTest.java +++ b/sdk-core/src/test/java/dev/restate/sdk/core/CoreSerdesTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-http-vertx/build.gradle.kts b/sdk-http-vertx/build.gradle.kts index 59fdbe111..aca92ee30 100644 --- a/sdk-http-vertx/build.gradle.kts +++ b/sdk-http-vertx/build.gradle.kts @@ -49,13 +49,6 @@ dependencies { testImplementation(vertxLibs.vertx.kotlin.coroutines) } -configure { - kotlin { - ktfmt() - targetExclude("build/generated/**/*.kt") - } -} - protobuf { plugins { id("grpc") { artifact = "io.grpc:protoc-gen-grpc-java:${coreLibs.versions.grpc.get()}" } diff --git a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpRequestFlowAdapter.java b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpRequestFlowAdapter.java index 07226e760..31006b754 100644 --- a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpRequestFlowAdapter.java +++ b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpRequestFlowAdapter.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx; import dev.restate.sdk.core.impl.InvocationFlow; diff --git a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpResponseFlowAdapter.java b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpResponseFlowAdapter.java index 57eef996d..23cac687c 100644 --- a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpResponseFlowAdapter.java +++ b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/HttpResponseFlowAdapter.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx; import com.google.protobuf.MessageLite; diff --git a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageDecoder.java b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageDecoder.java index fe4907463..c65d7661a 100644 --- a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageDecoder.java +++ b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageDecoder.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx; import com.google.protobuf.InvalidProtocolBufferException; diff --git a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageEncoder.java b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageEncoder.java index c22f3a299..280d3ce1b 100644 --- a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageEncoder.java +++ b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/MessageEncoder.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx; import com.google.protobuf.MessageLite; diff --git a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RequestHttpServerHandler.java b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RequestHttpServerHandler.java index 08218afb3..c6774cc50 100644 --- a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RequestHttpServerHandler.java +++ b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RequestHttpServerHandler.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx; import static io.netty.handler.codec.http.HttpHeaderNames.CONTENT_TYPE; diff --git a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RestateHttpEndpointBuilder.java b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RestateHttpEndpointBuilder.java index 100796a04..b1d1b5287 100644 --- a/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RestateHttpEndpointBuilder.java +++ b/sdk-http-vertx/src/main/java/dev/restate/sdk/http/vertx/RestateHttpEndpointBuilder.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx; import dev.restate.generated.service.discovery.Discovery; diff --git a/sdk-http-vertx/src/test/java/dev/restate/sdk/http/vertx/testservices/BlockingGreeterService.java b/sdk-http-vertx/src/test/java/dev/restate/sdk/http/vertx/testservices/BlockingGreeterService.java index 2054b5d9f..4227270c8 100644 --- a/sdk-http-vertx/src/test/java/dev/restate/sdk/http/vertx/testservices/BlockingGreeterService.java +++ b/sdk-http-vertx/src/test/java/dev/restate/sdk/http/vertx/testservices/BlockingGreeterService.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx.testservices; import dev.restate.sdk.blocking.RestateBlockingService; diff --git a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTestExecutor.kt b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTestExecutor.kt index 114fb2a71..b4c024428 100644 --- a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTestExecutor.kt +++ b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTestExecutor.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx import com.google.protobuf.MessageLite diff --git a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTests.kt b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTests.kt index 29e7c8bb0..c1d50a374 100644 --- a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTests.kt +++ b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/HttpVertxTests.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx import com.google.protobuf.ByteString diff --git a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/RestateHttpEndpointTest.kt b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/RestateHttpEndpointTest.kt index 4665e0482..4d0efd708 100644 --- a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/RestateHttpEndpointTest.kt +++ b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/RestateHttpEndpointTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx import com.google.protobuf.ByteString diff --git a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/testservices/GreeterKtService.kt b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/testservices/GreeterKtService.kt index e177e96a6..56d480c09 100644 --- a/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/testservices/GreeterKtService.kt +++ b/sdk-http-vertx/src/test/kotlin/dev/restate/sdk/http/vertx/testservices/GreeterKtService.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.http.vertx.testservices import dev.restate.sdk.core.impl.testservices.GreeterGrpcKt diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AnyAwaitable.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AnyAwaitable.java index 2e9c2164e..e5a601347 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AnyAwaitable.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AnyAwaitable.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.syscalls.DeferredResult; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awaitable.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awaitable.java index 0cee2e831..bc22a90b1 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awaitable.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awaitable.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.AbortedExecutionException; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awakeable.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awakeable.java index 9522f04ab..cee7351e6 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awakeable.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Awakeable.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import com.google.protobuf.ByteString; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AwakeableHandle.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AwakeableHandle.java index 1b6737bd2..5009a90d7 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AwakeableHandle.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/AwakeableHandle.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.Serde; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/GrpcChannelAdapter.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/GrpcChannelAdapter.java index e521ccba3..8d9ea9a29 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/GrpcChannelAdapter.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/GrpcChannelAdapter.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import io.grpc.*; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateBlockingService.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateBlockingService.java index 62b2b3d56..6943cbab0 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateBlockingService.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateBlockingService.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.BindableBlockingService; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContext.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContext.java index f6111550d..2b968c76a 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContext.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContext.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.*; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContextImpl.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContextImpl.java index b2c26ef21..feb66a0eb 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContextImpl.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/RestateContextImpl.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import com.google.protobuf.ByteString; diff --git a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Util.java b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Util.java index 3546e953e..a9babeb1e 100644 --- a/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Util.java +++ b/sdk-java-blocking/src/main/java/dev/restate/sdk/blocking/Util.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import com.google.protobuf.ByteString; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/AwakeableIdTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/AwakeableIdTest.java index 7e964d219..cd87117b1 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/AwakeableIdTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/AwakeableIdTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.greetingResponse; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/DeferredTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/DeferredTest.java index 285b2367c..242350490 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/DeferredTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/DeferredTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.greetingRequest; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/EagerStateTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/EagerStateTest.java index 48aab6b7f..4b41cfb64 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/EagerStateTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/EagerStateTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/GrpcChannelAdapterTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/GrpcChannelAdapterTest.java index e395a0cc9..9719fea37 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/GrpcChannelAdapterTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/GrpcChannelAdapterTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.*; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/InvocationIdTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/InvocationIdTest.java index b55985def..8b6629ce9 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/InvocationIdTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/InvocationIdTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.greetingResponse; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/JavaBlockingTests.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/JavaBlockingTests.java index 4d63f0770..3ce85d62b 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/JavaBlockingTests.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/JavaBlockingTests.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.impl.MockMultiThreaded; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/OnlyInputAndOutputTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/OnlyInputAndOutputTest.java index 078d2d06e..67092c7a1 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/OnlyInputAndOutputTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/OnlyInputAndOutputTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.impl.OnlyInputAndOutputTestSuite; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/RestateCodegenTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/RestateCodegenTest.java index 9f0b115dd..b5af1f948 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/RestateCodegenTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/RestateCodegenTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.*; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SideEffectTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SideEffectTest.java index f066c86c5..c57db8a92 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SideEffectTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SideEffectTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.greetingRequest; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SleepTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SleepTest.java index d03bc1896..feaa57869 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SleepTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/SleepTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import dev.restate.sdk.core.impl.SleepTestSuite; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateMachineFailuresTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateMachineFailuresTest.java index 2e55ceec7..b1e0affff 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateMachineFailuresTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateMachineFailuresTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.greetingResponse; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateTest.java index b8b35761d..8d84e7158 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/StateTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.ProtoUtils.greetingResponse; diff --git a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/UserFailuresTest.java b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/UserFailuresTest.java index 503f4b77a..2eb6a06ca 100644 --- a/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/UserFailuresTest.java +++ b/sdk-java-blocking/src/test/java/dev/restate/sdk/blocking/UserFailuresTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.blocking; import static dev.restate.sdk.core.impl.AssertUtils.containsOnlyExactErrorMessage; diff --git a/sdk-kotlin/build.gradle.kts b/sdk-kotlin/build.gradle.kts index b8139aa4c..5fd94eda5 100644 --- a/sdk-kotlin/build.gradle.kts +++ b/sdk-kotlin/build.gradle.kts @@ -34,13 +34,6 @@ dependencies { testProtobuf(project(":sdk-core-impl", "testArchive")) } -configure { - kotlin { - ktfmt() - targetExclude("build/generated/**/*.kt") - } -} - protobuf { plugins { id("grpc") { artifact = "io.grpc:protoc-gen-grpc-java:${coreLibs.versions.grpc.get()}" } diff --git a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Awaitables.kt b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Awaitables.kt index d5b3d7885..bcebcf191 100644 --- a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Awaitables.kt +++ b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Awaitables.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import com.google.protobuf.ByteString diff --git a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/RestateContextImpl.kt b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/RestateContextImpl.kt index 2204390ca..000b2db8a 100644 --- a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/RestateContextImpl.kt +++ b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/RestateContextImpl.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import com.google.protobuf.ByteString diff --git a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Util.kt b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Util.kt index c0a67f414..9ac00be96 100644 --- a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Util.kt +++ b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/Util.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import com.google.protobuf.ByteString diff --git a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/api.kt b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/api.kt index 33d310563..ca6db137c 100644 --- a/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/api.kt +++ b/sdk-kotlin/src/main/kotlin/dev/restate/sdk/kotlin/api.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.BindableNonBlockingService diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/AwakeableIdTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/AwakeableIdTest.kt index 66b286a7e..e497c886c 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/AwakeableIdTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/AwakeableIdTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.CoreSerdes diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/DeferredTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/DeferredTest.kt index 5157d7356..b2d32678e 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/DeferredTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/DeferredTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.CoreSerdes diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/EagerStateTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/EagerStateTest.kt index b175ac6a0..7818183c0 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/EagerStateTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/EagerStateTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.CoreSerdes diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/InvocationIdTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/InvocationIdTest.kt index c85b21c54..39dd9f0f5 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/InvocationIdTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/InvocationIdTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.InvocationId diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/KotlinCoroutinesTests.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/KotlinCoroutinesTests.kt index 41754fc20..ead2ed2ee 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/KotlinCoroutinesTests.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/KotlinCoroutinesTests.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.impl.MockMultiThreaded diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/OnlyInputAndOutputTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/OnlyInputAndOutputTest.kt index db56e49b4..3b64bb5a1 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/OnlyInputAndOutputTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/OnlyInputAndOutputTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.impl.OnlyInputAndOutputTestSuite diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SideEffectTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SideEffectTest.kt index 204926a5b..af14eb312 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SideEffectTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SideEffectTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.CoreSerdes diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SleepTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SleepTest.kt index 98b5a95ba..b1763361a 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SleepTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/SleepTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.impl.SleepTestSuite diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateMachineFailuresTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateMachineFailuresTest.kt index e741b3059..7e230d79a 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateMachineFailuresTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateMachineFailuresTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.Serde diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateTest.kt index 71094662f..9c9dcb734 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/StateTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.CoreSerdes diff --git a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/UserFailuresTest.kt b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/UserFailuresTest.kt index f8f182dcb..e510bd282 100644 --- a/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/UserFailuresTest.kt +++ b/sdk-kotlin/src/test/kotlin/dev/restate/sdk/kotlin/UserFailuresTest.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.kotlin import dev.restate.sdk.core.TerminalException diff --git a/sdk-lambda/build.gradle.kts b/sdk-lambda/build.gradle.kts index 81698a8e7..2730f337d 100644 --- a/sdk-lambda/build.gradle.kts +++ b/sdk-lambda/build.gradle.kts @@ -43,13 +43,6 @@ dependencies { testImplementation(kotlinLibs.kotlinx.coroutines) } -configure { - kotlin { - ktfmt() - targetExclude("build/generated/**/*.kt") - } -} - protobuf { plugins { id("grpc") { artifact = "io.grpc:protoc-gen-grpc-java:${coreLibs.versions.grpc.get()}" } diff --git a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaFlowAdapters.java b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaFlowAdapters.java index 558a1e1bc..c2a6a45ed 100644 --- a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaFlowAdapters.java +++ b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaFlowAdapters.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda; import com.google.protobuf.InvalidProtocolBufferException; diff --git a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaHandler.java b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaHandler.java index 285c32fc2..9ef1f6b52 100644 --- a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaHandler.java +++ b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaHandler.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda; import com.amazonaws.services.lambda.runtime.Context; diff --git a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServer.java b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServer.java index 01fd03212..fea09f2fc 100644 --- a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServer.java +++ b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServer.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda; import static dev.restate.sdk.lambda.LambdaFlowAdapters.*; diff --git a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerBuilder.java b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerBuilder.java index aad5ecc2a..fb72d030a 100644 --- a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerBuilder.java +++ b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerBuilder.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda; import dev.restate.generated.service.discovery.Discovery; diff --git a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerFactory.java b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerFactory.java index 661ef1db5..0c961c0e8 100644 --- a/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerFactory.java +++ b/sdk-lambda/src/main/java/dev/restate/sdk/lambda/LambdaRestateServerFactory.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda; /** diff --git a/sdk-lambda/src/test/java/dev/restate/sdk/lambda/LambdaHandlerTest.java b/sdk-lambda/src/test/java/dev/restate/sdk/lambda/LambdaHandlerTest.java index 68979156a..1bdab3197 100644 --- a/sdk-lambda/src/test/java/dev/restate/sdk/lambda/LambdaHandlerTest.java +++ b/sdk-lambda/src/test/java/dev/restate/sdk/lambda/LambdaHandlerTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/JavaCounterService.java b/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/JavaCounterService.java index ebdd3ba1a..3d91c1b28 100644 --- a/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/JavaCounterService.java +++ b/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/JavaCounterService.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda.testservices; import dev.restate.sdk.blocking.RestateBlockingService; diff --git a/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/TestServicesFactory.java b/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/TestServicesFactory.java index 70b4a8638..177d8b049 100644 --- a/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/TestServicesFactory.java +++ b/sdk-lambda/src/test/java/dev/restate/sdk/lambda/testservices/TestServicesFactory.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda.testservices; import dev.restate.sdk.lambda.LambdaRestateServer; diff --git a/sdk-lambda/src/test/kotlin/dev/restate/sdk/lambda/testservices/KotlinCounterService.kt b/sdk-lambda/src/test/kotlin/dev/restate/sdk/lambda/testservices/KotlinCounterService.kt index 1955bcec2..8bbc2f425 100644 --- a/sdk-lambda/src/test/kotlin/dev/restate/sdk/lambda/testservices/KotlinCounterService.kt +++ b/sdk-lambda/src/test/kotlin/dev/restate/sdk/lambda/testservices/KotlinCounterService.kt @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.lambda.testservices import dev.restate.sdk.kotlin.RestateCoroutineService diff --git a/sdk-lambda/src/test/proto/counter.proto b/sdk-lambda/src/test/proto/counter.proto index b43937a74..35bc92b44 100644 --- a/sdk-lambda/src/test/proto/counter.proto +++ b/sdk-lambda/src/test/proto/counter.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; package counter; diff --git a/sdk-serde-jackson/src/main/java/dev/restate/sdk/core/serde/jackson/JacksonSerdes.java b/sdk-serde-jackson/src/main/java/dev/restate/sdk/core/serde/jackson/JacksonSerdes.java index 72a742220..cb06b65d7 100644 --- a/sdk-serde-jackson/src/main/java/dev/restate/sdk/core/serde/jackson/JacksonSerdes.java +++ b/sdk-serde-jackson/src/main/java/dev/restate/sdk/core/serde/jackson/JacksonSerdes.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core.serde.jackson; import com.fasterxml.jackson.core.JsonProcessingException; diff --git a/sdk-serde-jackson/src/test/java/dev/restate/sdk/core/JacksonSerdesTest.java b/sdk-serde-jackson/src/test/java/dev/restate/sdk/core/JacksonSerdesTest.java index 12d4df100..edf279905 100644 --- a/sdk-serde-jackson/src/test/java/dev/restate/sdk/core/JacksonSerdesTest.java +++ b/sdk-serde-jackson/src/test/java/dev/restate/sdk/core/JacksonSerdesTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.core; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-test/src/main/java/dev/restate/sdk/testing/BaseRestateRunner.java b/sdk-test/src/main/java/dev/restate/sdk/testing/BaseRestateRunner.java index 051f4c35d..589788a35 100644 --- a/sdk-test/src/main/java/dev/restate/sdk/testing/BaseRestateRunner.java +++ b/sdk-test/src/main/java/dev/restate/sdk/testing/BaseRestateRunner.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import dev.restate.admin.client.ApiClient; diff --git a/sdk-test/src/main/java/dev/restate/sdk/testing/ManualRestateRunner.java b/sdk-test/src/main/java/dev/restate/sdk/testing/ManualRestateRunner.java index daade6f78..01a9006c5 100644 --- a/sdk-test/src/main/java/dev/restate/sdk/testing/ManualRestateRunner.java +++ b/sdk-test/src/main/java/dev/restate/sdk/testing/ManualRestateRunner.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import dev.restate.admin.api.ServiceEndpointApi; diff --git a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateAdminClient.java b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateAdminClient.java index c188fc375..024a9b3e0 100644 --- a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateAdminClient.java +++ b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateAdminClient.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import java.lang.annotation.ElementType; diff --git a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateGrpcChannel.java b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateGrpcChannel.java index 92571a3ac..d1b018870 100644 --- a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateGrpcChannel.java +++ b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateGrpcChannel.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import java.lang.annotation.ElementType; 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 8a0820768..ab5ae5b84 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 @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import org.junit.jupiter.api.extension.BeforeAllCallback; diff --git a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunnerBuilder.java b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunnerBuilder.java index 044cbbdb9..21fa9aa85 100644 --- a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunnerBuilder.java +++ b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateRunnerBuilder.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import dev.restate.sdk.core.BindableBlockingService; diff --git a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateURL.java b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateURL.java index 4da772844..c7d93d5b4 100644 --- a/sdk-test/src/main/java/dev/restate/sdk/testing/RestateURL.java +++ b/sdk-test/src/main/java/dev/restate/sdk/testing/RestateURL.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import java.lang.annotation.ElementType; diff --git a/sdk-test/src/test/java/dev/restate/sdk/testing/Counter.java b/sdk-test/src/test/java/dev/restate/sdk/testing/Counter.java index 836054f0c..72f1224c4 100644 --- a/sdk-test/src/test/java/dev/restate/sdk/testing/Counter.java +++ b/sdk-test/src/test/java/dev/restate/sdk/testing/Counter.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import com.google.protobuf.Empty; diff --git a/sdk-test/src/test/java/dev/restate/sdk/testing/CounterTest.java b/sdk-test/src/test/java/dev/restate/sdk/testing/CounterTest.java index 741b65ed1..a67c66c49 100644 --- a/sdk-test/src/test/java/dev/restate/sdk/testing/CounterTest.java +++ b/sdk-test/src/test/java/dev/restate/sdk/testing/CounterTest.java @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE package dev.restate.sdk.testing; import static org.assertj.core.api.Assertions.assertThat; diff --git a/sdk-test/src/test/proto/counter.proto b/sdk-test/src/test/proto/counter.proto index 514b8c3dc..065e1ac2d 100644 --- a/sdk-test/src/test/proto/counter.proto +++ b/sdk-test/src/test/proto/counter.proto @@ -1,3 +1,11 @@ +// Copyright (c) 2023 - Restate Software, Inc., Restate GmbH +// +// This file is part of the Restate Java SDK, +// which is released under the MIT license. +// +// You can find a copy of the license in file LICENSE in the root +// directory of this repository or package, or at +// https://github.com/restatedev/sdk-java/blob/main/LICENSE syntax = "proto3"; package counter;