diff --git a/spring-cloud-function-adapters/spring-cloud-function-grpc/pom.xml b/spring-cloud-function-adapters/spring-cloud-function-grpc/pom.xml index c93960677..0e359e7e3 100644 --- a/spring-cloud-function-adapters/spring-cloud-function-grpc/pom.xml +++ b/spring-cloud-function-adapters/spring-cloud-function-grpc/pom.xml @@ -1,45 +1,46 @@ + xmlns="http://maven.apache.org/POM/4.0.0" + xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd"> 4.0.0 - spring-cloud-function-grpc jar spring-cloud-function-grpc Spring Cloud Function gRPC Support - org.springframework.cloud spring-cloud-function-adapter-parent 4.0.2-SNAPSHOT - 1.16.1 true - - io.grpc - grpc-netty - ${grpc.version} + javax.annotation + javax.annotation-api + 1.3.2 - io.grpc - grpc-protobuf - ${grpc.version} + io.grpc + grpc-netty + ${grpc.version} - io.grpc - grpc-services - ${grpc.version} + io.grpc + grpc-protobuf + ${grpc.version} - io.grpc - grpc-stub - ${grpc.version} + io.grpc + grpc-services + ${grpc.version} + + + io.grpc + grpc-stub + ${grpc.version} org.springframework.cloud @@ -61,44 +62,41 @@ test - - - kr.motd.maven - os-maven-plugin - 1.6.1 - + + kr.motd.maven + os-maven-plugin + 1.6.1 + - - org.apache.maven.plugins - maven-checkstyle-plugin - + org.apache.maven.plugins + maven-checkstyle-plugin + - org.xolstice.maven.plugins - protobuf-maven-plugin - 0.6.1 - - + org.xolstice.maven.plugins + protobuf-maven-plugin + 0.6.1 + + com.google.protobuf:protoc:3.3.0:exe:${os.detected.classifier} - grpc-java - + grpc-java + io.grpc:protoc-gen-grpc-java:1.4.0:exe:${os.detected.classifier} - - - - - compile - compile-custom - - - - + + + + + compile + compile-custom + + + + - diff --git a/spring-cloud-function-context/pom.xml b/spring-cloud-function-context/pom.xml index 6110930f7..932708a25 100644 --- a/spring-cloud-function-context/pom.xml +++ b/spring-cloud-function-context/pom.xml @@ -47,16 +47,16 @@ jackson-module-kotlin true - - javax.annotation - javax.annotation-api - 1.3.2 - - - javax.activation - javax.activation-api - 1.2.0 - + + + + + + + + + + org.springframework.boot spring-boot-configuration-processor diff --git a/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/FunctionCatalog.java b/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/FunctionCatalog.java index 3f2aa902e..b8a84a8ef 100644 --- a/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/FunctionCatalog.java +++ b/spring-cloud-function-context/src/main/java/org/springframework/cloud/function/context/FunctionCatalog.java @@ -21,8 +21,6 @@ import java.util.function.Consumer; import java.util.function.Function; import java.util.function.Supplier; -import javax.activation.MimeType; - /** * @author Dave Syer @@ -33,7 +31,6 @@ public interface FunctionCatalog { /** * Will look up the instance of the functional interface by name only. * - * @param instance type * @param functionDefinition the definition of the functional interface. Must * not be null; * @return instance of the functional interface registered with this catalog @@ -87,13 +84,7 @@ public interface FunctionCatalog { return this.lookup(null, functionDefinition, expectedOutputMimeTypes); } - T lookup(Class type, String functionDefinition, String... expectedOutputMimeTypes); //{ -// throw new UnsupportedOperationException("This instance of FunctionCatalog does not support this operation"); -// } - - - - + T lookup(Class type, String functionDefinition, String... expectedOutputMimeTypes); Set getNames(Class type); diff --git a/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionDeployerProperties.java b/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionDeployerProperties.java index fe694272a..e5e61c779 100644 --- a/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionDeployerProperties.java +++ b/spring-cloud-function-deployer/src/main/java/org/springframework/cloud/function/deployer/FunctionDeployerProperties.java @@ -16,12 +16,13 @@ package org.springframework.cloud.function.deployer; -import javax.annotation.PostConstruct; +import jakarta.annotation.PostConstruct; import org.springframework.boot.context.properties.ConfigurationProperties; import org.springframework.cloud.function.context.FunctionProperties; import org.springframework.util.Assert; + /** * Configuration properties for deciding how to locate the functional class to execute. *