Skip to content

Commit

Permalink
Use client library distribution for the LCP of data runs (#34)
Browse files Browse the repository at this point in the history
  • Loading branch information
Technici4n authored Jun 16, 2024
1 parent 1fb37a7 commit 8f347c8
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -328,7 +328,7 @@ public void apply(Project project) {
spec.setCanBeConsumed(false);
spec.shouldResolveConsistentlyWith(runtimeClasspathConfig.get());
spec.attributes(attributes -> {
attributes.attributeProvider(ATTRIBUTE_DISTRIBUTION, type.map(t -> t.equals("client") ? "client" : "server"));
attributes.attributeProvider(ATTRIBUTE_DISTRIBUTION, type.map(t -> t.equals("client") || t.equals("data") ? "client" : "server"));
attributes.attribute(Usage.USAGE_ATTRIBUTE, project.getObjects().named(Usage.class, Usage.JAVA_RUNTIME));
});
spec.withDependencies(set -> {
Expand Down

0 comments on commit 8f347c8

Please sign in to comment.