Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix configFile URL #566

Merged
merged 1 commit into from
Jan 27, 2025
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
2 changes: 1 addition & 1 deletion pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -261,7 +261,7 @@
<artifactId>formatter-maven-plugin</artifactId>
<version>${version.net.revelc.code.formatter.formatter-maven-plugin}</version>
<configuration>
<configFile>https://raw.githubusercontent.com/project-ncl/ide-config/main/src/main/resources/jboss-java-formatter.xml</configFile>
<configFile>https://raw.githubusercontent.com/project-ncl/ide-config/main/src/main/resources/java-formatter.xml</configFile>
<lineEnding>LF</lineEnding>
</configuration>
</plugin>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,12 @@
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.Size;

public record Product(@NotNull @Positive Long id, @NotNull @Positive Long bu, @NotEmpty String name, @NotEmpty @Pattern(regexp = "^[a-zA-Z1-9]+[\\w.-]*$") @Size(max = 128) String shortname, @NotNull String bugzilla, @NotNull String platforms, @NotNull Set<Release> releases, @NotNull Boolean canceled, @NotNull Boolean published, @NotNull String description, @NotNull @Positive Integer phase, @JsonProperty("not_maintained_since") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate notMaintainedSince, @JsonProperty("is_project_bool") @NotNull Boolean isProjectBool, @JsonProperty("product_group_name") String productGroupName, @JsonProperty("bu_name") @NotEmpty String buName, @JsonProperty("bu_shortname") @NotEmpty String buShortname) {
public record Product(@NotNull @Positive Long id, @NotNull @Positive Long bu, @NotEmpty String name,
@NotEmpty @Pattern(regexp = "^[a-zA-Z1-9]+[\\w.-]*$") @Size(max = 128) String shortname,
@NotNull String bugzilla, @NotNull String platforms, @NotNull Set<Release> releases, @NotNull Boolean canceled,
@NotNull Boolean published, @NotNull String description, @NotNull @Positive Integer phase,
@JsonProperty("not_maintained_since") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate notMaintainedSince,
@JsonProperty("is_project_bool") @NotNull Boolean isProjectBool,
@JsonProperty("product_group_name") String productGroupName, @JsonProperty("bu_name") @NotEmpty String buName,
@JsonProperty("bu_shortname") @NotEmpty String buShortname) {
}
37 changes: 36 additions & 1 deletion src/main/java/org/jboss/pnc/ppitegrator/pp/model/Release.java
Original file line number Diff line number Diff line change
Expand Up @@ -27,5 +27,40 @@
import jakarta.validation.constraints.Positive;
import jakarta.validation.constraints.Size;

public record Release(@NotNull @Positive Long id, @JsonProperty("bu_group") @NotNull String buGroup, @JsonProperty("bu_group_shortname") @NotNull String buGroupShortname, @JsonProperty("bu_group_name") @NotNull String buGroupName, @NotNull String bu, @JsonProperty("bu_shortname") @NotNull String buShortname, @JsonProperty("bu_name") @NotNull String buName, @NotNull @Positive Long relgroup, @JsonProperty("relgroup_shortname") @NotNull String relgroupShortname, @JsonProperty("product") @NotNull @Positive Long product, @JsonProperty("product_shortname") @NotNull String productShortname, @JsonProperty("product_name") @NotNull String productName, @NotNull String name, @JsonProperty("name_incl_maint") @NotNull String nameInclMaint, @NotEmpty @Pattern(regexp = "^[a-zA-Z1-9]+[\\w.-]*$") @Size(max = 128) String shortname, @JsonProperty("ga_date") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate gaDate, @JsonProperty("all_ga_tasks") Set<Object> allGaTasks, @NotNull String cpe, @NotNull Boolean canceled, @NotNull Boolean published, @JsonProperty("not_maintained_since") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate notMaintainedSince, @JsonProperty("fullName") @NotNull String fullName, @NotNull Integer phase, @JsonProperty("phase_display") @NotEmpty String phaseDisplay, @JsonProperty("platforms") @NotNull String platforms, @JsonProperty("bz_product") @NotNull String bzProduct, @JsonProperty("bz_version") @NotNull String bzVersion, @JsonProperty("bz_nvr_flag") @NotNull String bzNvrFlag, @JsonProperty("is_project_bool") @NotNull Boolean isProjectBool, @JsonProperty("inherit_comms") @NotNull Boolean inheritComms, @JsonProperty("inherit_docs") @NotNull Boolean inheritDocs, @NotNull String description, @JsonProperty("schedule_mode") @NotNull Integer scheduleMode, @JsonProperty("schedule_mode_display") @NotNull String scheduleModeDisplay, @JsonProperty("schedule_invalid_date_since") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate scheduleInvalidDateSince, @JsonProperty("schedule_validity_display") @NotNull String scheduleValidityDisplay, @JsonProperty("current_maint_phases") @NotNull Set<Object> currentMaintPhases, @JsonProperty("has_endless_schedule") @NotNull Boolean hasEndlessSchedule, @JsonProperty("main_schedule") @NotNull Object mainSchedule, @JsonProperty("last_statuses") @NotNull Set<Object> lastStatuses, @JsonProperty("nearing_milestones") @NotNull Set<Object> nearingMilestones, @JsonProperty("security_xml") @NotNull String securityXml, @JsonProperty("task_ordering") @NotNull String taskOrdering, @JsonProperty("release_ordering") @NotNull Integer releaseOrdering, @JsonProperty("shortname_sort") @NotNull String shortnameSort, @JsonProperty("main_schedule_change_msg") @NotNull String mainScheduleChangeMsg) {
public record Release(@NotNull @Positive Long id, @JsonProperty("bu_group") @NotNull String buGroup,
@JsonProperty("bu_group_shortname") @NotNull String buGroupShortname,
@JsonProperty("bu_group_name") @NotNull String buGroupName, @NotNull String bu,
@JsonProperty("bu_shortname") @NotNull String buShortname, @JsonProperty("bu_name") @NotNull String buName,
@NotNull @Positive Long relgroup, @JsonProperty("relgroup_shortname") @NotNull String relgroupShortname,
@JsonProperty("product") @NotNull @Positive Long product,
@JsonProperty("product_shortname") @NotNull String productShortname,
@JsonProperty("product_name") @NotNull String productName, @NotNull String name,
@JsonProperty("name_incl_maint") @NotNull String nameInclMaint,
@NotEmpty @Pattern(regexp = "^[a-zA-Z1-9]+[\\w.-]*$") @Size(max = 128) String shortname,
@JsonProperty("ga_date") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate gaDate,
@JsonProperty("all_ga_tasks") Set<Object> allGaTasks, @NotNull String cpe, @NotNull Boolean canceled,
@NotNull Boolean published,
@JsonProperty("not_maintained_since") @JsonFormat(pattern = "yyyy-MM-dd") LocalDate notMaintainedSince,
@JsonProperty("fullName") @NotNull String fullName, @NotNull Integer phase,
@JsonProperty("phase_display") @NotEmpty String phaseDisplay,
@JsonProperty("platforms") @NotNull String platforms, @JsonProperty("bz_product") @NotNull String bzProduct,
@JsonProperty("bz_version") @NotNull String bzVersion, @JsonProperty("bz_nvr_flag") @NotNull String bzNvrFlag,
@JsonProperty("is_project_bool") @NotNull Boolean isProjectBool,
@JsonProperty("inherit_comms") @NotNull Boolean inheritComms,
@JsonProperty("inherit_docs") @NotNull Boolean inheritDocs, @NotNull String description,
@JsonProperty("schedule_mode") @NotNull Integer scheduleMode,
@JsonProperty("schedule_mode_display") @NotNull String scheduleModeDisplay,
@JsonProperty("schedule_invalid_date_since") @JsonFormat(
pattern = "yyyy-MM-dd") LocalDate scheduleInvalidDateSince,
@JsonProperty("schedule_validity_display") @NotNull String scheduleValidityDisplay,
@JsonProperty("current_maint_phases") @NotNull Set<Object> currentMaintPhases,
@JsonProperty("has_endless_schedule") @NotNull Boolean hasEndlessSchedule,
@JsonProperty("main_schedule") @NotNull Object mainSchedule,
@JsonProperty("last_statuses") @NotNull Set<Object> lastStatuses,
@JsonProperty("nearing_milestones") @NotNull Set<Object> nearingMilestones,
@JsonProperty("security_xml") @NotNull String securityXml,
@JsonProperty("task_ordering") @NotNull String taskOrdering,
@JsonProperty("release_ordering") @NotNull Integer releaseOrdering,
@JsonProperty("shortname_sort") @NotNull String shortnameSort,
@JsonProperty("main_schedule_change_msg") @NotNull String mainScheduleChangeMsg) {
}
Loading