|
|
@ -1,5 +1,5 @@ |
|
|
|
/* |
|
|
|
/* |
|
|
|
* Copyright 2002-2019 the original author or authors. |
|
|
|
* Copyright 2002-2023 the original author or authors. |
|
|
|
* |
|
|
|
* |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* Licensed under the Apache License, Version 2.0 (the "License"); |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
* you may not use this file except in compliance with the License. |
|
|
@ -131,8 +131,9 @@ public class ApiDiffPlugin implements Plugin<Project> { |
|
|
|
} |
|
|
|
} |
|
|
|
|
|
|
|
|
|
|
|
private File getOutputFile(String baseLineVersion, Project project) { |
|
|
|
private File getOutputFile(String baseLineVersion, Project project) { |
|
|
|
Path outDir = Paths.get(project.getRootProject().getBuildDir().getAbsolutePath(), |
|
|
|
String buildDirectoryPath = project.getRootProject() |
|
|
|
"reports", "api-diff", |
|
|
|
.getLayout().getBuildDirectory().getAsFile().get().getAbsolutePath(); |
|
|
|
|
|
|
|
Path outDir = Paths.get(buildDirectoryPath, "reports", "api-diff", |
|
|
|
baseLineVersion + "_to_" + project.getRootProject().getVersion()); |
|
|
|
baseLineVersion + "_to_" + project.getRootProject().getVersion()); |
|
|
|
return project.file(outDir.resolve(project.getName() + ".html").toString()); |
|
|
|
return project.file(outDir.resolve(project.getName() + ".html").toString()); |
|
|
|
} |
|
|
|
} |
|
|
|