Skip to content

Conversation

fabriziodemaria
Copy link
Member

@fabriziodemaria fabriziodemaria commented Oct 14, 2025

Ported here from the source: https://github.com/spotify/confidence-sdk-java
The plan is to remove this provider from that repo, and unify all WASM-based open feature providers into this repo.

For the reviewer: the Java files in the PR are copied as-is and don't need review. The only change being the import name for Messages.

@fabriziodemaria fabriziodemaria force-pushed the java-provider branch 2 times, most recently from 928e266 to f7f6ffe Compare October 14, 2025 13:01
Comment on lines +189 to +239
<plugin>
<groupId>org.xolstice.maven.plugins</groupId>
<artifactId>protobuf-maven-plugin</artifactId>
<version>0.6.1</version>
<configuration>
<protocArtifact>com.google.protobuf:protoc:${protobuf.version}:exe:${os.detected.classifier}</protocArtifact>
<pluginId>grpc-java</pluginId>
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
</configuration>
<executions>
<!-- Compile the Confidence API protos from this repo to satisfy imports and stubs -->
<execution>
<id>compile-confidence-protos</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
<configuration>
<protoSourceRoot>${project.basedir}/../../confidence-resolver/protos</protoSourceRoot>
<includes>
<include>confidence/flags/resolver/v1/**/*.proto</include>
<include>confidence/flags/types/v1/**/*.proto</include>
<include>confidence/flags/admin/v1/**/*.proto</include>
<include>confidence/iam/v1/**/*.proto</include>
<include>confidence/auth/v1/**/*.proto</include>
<include>google/api/**/*.proto</include>
<include>google/type/decimal.proto</include>
<include>confidence/api/annotations.proto</include>
<include>confidence/events/v1/annotations.proto</include>
</includes>
</configuration>
</execution>
<!-- Generate WASM interop messages from the shared wasm/proto/messages.proto -->
<execution>
<id>compile-wasm-messages</id>
<phase>generate-sources</phase>
<goals>
<goal>compile</goal>
<goal>compile-custom</goal>
</goals>
<configuration>
<protoSourceRoot>${project.basedir}/../../wasm/proto</protoSourceRoot>
<includes>
<include>messages.proto</include>
</includes>
<clearOutputDirectory>false</clearOutputDirectory>
</configuration>
</execution>
</executions>
</plugin>
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

This has been changed and needs thorough review

Comment on lines -18 to +19
import rust_guest.Messages.SetResolverStateRequest;
import rust_guest.Messages;
import com.spotify.confidence.wasm.Messages;
import com.spotify.confidence.wasm.Messages.SetResolverStateRequest;
Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Note that change of naming in the java packaging

@fabriziodemaria fabriziodemaria marked this pull request as ready for review October 15, 2025 09:58
Copy link
Contributor

@andreas-karlsson andreas-karlsson left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Looks good to me. There are some funny business in the makefile, like it's copying things when it shouldn't have to, but I just realized we have that in other makefiles to. We can fix that later...

# Force test stages to run by copying marker files
COPY --from=confidence-resolver.test /workspace/Cargo.toml /markers/test-resolver
COPY --from=wasm-msg.test /workspace/Cargo.toml /markers/test-wasm-msg
COPY --from=openfeature-provider-js.test /app/package.json /markers/test-openfeature
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Good!

@fabriziodemaria fabriziodemaria merged commit 1bba814 into main Oct 15, 2025
6 checks passed
@fabriziodemaria fabriziodemaria deleted the java-provider branch October 15, 2025 14:46
@github-actions github-actions bot mentioned this pull request Oct 15, 2025
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants