-
Notifications
You must be signed in to change notification settings - Fork 1
Be available as a Java Module #8
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
Closed
Closed
Changes from all commits
Commits
Show all changes
6 commits
Select commit
Hold shift + click to select a range
24b1a5b
wip
nahsra fcfd8fe
updated javadoc version to avoid module generation bug
nahsra 0e94cb5
get rid of metafiles
nahsra 45f182f
Autogenerated JaCoCo coverage badge
41d8964
remove badge updates now that branch restrictions are on
nahsra ba5a961
remove badges
nahsra File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file was deleted.
Oops, something went wrong.
This file was deleted.
Oops, something went wrong.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -15,29 +15,4 @@ jobs: | |
| distribution: 'adopt' | ||
|
|
||
| - name: "Build with Maven" | ||
| run: mvn -Pci verify | ||
|
|
||
| - name: "Generate Coverage Badge" | ||
| id: jacoco | ||
| uses: cicirello/jacoco-badge-generator@v2 | ||
| with: | ||
| generate-branches-badge: true | ||
|
|
||
| - name: "Log coverage percentage" | ||
| run: | | ||
| echo "coverage = ${{ steps.jacoco.outputs.coverage }}" | ||
| echo "branch coverage = ${{ steps.jacoco.outputs.branches }}" | ||
| - name: "Commit the JaCoCo badge (if it changed)" | ||
| run: | | ||
| if [[ `git status --porcelain` ]]; then | ||
| git config --global user.name 'Jacoco Coverage Update Action' | ||
| git config --global user.email '[email protected]' | ||
| git add -A | ||
| git commit -m "Autogenerated JaCoCo coverage badge" | ||
| git push | ||
| fi | ||
| - name: "Upload JaCoCo coverage report" | ||
| uses: actions/upload-artifact@v2 | ||
| with: | ||
| name: jacoco-report | ||
| path: target/site/jacoco/ | ||
| run: mvn -Pci verify | ||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
| @@ -1,6 +1,8 @@ | ||
| # Compiled class file | ||
| *.class | ||
|
|
||
| .DS_Store | ||
|
|
||
| # Log file | ||
| *.log | ||
|
|
||
|
|
||
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Original file line number | Diff line number | Diff line change |
|---|---|---|
|
|
@@ -5,7 +5,7 @@ | |
|
|
||
| <groupId>io.github.pixee</groupId> | ||
| <artifactId>java-security-toolkit</artifactId> | ||
| <version>1.0.7</version> | ||
| <version>1.0.8</version> | ||
|
|
||
| <name>java-security-toolkit</name> | ||
| <description>a library with common security controls</description> | ||
|
|
@@ -58,17 +58,16 @@ | |
| <versions.maven-gpg-plugin>3.0.1</versions.maven-gpg-plugin> | ||
| <versions.jacoco-maven-plugin>0.8.7</versions.jacoco-maven-plugin> | ||
|
|
||
| <versions.maven-javadoc-plugin>2.9.1</versions.maven-javadoc-plugin> | ||
| <versions.maven-javadoc-plugin>3.6.0</versions.maven-javadoc-plugin> | ||
| <versions.nexus-staging-maven-plugin>1.6.13</versions.nexus-staging-maven-plugin> | ||
| </properties> | ||
|
|
||
| <dependencies> | ||
|
|
||
| <!-- needed for XSS escapers --> | ||
| <!-- needed for ValidatingObjectInputStream in deserialization --> | ||
| <dependency> | ||
| <groupId>com.coverity.security</groupId> | ||
| <artifactId>coverity-escapers</artifactId> | ||
| <version>1.1.1</version> | ||
| <groupId>commons-io</groupId> | ||
| <artifactId>commons-io</artifactId> | ||
| <version>2.13.0</version> | ||
| </dependency> | ||
|
|
||
| <!-- needed for command line parsers --> | ||
|
|
@@ -78,24 +77,18 @@ | |
| <version>2.1</version> | ||
| </dependency> | ||
|
|
||
| <!-- needed for ValidatingObjectInputStream in deserialization --> | ||
| <dependency> | ||
| <groupId>commons-io</groupId> | ||
| <artifactId>commons-io</artifactId> | ||
| <version>2.11.0</version> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>animal-sniffer-annotations</artifactId> | ||
| <version>1.23</version> | ||
| <optional>true</optional> | ||
| </dependency> | ||
| <!-- needed for testing deserialization protection --> | ||
| <dependency> | ||
| <groupId>commons-fileupload</groupId> | ||
| <artifactId>commons-fileupload</artifactId> | ||
| <version>1.5</version> | ||
| <scope>test</scope> | ||
| <exclusions> | ||
| <exclusion> | ||
| <groupId>commons-io</groupId> | ||
| <artifactId>commons-io</artifactId> | ||
| </exclusion> | ||
| </exclusions> | ||
| </dependency> | ||
| <dependency> | ||
| <groupId>org.junit.jupiter</groupId> | ||
|
|
@@ -162,30 +155,9 @@ | |
| <artifactId>maven-compiler-plugin</artifactId> | ||
| <version>${versions.maven-compiler-plugin}</version> | ||
| <configuration> | ||
| <source>8</source> | ||
| <target>8</target> | ||
| </configuration> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>animal-sniffer-maven-plugin</artifactId> | ||
| <version>1.23</version> | ||
| <configuration> | ||
| <signature> | ||
| <groupId>org.codehaus.mojo.signature</groupId> | ||
| <artifactId>java18</artifactId> | ||
| <version>1.0</version> | ||
| </signature> | ||
| <source>11</source> | ||
| <target>11</target> | ||
|
Contributor
There was a problem hiding this comment. Choose a reason for hiding this commentThe reason will be displayed to describe this comment to others. Learn more. I wouldn't be too quick to abandon the Java 8 users. We can try modulemaker maven plugin to generate the module-info, so that we don't need to upgrade our source to 11. |
||
| </configuration> | ||
| <executions> | ||
| <execution> | ||
| <id>animal-sniffer</id> | ||
| <phase>test</phase> | ||
| <goals> | ||
| <goal>check</goal> | ||
| </goals> | ||
| </execution> | ||
| </executions> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.jacoco</groupId> | ||
|
|
@@ -276,10 +248,6 @@ | |
| <plugin> | ||
| <artifactId>maven-compiler-plugin</artifactId> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.codehaus.mojo</groupId> | ||
| <artifactId>animal-sniffer-maven-plugin</artifactId> | ||
| </plugin> | ||
| <plugin> | ||
| <groupId>org.jacoco</groupId> | ||
| <artifactId>jacoco-maven-plugin</artifactId> | ||
|
|
||
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Prefer
releasetosourceandtarget. It does the same thing, but also includes the functionality that the animal sniffer was giving you (makes sure you don't use an API not available in the release you're targeting).