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

Bump mojo.maven.version from 3.9.3 to 3.9.6 #5

Closed
Closed
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
91 commits
Select commit Hold shift + click to select a range
c4ffdc8
New deploy action
david-waltermire Oct 23, 2023
4a4fb4b
Update release.yml
david-waltermire Oct 23, 2023
1129b71
Update release.yml
david-waltermire Oct 23, 2023
f085b83
Update release.yml
david-waltermire Oct 24, 2023
030d102
Update release.yml
david-waltermire Oct 24, 2023
b308c58
Create .coderabbit.yaml
david-waltermire Apr 21, 2024
3dbac5e
[maven-release-plugin] prepare for next development iteration
david-waltermire Sep 26, 2023
7c943df
Cleaned up retired modules.
david-waltermire Sep 26, 2023
f7f4f16
Bump commons-io:commons-io from 2.13.0 to 2.14.0 (#223)
dependabot[bot] Oct 13, 2023
2fcf1d6
Bump github/codeql-action from 2.21.8 to 2.22.1 (#228)
dependabot[bot] Oct 13, 2023
e50a1ae
Add additional Metapath Functions (#224)
david-waltermire Oct 13, 2023
4d139a2
Add support for numeric indexes. (#225)
david-waltermire Oct 13, 2023
825a654
Refactoring of code, focus on constraints (#230)
david-waltermire Oct 16, 2023
4dc9296
Bump actions/checkout from 4.1.0 to 4.1.1 (#235)
dependabot[bot] Oct 18, 2023
9e25a7a
Bump dependency.log4j2.version from 2.20.0 to 2.21.0 (#233)
dependabot[bot] Oct 18, 2023
8c3d7a7
Bump github/codeql-action from 2.22.1 to 2.22.3 (#232)
dependabot[bot] Oct 18, 2023
9376a2e
Bump org.json:json from 20230618 to 20231013 (#231)
dependabot[bot] Oct 18, 2023
980cc74
Feature metapath enhancements 20231016 (#236)
david-waltermire Oct 19, 2023
dd6ebc8
Use `Metapath.compile()` in range tests inline (#240)
aj-stein-nist Oct 20, 2023
dcb0a84
Added toString methods to some items to improve debugging and testing.
david-waltermire Oct 20, 2023
0d49441
Renamed FlagDefinitionNodeItemImpl to FlagGlobalDefinitionNodeItemImp…
david-waltermire Oct 20, 2023
f531616
Fixed bug in the output generated by newCardinalityMinimumViolationMe…
david-waltermire Oct 20, 2023
7c09b8a
Bumped json dependency. Integrated reporting profile into main build.
david-waltermire Oct 21, 2023
1c17bc9
Bump io.github.git-commit-id:git-commit-id-maven-plugin (#243)
dependabot[bot] Nov 9, 2023
979fd31
Bump dependency.log4j2.version from 2.21.0 to 2.21.1 (#247)
dependabot[bot] Nov 9, 2023
4b2176d
Bump github/codeql-action from 2.22.3 to 2.22.5 (#251)
dependabot[bot] Nov 9, 2023
9489f8e
Bump commons-io:commons-io from 2.14.0 to 2.15.0 (#248)
dependabot[bot] Nov 9, 2023
76412c9
Bump commons-cli:commons-cli from 1.5.0 to 1.6.0 (#249)
dependabot[bot] Nov 9, 2023
b548590
Metasconstraints Part 1 - XML and Annotation Models (#254)
david-waltermire Nov 9, 2023
982f23f
Updated to latest Metaschema repo source.
david-waltermire Nov 10, 2023
fcbb9a6
Bump org.apache.commons:commons-text from 1.10.0 to 1.11.0 (#255)
dependabot[bot] Nov 13, 2023
5ea15e2
Bump org.apache.xmlbeans:xmlbeans from 5.1.1 to 5.2.0 (#259)
dependabot[bot] Nov 24, 2023
8508ad6
Update build.yml
david-waltermire Nov 24, 2023
ffd3991
Bump github/codeql-action from 2.22.5 to 2.22.8 (#262)
dependabot[bot] Nov 24, 2023
c740592
Bump org.apache.commons:commons-lang3 from 3.13.0 to 3.14.0 (#261)
dependabot[bot] Nov 24, 2023
70d1988
Bump dependency.log4j2.version from 2.21.1 to 2.22.0 (#260)
dependabot[bot] Nov 24, 2023
73236ac
Fix dependency bounds issue for usnistgov/metaschema#265 (#266)
aj-stein-nist Nov 30, 2023
ec3d148
Bump commons-io:commons-io from 2.15.0 to 2.15.1 (#264)
dependabot[bot] Nov 30, 2023
85b643b
Bump actions/setup-java from 3.13.0 to 4.0.0 (#263)
dependabot[bot] Nov 30, 2023
3c47ddf
Add P1 Metapath sequence functions (#239)
aj-stein-nist Dec 18, 2023
c80007b
Bump com.xmlcalabash:xmlcalabash from 1.5.6-120 to 1.5.7-120 (#268)
dependabot[bot] Dec 18, 2023
d851b2a
Bump gov.nist.secauto:oss-build-support from 26 to 27 (#269)
dependabot[bot] Dec 18, 2023
090770a
Bump org.codehaus.mojo:license-maven-plugin from 2.0.0 to 2.3.0 (#270)
dependabot[bot] Dec 18, 2023
81bb85d
Bump github/codeql-action from 2.22.8 to 3.22.11 (#274)
dependabot[bot] Dec 18, 2023
8322d8b
Support Metapath concat function (#253)
david-waltermire Dec 18, 2023
918618f
Parameterize existing CLI tests with streaming test vectors (#271)
aj-stein-nist Dec 18, 2023
dd51990
Bump github/codeql-action from 3.22.11 to 3.22.12 (#278)
dependabot[bot] Jan 4, 2024
eeceb0e
Bump org.fusesource.jansi:jansi from 2.4.0 to 2.4.1 (#276)
dependabot[bot] Jan 4, 2024
1dce103
Bump nl.talsmasoftware:lazy4j from 1.0.2 to 1.0.3 (#275)
dependabot[bot] Jan 4, 2024
b5e7a05
Bump dependency.antlr4.version from 4.10.1 to 4.13.1 (#277)
dependabot[bot] Jan 4, 2024
6650dd4
Look up XSDs with good extension for #279 (#280)
aj-stein-nist Jan 4, 2024
3ae7b83
Bump net.sf.saxon:Saxon-HE from 12.3 to 12.4 (#265)
dependabot[bot] Jan 4, 2024
63f8c13
Add exception with clear message about missing index (#282)
aj-stein-nist Jan 19, 2024
3bf7f86
Fix function chain arrow operator processing (#290)
aj-stein-nist Jan 23, 2024
39ebc90
Bump github/codeql-action from 3.22.12 to 3.23.1 (#291)
dependabot[bot] Jan 23, 2024
6e733ce
Bump com.github.erosb:everit-json-schema from 1.14.3 to 1.14.4 (#286)
dependabot[bot] Jan 23, 2024
1b07446
Bump dependency.log4j2.version from 2.22.0 to 2.22.1 (#284)
dependabot[bot] Jan 23, 2024
f7f9fcc
Bump com.github.spotbugs:spotbugs-annotations from 4.7.3 to 4.8.3 (#283)
dependabot[bot] Jan 23, 2024
494672d
Bump org.eclipse.persistence:org.eclipse.persistence.moxy (#285)
dependabot[bot] Jan 24, 2024
effbc54
Bump com.github.javaparser:javaparser-symbol-solver-core (#295)
dependabot[bot] Jan 24, 2024
d03eff1
Bump net.openhft:compiler from 2.23ea0 to 2.25ea1 (#296)
dependabot[bot] Jan 24, 2024
1b1f171
Bump org.apache.maven.plugin-tools:maven-plugin-annotations (#288)
dependabot[bot] Jan 24, 2024
d71f342
Refactored core model classes and support for collections of model in…
david-waltermire Jan 24, 2024
9883415
Allow file or URI arguments to metaschema-cli (#298)
aj-stein-nist Feb 6, 2024
0e386a3
Bump org.codehaus.woodstox:stax2-api from 4.2.1 to 4.2.2 (#299)
dependabot[bot] Feb 6, 2024
e5d93c1
Bump github/codeql-action from 3.23.1 to 3.24.0 (#304)
dependabot[bot] Feb 6, 2024
e2014e6
Correct math CST parsing for mod expression to use mod-numeric (#306)
aj-stein-nist Feb 6, 2024
5152ac2
Bump com.github.seancfoley:ipaddress from 5.4.0 to 5.4.2 (#307)
dependabot[bot] Feb 7, 2024
42c56e1
Bumped jackson version. Fixed some formatting issues. (#310)
david-waltermire Feb 7, 2024
5602410
Bump org.json:json from 20231013 to 20240205 (#314)
dependabot[bot] Feb 9, 2024
d80ebd4
Bump org.codehaus.mojo:license-maven-plugin from 2.3.0 to 2.4.0 (#311)
dependabot[bot] Feb 9, 2024
2b3b3f4
Bump org.codehaus.mojo:templating-maven-plugin from 1.0.0 to 3.0.0 (#…
dependabot[bot] Feb 9, 2024
a12122b
Fix instance parsing in choice and similar constructs (#316)
aj-stein-nist Feb 9, 2024
4ed9c80
Add for and simple map (!) Metapath expression support (#317)
david-waltermire Feb 14, 2024
28a2be3
Bump github/codeql-action from 3.24.0 to 3.24.1 (#321)
dependabot[bot] Feb 14, 2024
2d44123
Bump net.openhft:compiler from 2.25ea1 to 2.25ea2 (#323)
dependabot[bot] Feb 21, 2024
7b4fc8f
Bump github/codeql-action from 3.24.1 to 3.24.3 (#322)
dependabot[bot] Feb 21, 2024
b5a65a2
Add metaschema models for constraints (#320)
david-waltermire Feb 22, 2024
38b89de
Bump dependency.log4j2.version from 2.22.1 to 2.23.0 (#324)
dependabot[bot] Feb 22, 2024
9b1f9e7
Bump github/codeql-action from 3.24.3 to 3.24.4 (#326)
dependabot[bot] Feb 23, 2024
16822eb
Improve NPE error messages for missing data (#309)
david-waltermire Feb 23, 2024
0f550a5
Bump actions/setup-java from 4.0.0 to 4.2.0 (#338)
dependabot[bot] Mar 14, 2024
a15e0be
Bump actions/checkout from 4.1.1 to 4.1.2 (#337)
dependabot[bot] Mar 14, 2024
31f0753
Bump github/codeql-action from 3.24.4 to 3.24.7 (#336)
dependabot[bot] Mar 14, 2024
7bcf59d
Bump com.github.javaparser:javaparser-symbol-solver-core (#334)
dependabot[bot] Mar 14, 2024
5a19e54
Bump com.github.seancfoley:ipaddress from 5.4.2 to 5.5.0 (#333)
dependabot[bot] Mar 14, 2024
313b19c
Bump org.json:json from 20240205 to 20240303 (#332)
dependabot[bot] Mar 14, 2024
a406d5e
Fixed issue causing CLI errors when using --help or --version, while …
david-waltermire Mar 14, 2024
6a858f6
normalizing line endings
david-waltermire Apr 21, 2024
c8ef0d7
Add support for Expanded QNames (#18)
david-waltermire Apr 23, 2024
0f565fe
Bump mojo.maven.version from 3.9.3 to 3.9.6
dependabot[bot] May 7, 2024
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
The table of contents is too big for display.
Diff view
Diff view
  •  
  •  
  •  
19 changes: 19 additions & 0 deletions .coderabbit.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# yaml-language-server: $schema=https://coderabbit.ai/integrations/schema.v2.json
language: "en-US"
early_access: false
reviews:
request_changes_workflow: false
high_level_summary: true
poem: false
review_status: true
collapse_walkthrough: true
auto_review:
enabled: true
ignore_title_keywords:
- "WIP"
- "DO NOT MERGE"
drafts: true
base_branches:
- "develop"
chat:
auto_reply: true
17 changes: 10 additions & 7 deletions .github/workflows/build.yml
Original file line number Diff line number Diff line change
Expand Up @@ -2,14 +2,17 @@ on:
push:
branches:
- main
- develop
- release-*
- develop
- feature-*
pull_request:
types: [opened, synchronize, reopened]
branches:
- main
- develop
- release-*
- develop
- feature-*
merge_group:
workflow_dispatch:
name: Build and Test Code
jobs:
Expand All @@ -24,7 +27,7 @@ jobs:
BUILD_SNAPSHOT: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') &&
(github.ref_name == 'develop' || startsWith(github.ref_name, 'release-')) }}
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
submodules: recursive
filter: tree:0
Expand All @@ -38,7 +41,7 @@ jobs:
- id: setup-java-deploy
name: Set up JDK 11 (deploy)
if: ${{ env.BUILD_SNAPSHOT == 'true' }}
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
uses: actions/setup-java@5896cecc08fd8a1fbdfaf517e29b571164b031f7
with:
java-version: 11
distribution: 'temurin'
Expand All @@ -50,14 +53,14 @@ jobs:
gpg-passphrase: MAVEN_GPG_PASSPHRASE # env variable for GPG private key passphrase
- name: Set up JDK 11 (build only)
if: ${{ steps.setup-java-deploy.outcome == 'skipped' }}
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
uses: actions/setup-java@5896cecc08fd8a1fbdfaf517e29b571164b031f7
with:
java-version: 11
distribution: 'temurin'
cache: 'maven'
- name: Initialize CodeQL
if: github.event_name == 'push'
uses: github/codeql-action/init@6a28655e3dcb49cb0840ea372fd6d17733edd8a4
uses: github/codeql-action/init@3ab4101902695724f9365a384f86c1074d94e18c
with:
languages: java
# -------------------------
Expand All @@ -78,7 +81,7 @@ jobs:
mvn -B -e -Prelease -Preporting install
- name: Perform CodeQL Analysis
if: github.event_name == 'push'
uses: github/codeql-action/analyze@6a28655e3dcb49cb0840ea372fd6d17733edd8a4
uses: github/codeql-action/analyze@3ab4101902695724f9365a384f86c1074d94e18c
with:
upload: ${{ (github.event_name == 'push' || github.event_name == 'workflow_dispatch') && github.ref_name == 'develop' && 'always' || 'never' }}
- name: Test Website
Expand Down
31 changes: 25 additions & 6 deletions .github/workflows/release.yml
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,18 @@ on:
tags:
- "v*"
workflow_dispatch:
inputs:
release:
description: 'Delpoy release?'
type: boolean
default: false
website:
description: 'Deploy website?'
type: boolean
default: false
pages-branch:
description: 'Pages branch name'
default: nist-pages
name: Deploy Tagged Release
jobs:
deploy-to-nexus:
Expand All @@ -12,7 +24,7 @@ jobs:
actions: read
contents: write
steps:
- uses: actions/checkout@8ade135a41bc03ea155e62e844d188df1ea18608
- uses: actions/checkout@9bb56186c3b09b4f86b1c65136769dd318469633
with:
submodules: recursive
filter: tree:0
Expand All @@ -24,7 +36,7 @@ jobs:
with:
maven-version: 3.9.3
- name: Set up JDK 11
uses: actions/setup-java@0ab4596768b603586c0de567f2430c30f5b0d2b0
uses: actions/setup-java@5896cecc08fd8a1fbdfaf517e29b571164b031f7
with:
java-version: 11
distribution: 'temurin'
Expand All @@ -38,6 +50,7 @@ jobs:
# Maven Deploy
# -------------------------
- name: Deploy Maven Artifacts
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && contains('true', github.event.inputs.release))
run: |
mvn -B -e -Pgpg -Prelease -Preporting deploy
# mvn -Pgpg -Prelease nexus-staging:close -DstagingDescription="closing to release"
Expand All @@ -46,6 +59,7 @@ jobs:
MAVEN_CENTRAL_TOKEN: ${{ secrets.SONATYPE_PASSWORD }}
MAVEN_GPG_PASSPHRASE: ${{ secrets.GPG_PASSPHRASE }}
- name: Create release
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && contains('true', github.event.inputs.release))
uses: softprops/action-gh-release@de2c0eb89ae2a093876385947365aca7b0e5f844
with:
draft: true
Expand All @@ -57,9 +71,14 @@ jobs:
# Maven Site
# -------------------------
- name: Build Website
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && contains('true', github.event.inputs.website))
run: |
mvn -B -e -Prelease -Preporting install site site:stage
- name: Run Website Deploy Script
run: |
touch target/staging/.nojekyll
bash .github/workflows/deploy.sh --push-only -v -m "Deploying website [ci skip]"
- name: Website Deploy
uses: peaceiris/actions-gh-pages@373f7f263a76c20808c831209c920827a82a2847
if: github.event_name == 'push' || (github.event_name == 'workflow_dispatch' && contains('true', github.event.inputs.website))
with:
personal_token: ${{ secrets.COMMIT_TOKEN }}
publish_dir: ./target/staging
external_repository: ${{ github.repository }}
publish_branch: ${{ (github.event_name == 'workflow_dispatch' && github.event.inputs.pages-branch) || 'nist-pages' }}
7 changes: 0 additions & 7 deletions .mvn/extensions.xml

This file was deleted.

25 changes: 0 additions & 25 deletions .mvn/maven-build-cache-config.xml

This file was deleted.

2 changes: 1 addition & 1 deletion cli-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>gov.nist.secauto.metaschema</groupId>
<artifactId>metaschema-framework</artifactId>
<version>1.0.0-M1</version>
<version>1.0.0-M2-SNAPSHOT</version>
</parent>

<artifactId>cli-processor</artifactId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,6 +66,7 @@

import edu.umd.cs.findbugs.annotations.NonNull;
import edu.umd.cs.findbugs.annotations.Nullable;
import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public class CLIProcessor {
private static final Logger LOGGER = LogManager.getLogger(CLIProcessor.class);
Expand Down Expand Up @@ -253,6 +254,7 @@ public class CallingContext {
@NonNull
private final List<String> extraArgs;

@SuppressFBWarnings(value = "CT_CONSTRUCTOR_THROW", justification = "Use of final fields")
public CallingContext(@NonNull List<String> args) {
Map<String, ICommand> topLevelCommandMap = getTopLevelCommands().stream()
.collect(Collectors.toUnmodifiableMap(ICommand::getName, Function.identity()));
Expand Down Expand Up @@ -344,36 +346,52 @@ protected Options toOptions() {
public ExitStatus processCommand() {
CommandLineParser parser = new DefaultParser();
CommandLine cmdLine;
try {
cmdLine = parser.parse(toOptions(), getExtraArgs().toArray(new String[0]));
} catch (ParseException ex) {
String msg = ex.getMessage();
assert msg != null;
return handleInvalidCommand(msg);
}

if (cmdLine.hasOption(NO_COLOR_OPTION)) {
handleNoColor();
}

if (cmdLine.hasOption(QUIET_OPTION)) {
handleQuiet();
}
// this uses a two phase approach where:
// phase 1: checks if help or version are used
// phase 2: executes the command

// phase 1
ExitStatus retval = null;
if (cmdLine.hasOption(VERSION_OPTION)) {
showVersion();
retval = ExitCode.OK.exit();
} else if (cmdLine.hasOption(HELP_OPTION)) {
showHelp();
retval = ExitCode.OK.exit();
// } else {
// retval = handleInvalidCommand(commandResult, options,
// "Invalid command arguments: " +
// cmdLine.getArgList().stream().collect(Collectors.joining(" ")));
{
try {
Options phase1Options = new Options();
phase1Options.addOption(HELP_OPTION);
phase1Options.addOption(VERSION_OPTION);

cmdLine = parser.parse(phase1Options, getExtraArgs().toArray(new String[0]), true);
} catch (ParseException ex) {
String msg = ex.getMessage();
assert msg != null;
return handleInvalidCommand(msg);
}

if (cmdLine.hasOption(VERSION_OPTION)) {
showVersion();
retval = ExitCode.OK.exit();
} else if (cmdLine.hasOption(HELP_OPTION)) {
showHelp();
retval = ExitCode.OK.exit();
}
}

if (retval == null) {
// phase 2
try {
cmdLine = parser.parse(toOptions(), getExtraArgs().toArray(new String[0]));
} catch (ParseException ex) {
String msg = ex.getMessage();
assert msg != null;
return handleInvalidCommand(msg);
}

if (cmdLine.hasOption(NO_COLOR_OPTION)) {
handleNoColor();
}

if (cmdLine.hasOption(QUIET_OPTION)) {
handleQuiet();
}
retval = invokeCommand(cmdLine);
}

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -26,15 +26,19 @@

package gov.nist.secauto.metaschema.cli.processor.command;

import edu.umd.cs.findbugs.annotations.SuppressFBWarnings;

public class DefaultExtraArgument implements ExtraArgument {
private final String name;
private final boolean required;
private final int number;

@SuppressFBWarnings(value = "CT_CONSTRUCTOR_THROW", justification = "Use of final fields")
public DefaultExtraArgument(String name, boolean required) {
this(name, required, 1);
}

@SuppressFBWarnings(value = "CT_CONSTRUCTOR_THROW", justification = "Use of final fields")
public DefaultExtraArgument(String name, boolean required, int number) {
if (number < 1) {
throw new IllegalArgumentException("number must be a positive value");
Expand Down
2 changes: 1 addition & 1 deletion core/metaschema
Submodule metaschema updated 295 files
Loading
Loading