Skip to content

Commit

Permalink
Fixed: j2cl java time wrongly attached to server modules
Browse files Browse the repository at this point in the history
  • Loading branch information
salmonb committed Mar 24, 2024
1 parent d4f975b commit c65bc93
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 2 deletions.
9 changes: 8 additions & 1 deletion src/main/java/dev/webfx/cli/core/Target.java
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,9 @@

import java.util.Arrays;
import java.util.List;
import java.util.Objects;
import java.util.stream.Collectors;
import java.util.stream.Stream;

/**
* @author Bruno Salmon
Expand All @@ -25,7 +27,12 @@ public Target(TargetTag... tags) {
private Target(ProjectModule module, TargetTag[] tags) {
this.module = module;
this.tags = Arrays.stream(tags).collect(Collectors.toUnmodifiableList());
platformTags = this.tags.stream().filter(TargetTag::isPlatformTag).collect(Collectors.toUnmodifiableList());
platformTags = this.tags.stream()
// filtering platform tags (ex: GWT, JRE, GLUON, VERTX, ...) from this tag and transitive implied tags (ex: SERVER => JRE)
.flatMap(tag -> Stream.concat(Stream.of(tag), Stream.of(tag.getTransitiveImpliedTags())))
.filter(Objects::nonNull)
.filter(TargetTag::isPlatformTag)
.collect(Collectors.toUnmodifiableList());
}

ProjectModule getModule() {
Expand Down
2 changes: 1 addition & 1 deletion src/main/resources/dev/webfx/cli/version/dev/version.ini
Original file line number Diff line number Diff line change
@@ -1,2 +1,2 @@
version=0.1.0-SNAPSHOT
build.timestamp=2024-03-24 10:52
build.timestamp=2024-03-24 11:44

0 comments on commit c65bc93

Please sign in to comment.