Skip to content

Commit

Permalink
Merge main 1.5.0 release to homepage
Browse files Browse the repository at this point in the history
Merge commit '3caa01a2ef5216d4e298f0c82872453298dd1ea5' into homepage

# Conflicts:
#	codecov.yml
  • Loading branch information
ee-usgs committed Oct 11, 2022
2 parents 641db9f + 3caa01a commit d632675
Show file tree
Hide file tree
Showing 213 changed files with 9,324 additions and 5,235 deletions.
3 changes: 3 additions & 0 deletions .codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
---
exclude_paths:
- "**/src/test/**"
79 changes: 79 additions & 0 deletions .github/workflows/codacy.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,79 @@

# This workflow checks out code, performs a Codacy security scan
# and integrates the results with the
# GitHub Advanced Security code scanning feature. For more information on
# the Codacy security scan action usage and parameters, see
# https://github.com/codacy/codacy-analysis-cli-action.
# For more information on Codacy Analysis CLI in general, see
# https://github.com/codacy/codacy-analysis-cli.

name: Codacy Security Scan

on:
push:
branches: '*'
paths-ignore:
- '**.md'
- '**.txt'
- '**.gitignore'
- '**.gif'
- '**.png'
pull_request:

permissions:
contents: read

jobs:

build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Build test with coverage
run: mvn --batch-mode --update-snapshots clean test -Djacoco.skip=false
- name: 'Upload Target'
uses: actions/upload-artifact@v3
with:
name: target
path: target
retention-days: 5

codacy-security-scan:
permissions:
contents: read # for actions/checkout to fetch code
security-events: write # for github/codeql-action/upload-sarif to upload SARIF results
name: Codacy Security Scan
runs-on: ubuntu-latest
steps:
# Checkout the repository to the GitHub Actions runner
- name: Checkout code
uses: actions/checkout@v2

# Execute Codacy Analysis CLI and generate a SARIF output with the security issues identified during the analysis
- name: Run Codacy Analysis CLI
uses: codacy/codacy-analysis-cli-action@d840f886c4bd4edc059706d09c6a1586111c540b
with:
# Check https://github.com/codacy/codacy-analysis-cli#project-token to get your project token from your Codacy repository
# You can also omit the token and run the tools that support default configurations
project-token: ${{ secrets.CODACY_PROJECT_TOKEN }}
verbose: true
output: results.sarif
format: sarif
# Adjust severity of non-security issues
gh-code-scanning-compat: true
# Force 0 exit code to allow SARIF file generation
# This will handover control about PR rejection to the GitHub side
max-allowed-issues: 2147483647

# Upload the SARIF file generated in the previous step
- name: Upload SARIF results file
uses: github/codeql-action/upload-sarif@v1
with:
sarif_file: results.sarif
36 changes: 36 additions & 0 deletions .github/workflows/maven-ci.yaml
Original file line number Diff line number Diff line change
@@ -0,0 +1,36 @@
name: Java CI

on:
push:
branches: '*'
paths-ignore:
- '**.md'
- '**.txt'
- '**.gitignore'
- '**.gif'
- '**.png'
pull_request:

jobs:
build:
runs-on: ubuntu-latest

