Skip to content

Commit dd3d5a9

Browse files
committed
chore: migrate airbyte-micronaut-temporal:main to kotlin (#16818)
Discussed with reviewer offline that this was approved. They forgot to hit the button before they went on vacation.
1 parent 43dd2bd commit dd3d5a9

File tree

10 files changed

+384
-333
lines changed

10 files changed

+384
-333
lines changed

airbyte-micronaut-temporal/build.gradle.kts

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -6,6 +6,8 @@ plugins {
66
dependencies {
77
annotationProcessor(platform(libs.micronaut.platform))
88
annotationProcessor(libs.bundles.micronaut.annotation.processor)
9+
ksp(platform(libs.micronaut.platform))
10+
ksp(libs.bundles.micronaut.annotation.processor)
911

1012
implementation(libs.bundles.micronaut)
1113
implementation(libs.byte.buddy)

airbyte-micronaut-temporal/src/main/java/io/airbyte/micronaut/temporal/TemporalActivityStubGeneratorFunction.java

Lines changed: 0 additions & 21 deletions
This file was deleted.

airbyte-micronaut-temporal/src/main/java/io/airbyte/micronaut/temporal/TemporalActivityStubInterceptor.java

Lines changed: 0 additions & 172 deletions
This file was deleted.

airbyte-micronaut-temporal/src/main/java/io/airbyte/micronaut/temporal/TemporalProxyHelper.java

Lines changed: 0 additions & 133 deletions
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,21 @@
1+
/*
2+
* Copyright (c) 2020-2025 Airbyte, Inc., all rights reserved.
3+
*/
4+
5+
package io.airbyte.micronaut.temporal
6+
7+
import io.temporal.activity.ActivityOptions
8+
9+
/**
10+
* Functional interface that defines the function used to generate a Temporal activity stub.
11+
*
12+
* @param <C> The Temporal activity stub class.
13+
* @param <A> The [ActivityOptions] for the Temporal activity stub.
14+
* @param <O> The Temporal activity stub object.
15+
*/
16+
fun interface TemporalActivityStubGeneratorFunction<C : Class<*>, A : ActivityOptions, O> {
17+
fun apply(
18+
c: C,
19+
a: A,
20+
): O
21+
}

0 commit comments

Comments
 (0)