Skip to content
Snippets Groups Projects
Commit 3cc83c2f authored by Tobias Ullerich's avatar Tobias Ullerich
Browse files

Register reflection hints

parent ad1f5f3e
Branches rewrite
No related tags found
No related merge requests found
...@@ -11,6 +11,7 @@ import de.tobias.playwall.model.artifactory.Version; ...@@ -11,6 +11,7 @@ import de.tobias.playwall.model.artifactory.Version;
import jakarta.annotation.PostConstruct; import jakarta.annotation.PostConstruct;
import lombok.AllArgsConstructor; import lombok.AllArgsConstructor;
import lombok.SneakyThrows; import lombok.SneakyThrows;
import org.springframework.aot.hint.annotation.RegisterReflectionForBinding;
import org.springframework.http.ResponseEntity; import org.springframework.http.ResponseEntity;
import org.springframework.stereotype.Service; import org.springframework.stereotype.Service;
import org.springframework.web.reactive.function.client.WebClient; import org.springframework.web.reactive.function.client.WebClient;
...@@ -21,6 +22,8 @@ import java.util.List; ...@@ -21,6 +22,8 @@ import java.util.List;
@Service @Service
@AllArgsConstructor @AllArgsConstructor
@RegisterReflectionForBinding({PluginDescription.class, PluginManifest.class, Folder.class, Folder.FolderItem.class,
ArtifactoryClient.ArchiveViewSourceRequest.class, ArtifactoryClient.ArchiveViewSourceResponse.class})
public class ArtifactoryClient public class ArtifactoryClient
{ {
private final WebClient webClient; private final WebClient webClient;
...@@ -59,11 +62,11 @@ public class ArtifactoryClient ...@@ -59,11 +62,11 @@ public class ArtifactoryClient
return version.get(version.size() - 1); return version.get(version.size() - 1);
} }
private record ArchiveViewSourceRequest(String archivePath, String repoKey, String sourcePath) record ArchiveViewSourceRequest(String archivePath, String repoKey, String sourcePath)
{ {
} }
private record ArchiveViewSourceResponse(String source) record ArchiveViewSourceResponse(String source)
{ {
} }
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment