Skip to content

Commit a62e9b0

Browse files
committed
chore: rename trustification references to guacsec
1 parent f25f276 commit a62e9b0

24 files changed

Lines changed: 1479 additions & 1465 deletions

File tree

.github/ISSUE_TEMPLATE/config.yml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -2,5 +2,5 @@
22
blank_issues_enabled: false
33
contact_links:
44
- name: GitHub Discussions
5-
url: https://github.com/trustification/exhort-java-api/discussions/
5+
url: https://github.com/guacsec/trustify-da-java-client/discussions/
66
about: You can also use Discussions for questions and ideas.

.github/workflows/release.yml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -19,7 +19,7 @@ jobs:
1919
name: Deploy release
2020
environment: staging
2121
# only trigger the workflow on the base repository and if the merged branch name starts with release.
22-
if: (github.repository_owner == 'trustification' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') ) || (github.repository_owner == 'trustification' && github.ref_name == 'main' && contains(github.event.commits[0].message, 'release/directly'))
22+
if: (github.repository_owner == 'guacsec' && github.event.pull_request.merged == true && startsWith(github.head_ref, 'release/') ) || (github.repository_owner == 'guacsec' && github.ref_name == 'main' && contains(github.event.commits[0].message, 'release/directly'))
2323
outputs:
2424
project_version: ${{ steps.project.outputs.version }}
2525
last_release_tag: ${{ steps.last-release.outputs.tag-name }}
@@ -72,7 +72,7 @@ jobs:
7272
release:
7373
runs-on: ubuntu-latest
7474
name: Release
75-
if: (github.repository_owner == 'trustification' && startsWith(github.head_ref, 'release/')) || (github.repository_owner == 'trustification' && github.ref_name == 'main' && contains(github.event.commits[0].message, 'release/directly'))
75+
if: (github.repository_owner == 'guacsec' && startsWith(github.head_ref, 'release/')) || (github.repository_owner == 'guacsec' && github.ref_name == 'main' && contains(github.event.commits[0].message, 'release/directly'))
7676
environment: staging
7777
needs: deploy
7878
steps:

.github/workflows/stage.yml

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -18,7 +18,7 @@ jobs:
1818
name: Deploy snapshot
1919
env:
2020
RUN_PYTHON_BIN: ${{ vars.RUN_PYTHON_BIN }}
21-
if: github.repository_owner == 'trustification' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
21+
if: github.repository_owner == 'guacsec' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
2222
outputs:
2323
project_version: ${{ steps.project.outputs.version }}
2424
steps:
@@ -40,7 +40,7 @@ jobs:
4040
- name: Deploy snapshot to GitHub
4141
if: |
4242
contains(steps.project.outputs.version, 'SNAPSHOT') &&
43-
github.repository == 'trustification/exhort-java-api'
43+
github.repository == 'guacsec/trustify-da-java-client'
4444
env:
4545
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
4646
run: mvn deploy -Pprepare-deployment,deploy-github -B -ff -DskipTests=true -Dskip.junit_platform=true
@@ -52,7 +52,7 @@ jobs:
5252
needs: deploy
5353
if: |
5454
contains(needs.deploy.outputs.project_version, 'SNAPSHOT') &&
55-
github.repository_owner == 'trustification' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
55+
github.repository_owner == 'guacsec' && github.event.pull_request.merged == true && !startsWith(github.head_ref, 'release/')
5656
steps:
5757
- name: Check for existing ${{ needs.deploy.outputs.project_version }} release
5858
id: existing_release

CONTRIBUTING.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,4 @@
1-
# Contributing to *exhort-java-api*<br/>![java-version][10]
1+
# Contributing to *trustify-da-java-client*<br/>![java-version][10]
22

33
* Fork the repository
44
* Create a new branch

README.md

Lines changed: 23 additions & 23 deletions
Original file line numberDiff line numberDiff line change
@@ -1,9 +1,9 @@
11
# CodeReady Dependency Analytics Java API<br/>![latest-no-snapshot][0] ![latest-snapshot][1]
22

3-
* Looking for our JavaScript/TypeScript API? Try [Exhort JavaScript API](https://github.com/trustification/exhort-javascript-api).
4-
* Looking for our Backend implementation? Try [Exhort](https://github.com/trustification/exhort).
3+
* Looking for our JavaScript/TypeScript API? Try [Trustify DA JavaScript Client](https://github.com/guacsec/trustify-da-javascript-client).
4+
* Looking for our Backend implementation? Try [Trustify Dependency Analytics](https://github.com/guacsec/trustify-dependency-analytics).
55

6-
The _Exhort Java API_ module is deployed to _GitHub Package Registry_.
6+
The _Trustify DA Java Client_ module is deployed to _GitHub Package Registry_.
77

88
<details>
99
<summary>Click here for configuring <em>GHPR</em> registry access.</summary>
@@ -69,7 +69,7 @@ encrypted-token-will-appear-here
6969
...
7070
<repository>
7171
<id>github</id>
72-
<url>https://maven.pkg.github.com/trustification/exhort-java-api</url>
72+
<url>https://maven.pkg.github.com/guacsec/trustify-da-java-client</url>
7373
</repository>
7474
...
7575
</repositories>
@@ -83,7 +83,7 @@ encrypted-token-will-appear-here
8383
repositories {
8484
...
8585
maven {
86-
url 'https://maven.pkg.github.com/trustification/exhort-java-api'
86+
url 'https://maven.pkg.github.com/guacsec/trustify-da-java-client'
8787
credentials {
8888
username System.getenv("GITHUB_USERNAME")
8989
password System.getenv("GITHUB_TOKEN")
@@ -102,8 +102,8 @@ repositories {
102102

103103
```xml
104104
<dependency>
105-
<groupId>com.redhat.exhort</groupId>
106-
<artifactId>exhort-java-api</artifactId>
105+
<groupId>io.github.guacsec</groupId>
106+
<artifactId>trustify-da-java-client</artifactId>
107107
<version>0.0.9-SNAPSHOT</version>
108108
</dependency>
109109
```
@@ -113,7 +113,7 @@ repositories {
113113
<em>Gradle</em> users, add a dependency in <em>build.gradle</em>
114114

115115
```groovy
116-
implementation 'com.redhat.exhort:exhort-java-api:${exhort-java-api.version}'
116+
implementation 'io.github.guacsec:trustify-da-java-client:${trustify-da-java-client.version}'
117117
```
118118
</li>
119119
</ul>
@@ -124,7 +124,7 @@ If working with modules, configure module read
124124

125125
```java
126126
module x { // module-info.java
127-
requires com.redhat.exhort;
127+
requires io.github.guacsec;
128128
}
129129
```
130130
</li>
@@ -311,7 +311,7 @@ All of the 5 above examples are valid for marking a package to be ignored
311311

312312
<h3>Customization</h3>
313313
<p>
314-
There are 2 approaches for customizing <em>Exhort Java API</em>. Using <em>Environment Variables</em> or
314+
There are 2 approaches for customizing <em>Trustify DA Java Client</em>. Using <em>Environment Variables</em> or
315315
<em>Java Properties</em>:
316316

317317
```java
@@ -561,20 +561,20 @@ mvn clean package
561561
```
562562

563563
This creates two JAR files in the `target/` directory:
564-
- `exhort-java-api.jar` - Library JAR (for programmatic use)
565-
- `exhort-java-api-cli.jar` - CLI JAR (includes all dependencies)
564+
- `trustify-da-java-client.jar` - Library JAR (for programmatic use)
565+
- `trustify-da-java-client-cli.jar` - CLI JAR (includes all dependencies)
566566

567567
#### Usage
568568

569569
```shell
570-
java -jar target/exhort-java-api-cli.jar <COMMAND> <FILE_PATH> [OPTIONS]
570+
java -jar target/trustify-da-java-client-cli.jar <COMMAND> <FILE_PATH> [OPTIONS]
571571
```
572572

573573
#### Commands
574574

575575
**Stack Analysis**
576576
```shell
577-
java -jar exhort-java-api-cli.jar stack <file_path> [--summary|--html]
577+
java -jar trustify-da-java-client-cli.jar stack <file_path> [--summary|--html]
578578
```
579579
Perform stack analysis on the specified manifest file.
580580

@@ -585,7 +585,7 @@ Options:
585585

586586
**Component Analysis**
587587
```shell
588-
java -jar exhort-java-api-cli.jar component <file_path> [--summary]
588+
java -jar trustify-da-java-client-cli.jar component <file_path> [--summary]
589589
```
590590
Perform component analysis on the specified manifest file.
591591

@@ -597,22 +597,22 @@ Options:
597597

598598
```shell
599599
# Stack analysis with JSON output (default)
600-
java -jar exhort-java-api-cli.jar stack /path/to/pom.xml
600+
java -jar trustify-da-java-client-cli.jar stack /path/to/pom.xml
601601

602602
# Stack analysis with summary
603-
java -jar exhort-java-api-cli.jar stack /path/to/package.json --summary
603+
java -jar trustify-da-java-client-cli.jar stack /path/to/package.json --summary
604604

605605
# Stack analysis with HTML output
606-
java -jar exhort-java-api-cli.jar stack /path/to/build.gradle --html
606+
java -jar trustify-da-java-client-cli.jar stack /path/to/build.gradle --html
607607

608608
# Component analysis with JSON output (default)
609-
java -jar exhort-java-api-cli.jar component /path/to/requirements.txt
609+
java -jar trustify-da-java-client-cli.jar component /path/to/requirements.txt
610610

611611
# Component analysis with summary
612-
java -jar exhort-java-api-cli.jar component /path/to/go.mod --summary
612+
java -jar trustify-da-java-client-cli.jar component /path/to/go.mod --summary
613613

614614
# Show help
615-
java -jar exhort-java-api-cli.jar --help
615+
java -jar trustify-da-java-client-cli.jar --help
616616
```
617617

618618
### Image Support
@@ -694,5 +694,5 @@ Customize image analysis optionally by using *Environment Variables* or *Java Pr
694694

695695

696696
<!-- Badge links -->
697-
[0]: https://img.shields.io/github/v/release/trustification/exhort-java-api?color=green&label=latest
698-
[1]: https://img.shields.io/github/v/release/trustification/exhort-java-api?color=yellow&include_prereleases&label=snapshot
697+
[0]: https://img.shields.io/github/v/release/guacsec/trustify-da-java-client?color=green&label=latest
698+
[1]: https://img.shields.io/github/v/release/guacsec/trustify-da-java-client?color=yellow&include_prereleases&label=snapshot

catalog-info.yaml

Lines changed: 7 additions & 7 deletions
Original file line numberDiff line numberDiff line change
@@ -2,15 +2,15 @@ apiVersion: backstage.io/v1alpha1
22
kind: Component
33
metadata:
44
annotations:
5-
backstage.io/kubernetes-id: exhort-java-api
6-
github.com/project-slug: trustification/exhort-java-api
5+
backstage.io/kubernetes-id: trustify-da-java-client
6+
github.com/project-slug: guacsec/trustify-da-java-client
77
github.com/project-readme-path: README.md
8-
backstage.io/view-url: https://github.com/trustification/exhort-java-api/blob/main/catalog-info.yaml
9-
backstage.io/edit-url: https://github.com/trustification/exhort-java-api/blob/main/catalog-info.yaml
10-
backstage.io/source-location: url:https://github.com/trustification/exhort-java-api
8+
backstage.io/view-url: https://github.com/guacsec/trustify-da-java-client/blob/main/catalog-info.yaml
9+
backstage.io/edit-url: https://github.com/guacsec/trustify-da-java-client/blob/main/catalog-info.yaml
10+
backstage.io/source-location: url:https://github.com/guacsec/trustify-da-java-client
1111
rhda/manifest-file-path: package.json
12-
backstage.io/techdocs-ref: url:https://github.com/trustification/exhort-java-api
13-
name: exhort-java-api
12+
backstage.io/techdocs-ref: url:https://github.com/guacsec/trustify-da-java-client
13+
name: trustify-da-java-client
1414
tags:
1515
- rhda
1616
spec:

pom.xml

Lines changed: 12 additions & 12 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@
33
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
44
<modelVersion>4.0.0</modelVersion>
55

6-
<groupId>com.redhat.exhort</groupId>
7-
<artifactId>exhort-java-api</artifactId>
6+
<groupId>io.github.guacsec</groupId>
7+
<artifactId>trustify-da-java-client</artifactId>
88
<version>0.0.9-SNAPSHOT</version>
9-
<name>Exhort Java API</name>
10-
<description>Exhort Java API</description>
11-
<url>https://github.com/trustification/exhort-java-api#readme</url>
9+
<name>Trustify DA Java Client</name>
10+
<description>Trustify DA Java Client</description>
11+
<url>https://github.com/guacsec/trustify-da-java-client#readme</url>
1212
<inceptionYear>2023</inceptionYear>
1313

1414
<properties>
@@ -87,19 +87,19 @@
8787

8888
<issueManagement>
8989
<system>GitHub Issues</system>
90-
<url>https://github.com/trustification/exhort-java-api/issues</url>
90+
<url>https://github.com/guacsec/trustify-da-java-client/issues</url>
9191
</issueManagement>
9292

9393
<scm>
94-
<url>https://github.com/trustification/exhort-java-api</url>
95-
<connection>scm:git:git@github.com:trustification/exhort-java-api.git</connection>
96-
<developerConnection>scm:git:git@github.com:trustification/exhort-java-api.git</developerConnection>
94+
<url>https://github.com/guacsec/trustify-da-java-client</url>
95+
<connection>scm:git:git@github.com:guacsec/trustify-da-java-client.git</connection>
96+
<developerConnection>scm:git:git@github.com:guacsec/trustify-da-java-client.git</developerConnection>
9797
<tag>HEAD</tag>
9898
</scm>
9999

100100
<ciManagement>
101101
<system>GitHub Workflows</system>
102-
<url>https://github.com/trustification/exhort-java-api/actions</url>
102+
<url>https://github.com/guacsec/trustify-da-java-client/actions</url>
103103
</ciManagement>
104104

105105
<dependencyManagement>
@@ -889,11 +889,11 @@ limitations under the License.]]>
889889
<distributionManagement>
890890
<repository>
891891
<id>github</id>
892-
<url>https://maven.pkg.github.com/trustification/exhort-java-api</url>
892+
<url>https://maven.pkg.github.com/guacsec/trustify-da-java-client</url>
893893
</repository>
894894
<snapshotRepository>
895895
<id>github</id>
896-
<url>https://maven.pkg.github.com/trustification/exhort-java-api</url>
896+
<url>https://maven.pkg.github.com/guacsec/trustify-da-java-client</url>
897897
</snapshotRepository>
898898
</distributionManagement>
899899
<build>

src/main/java/com/redhat/exhort/impl/ExhortApi.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -197,7 +197,7 @@ public static HttpClient createHttpClient() {
197197
private String commonHookBeginning(boolean startOfApi) {
198198
if (startOfApi) {
199199
if (debugLoggingIsNeeded()) {
200-
LOG.info("Start of exhort-java-api client");
200+
LOG.info("Start of trustify-da-java-client client");
201201
LOG.info(String.format("Starting time of API: %s", LocalDateTime.now()));
202202
}
203203
} else {

src/main/resources/cli_help.txt

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
Exhort Java API CLI
22

33
USAGE:
4-
java -jar exhort-java-api.jar <COMMAND> <FILE_PATH> [OPTIONS]
4+
java -jar trustify-da-java-client-cli.jar <COMMAND> <FILE_PATH> [OPTIONS]
55

66
COMMANDS:
77
stack <file_path> [--summary|--html]
@@ -21,7 +21,7 @@ OPTIONS:
2121
-h, --help Show this help message
2222

2323
EXAMPLES:
24-
java -jar exhort-java-api.jar stack /path/to/pom.xml
25-
java -jar exhort-java-api.jar stack /path/to/package.json --summary
26-
java -jar exhort-java-api.jar stack /path/to/build.gradle --html
27-
java -jar exhort-java-api.jar component /path/to/requirements.txt
24+
java -jar trustify-da-java-client-cli.jar stack /path/to/pom.xml
25+
java -jar trustify-da-java-client-cli.jar stack /path/to/package.json --summary
26+
java -jar trustify-da-java-client-cli.jar stack /path/to/build.gradle --html
27+
java -jar trustify-da-java-client-cli.jar component /path/to/requirements.txt

src/test/java/com/redhat/exhort/cli/AppTest.java

Lines changed: 20 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -75,7 +75,10 @@ void main_with_help_flag_should_print_help(String helpFlag) {
7575
mockedAppUtils.verify(() -> printLine(contains("USAGE:")));
7676
mockedAppUtils.verify(
7777
() ->
78-
printLine(contains("java -jar exhort-java-api.jar <COMMAND> <FILE_PATH> [OPTIONS]")));
78+
printLine(
79+
contains(
80+
"java -jar trustify-da-java-client-cli.jar <COMMAND> <FILE_PATH>"
81+
+ " [OPTIONS]")));
7982
}
8083
}
8184

@@ -96,7 +99,10 @@ void help_should_contain_usage_section() {
9699
mockedAppUtils.verify(() -> printLine(contains("USAGE:")));
97100
mockedAppUtils.verify(
98101
() ->
99-
printLine(contains("java -jar exhort-java-api.jar <COMMAND> <FILE_PATH> [OPTIONS]")));
102+
printLine(
103+
contains(
104+
"java -jar trustify-da-java-client-cli.jar <COMMAND> <FILE_PATH>"
105+
+ " [OPTIONS]")));
100106
}
101107
}
102108

@@ -158,19 +164,27 @@ void help_should_contain_examples_section() {
158164

159165
mockedAppUtils.verify(() -> printLine(contains("EXAMPLES:")));
160166
mockedAppUtils.verify(
161-
() -> printLine(contains("java -jar exhort-java-api.jar stack /path/to/pom.xml")));
167+
() ->
168+
printLine(
169+
contains("java -jar trustify-da-java-client-cli.jar stack /path/to/pom.xml")));
162170
mockedAppUtils.verify(
163171
() ->
164172
printLine(
165-
contains("java -jar exhort-java-api.jar stack /path/to/package.json --summary")));
173+
contains(
174+
"java -jar trustify-da-java-client-cli.jar stack /path/to/package.json"
175+
+ " --summary")));
166176
mockedAppUtils.verify(
167177
() ->
168178
printLine(
169-
contains("java -jar exhort-java-api.jar stack /path/to/build.gradle --html")));
179+
contains(
180+
"java -jar trustify-da-java-client-cli.jar stack /path/to/build.gradle"
181+
+ " --html")));
170182
mockedAppUtils.verify(
171183
() ->
172184
printLine(
173-
contains("java -jar exhort-java-api.jar component /path/to/requirements.txt")));
185+
contains(
186+
"java -jar trustify-da-java-client-cli.jar component"
187+
+ " /path/to/requirements.txt")));
174188
}
175189
}
176190

0 commit comments

Comments
 (0)