Skip to content

Commit

Permalink
Remove maven/gradle clean during autobuild
Browse files Browse the repository at this point in the history
Signed-off-by: Rahul Krishna <[email protected]>
  • Loading branch information
rahlk committed Jun 3, 2024
1 parent 3e6e5da commit d7fe0b9
Show file tree
Hide file tree
Showing 2 changed files with 5 additions and 4 deletions.
5 changes: 3 additions & 2 deletions src/main/java/com/ibm/northstar/CodeAnalyzer.java
Original file line number Diff line number Diff line change
Expand Up @@ -120,8 +120,9 @@ private static void analyze() throws IOException, ClassHierarchyException, CallG
if (!Files.exists(outputPath)) {
Files.createDirectories(outputPath);
}
// String parseError = gson.toJson(symbolTableExtractionResult.getRight());
// emit(parseError, "parse_errors.json");
// Make parse error as a list/csv
// String parseError = gson.toJson(symbolTableExtractionResult.getRight());
// emit(parseError, "parse_errors.json");
/* gson.toJson(symbolTableExtractionResult.getRight(), new FileWriter(new File(outputPath.toString(), "parse_errors.json")));
* }
**/
Expand Down
4 changes: 2 additions & 2 deletions src/main/java/com/ibm/northstar/utils/BuildProject.java
Original file line number Diff line number Diff line change
Expand Up @@ -73,7 +73,7 @@ private static boolean mavenBuild(String projectPath) {
return false;
}
String[] mavenCommand = {
MAVEN_CMD, "clean", "package", "-f", projectPath + "/pom.xml", "-B", "-V", "-e", "-Drat.skip",
MAVEN_CMD, "package", "-f", projectPath + "/pom.xml", "-B", "-V", "-e", "-Drat.skip",
"-Dfindbugs.skip", "-Dcheckstyle.skip", "-Dpmd.skip=true", "-Dspotbugs.skip", "-Denforcer.skip",
"-Dmaven.javadoc.skip", "-DskipTests", "-Dmaven.test.skip.exec", "-Dlicense.skip=true",
"-Drat.skip=true", "-Dspotless.check.skip=true" };
Expand All @@ -84,7 +84,7 @@ private static boolean mavenBuild(String projectPath) {
public static boolean gradleBuild(String projectPath) {
// Adjust Gradle command as needed
String gradleWrapper = projectPath + File.separator + GRADLE_CMD;
String[] gradleCommand = { gradleWrapper, "clean", "compileJava", "-p", projectPath };
String[] gradleCommand = { gradleWrapper, "compileJava", "-p", projectPath };
return buildWithTool(gradleCommand);
}

Expand Down

0 comments on commit d7fe0b9

Please sign in to comment.