steps:
- uses: actions/checkout@v3
- name: Set up JDK 8
uses: actions/setup-java@v3
with:
java-version: '8'
distribution: 'adopt'
cache: maven
- name: Build test with coverage
run: mvn --batch-mode --update-snapshots clean test -Djacoco.skip=false
- name: Upload coverage to Codacy
shell: bash
env:
CODACY_PROJECT_TOKEN: ${{ secrets.CODACY_PROJECT_TOKEN }}
run: |
echo "Argblarb line 1"
echo "Argblarb $GITHUB_SHA"
echo "Argblarb line 3"
bash <(curl -Ls https://coverage.codacy.com/get.sh) report -l Java --force-coverage-parser jacoco --commit-uuid $GITHUB_SHA --project-token $CODACY_PROJECT_TOKEN $(find -name 'jacoco*.xml' -printf '-r %p ')
27 changes: 11 additions & 16 deletions README.md
Original file line number Diff line number Diff line change
@@ -1,27 +1,22 @@
[![Build Status](https://travis-ci.com/eeverman/andhow.svg?branch=master)](https://travis-ci.com/github/eeverman/andhow)
[![codecov](https://codecov.io/gh/eeverman/andhow/branch/main/graph/badge.svg)](https://codecov.io/gh/eeverman/andhow)
### AndHow! Configurable constants for Java application configuration
![Git CI Status](https://github.com/eeverman/andhow/actions/workflows/maven-ci.yaml/badge.svg?branch=main)
[![Codacy Badge](https://app.codacy.com/project/badge/Coverage/e306661b53f2463fab9156bf38af58f7)](https://www.codacy.com/gh/eeverman/andhow/dashboard?utm_source=github.com&utm_medium=referral&utm_content=eeverman/andhow&utm_campaign=Badge_Coverage)
[![Javadocs](https://www.javadoc.io/badge/org.yarnandtail/andhow.svg)](https://www.javadoc.io/doc/org.yarnandtail/andhow)
&nbsp;&nbsp;&nbsp;&nbsp;
<br/>
**[AndHow Home](https://www.andhowconfig.org)**
**[User Guide](https://www.andhowconfig.org/user-guide)**
**[User forum](https://groups.google.com/d/forum/andhowuser)**
**[Live-code Demo](https://www.andhowconfig.org/live-code-quickstart)**

![AndHow animation](https://github.com/eeverman/andhow-assets/blob/main/andhow_0.5_1280x320_highres_24fps.gif?raw=true)
---
### AndHow! Configurable constants for Java application configuration

#### New Release: 0.4.2, October 24, 2021 - [notes](https://github.com/eeverman/andhow/releases/tag/andhow-0.4.2).
<img src="https://github.com/eeverman/andhow/raw/master/logo/AndHow-empty-circle-combination.png" width="55" height="72" alt="AndHow's new logo" align="left">

This release includes several bug fixes and adds a new
[export feature](https://www.andhowconfig.org/user-guide/integration-and-exports#manual-export-to-maps-java.util.properties-and-more)
to better support configuring other frameworks that accept configuration as a `Map` or `java.util.Properties`.
_Special thanks to [Alex Karpov](https://github.com/alex-kar)_ for many high-quality code fixes and
improvements in this release.
#### New Release: 1.5.0, October 10, 2022 - [notes](https://github.com/eeverman/andhow/releases/tag/andhow-1.5.0).
<img src="https://github.com/eeverman/andhow/raw/master/logo/AndHow-empty-circle-combination.png" width="55" height="72" alt="AndHow's logo" align="left">
<p>
This release jumps from 0.4.2 to 1.5.0, reflecting that AndHow has been in production long enough to be considered production ready, and includes some API changes. This release removes deprecated methods, clarifies / subtly changes some behavior, and has general improvements and bug fixes. See the full [release notes](https://github.com/eeverman/andhow/releases/tag/andhow-1.5.0).

---
![Andhow Visual](andhow.gif)

### What if you could configure constants? What if Java application configuration _was_ just constants?
AndHow configures your application with strongly typed Properties that work just like `static final`
constants in your code. Values for Properties are loaded from multiple sources and are validated
Expand All @@ -41,7 +36,7 @@ at startup.
<dependency>
<groupId>org.yarnandtail</groupId>
<artifactId>andhow</artifactId>
<version>0.4.2</version>
<version>1.5.0</version>
</dependency>
```

Expand Down
15 changes: 4 additions & 11 deletions andhow-annotation-processor/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yarnandtail</groupId>
<artifactId>andhow-parent</artifactId>
<version>0.4.2</version>
<version>1.5.0</version>
</parent>

<artifactId>andhow-annotation-processor</artifactId>
Expand All @@ -15,28 +15,21 @@
</description>

<dependencies>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>andhow-core</artifactId>
<version>${project.version}</version>
<scope>provided</scope>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>andhow-annotation-processor-test-harness</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>

<dependency>
<groupId>${project.groupId}</groupId>
<artifactId>andhow-test-harness</artifactId>
<version>${project.version}</version>
<scope>test</scope>
</dependency>


<!-- All dependencies are test dependencies only -->
<dependency>
<groupId>com.google.testing.compile</groupId>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -42,7 +42,7 @@ public class CompileUnit {
* inner is then the normal iteration order of the queue from the head to
* the tail. Never null.
*/
private ArrayDeque<SimpleType> innerPathStack = new ArrayDeque();
private final ArrayDeque<SimpleType> innerPathStack = new ArrayDeque();

/**
* Construct a new CompileUnit, which always is for a specific top level
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ public void testComplexNestedPropertySampleClass() throws Exception {
task.setProcessors(Collections.singleton(new AndHowCompileProcessor()));
task.call();

Object genClass = loader.loadClass(genName(pkg, classSimpleName)).newInstance();
Object genClass = loader.loadClass(genName(pkg, classSimpleName)).getDeclaredConstructor().newInstance();
String genSvsFile = IOUtil.toString(
loader.getResourceAsStream(REGISTRAR_SVS_PATH), Charset.forName("UTF-8"));

Expand Down Expand Up @@ -101,7 +101,7 @@ public void testSimpleHappyPathClass() throws Exception {
task.setProcessors(Collections.singleton(new AndHowCompileProcessor()));
task.call();

Object genClass = loader.loadClass(genName(pkg, classSimpleName)).newInstance();
Object genClass = loader.loadClass(genName(pkg, classSimpleName)).getDeclaredConstructor().newInstance();
String genSvsFile = IOUtil.toString(
loader.getResourceAsStream(REGISTRAR_SVS_PATH), Charset.forName("UTF-8"));

Expand Down
15 changes: 10 additions & 5 deletions andhow-core/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
<parent>
<groupId>org.yarnandtail</groupId>
<artifactId>andhow-parent</artifactId>
<version>0.4.2</version>
<version>1.5.0</version>
</parent>

<artifactId>andhow-core</artifactId>
Expand All @@ -15,10 +15,6 @@

<dependencies>
<!-- All dependencies are test dependencies only -->
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-test</artifactId>
</dependency>
<dependency>
<groupId>commons-io</groupId>
<artifactId>commons-io</artifactId>
Expand All @@ -35,5 +31,14 @@
<version>${project.version}</version>
<scope>test</scope>
</dependency>
<dependency>
<groupId>com.github.h-thurow</groupId>
<artifactId>simple-jndi</artifactId>
</dependency>
<dependency>
<!-- Optional dependency of simple-jndi -->
<groupId>ch.qos.logback</groupId>
<artifactId>logback-classic</artifactId>
</dependency>
</dependencies>
</project>
Loading

0 comments on commit d632675

Please sign in to comment.