-
Notifications
You must be signed in to change notification settings - Fork 9
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Tidy up and prepare for productionization (#7)
* Fix API change * EOD * Remove SNAPSHOT dependency * Update spotless plugin version * Add surefire plugin (tree reporter) * First step towards productionization
- Loading branch information
Showing
10 changed files
with
157 additions
and
56 deletions.
There are no files selected for viewing
This file contains 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
This file contains 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
This file contains 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
This file contains 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
29 changes: 29 additions & 0 deletions
29
src/main/java/com/redhat/insights/agent/AgentSubreport.java
This file contains 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 |
---|---|---|
@@ -0,0 +1,29 @@ | ||
/* Copyright (C) Red Hat 2023 */ | ||
package com.redhat.insights.agent; | ||
|
||
import com.fasterxml.jackson.databind.JsonSerializer; | ||
import com.redhat.insights.jars.ClasspathJarInfoSubreport; | ||
import com.redhat.insights.reports.AppInsightsReportSerializer; | ||
import com.redhat.insights.reports.InsightsSubreport; | ||
|
||
public class AgentSubreport implements InsightsSubreport { | ||
|
||
private AgentSubreport() {} | ||
|
||
public static InsightsSubreport of(ClasspathJarInfoSubreport jarsReport) { | ||
return new AgentSubreport(); | ||
} | ||
|
||
@Override | ||
public void generateReport() {} | ||
|
||
@Override | ||
public String getVersion() { | ||
return "1.0.0"; | ||
} | ||
|
||
@Override | ||
public JsonSerializer<InsightsSubreport> getSerializer() { | ||
return new AppInsightsReportSerializer(); | ||
} | ||
} |
This file contains 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
This file contains 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
Oops, something went wrong.