|
|
|
@ -1,5 +1,5 @@
@@ -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"); |
|
|
|
|
* you may not use this file except in compliance with the License. |
|
|
|
@ -131,9 +131,9 @@ public class ApiDiffPlugin implements Plugin<Project> {
@@ -131,9 +131,9 @@ public class ApiDiffPlugin implements Plugin<Project> {
|
|
|
|
|
} |
|
|
|
|
|
|
|
|
|
private File getOutputFile(String baseLineVersion, Project project) { |
|
|
|
|
Path outDir = Paths.get(project.getRootProject() |
|
|
|
|
.getLayout().getBuildDirectory().getAsFile().get().getAbsolutePath(), |
|
|
|
|
"reports", "api-diff", |
|
|
|
|
String buildDirectoryPath = project.getRootProject() |
|
|
|
|
.getLayout().getBuildDirectory().getAsFile().get().getAbsolutePath(); |
|
|
|
|
Path outDir = Paths.get(buildDirectoryPath, "reports", "api-diff", |
|
|
|
|
baseLineVersion + "_to_" + project.getRootProject().getVersion()); |
|
|
|
|
return project.file(outDir.resolve(project.getName() + ".html").toString()); |
|
|
|
|
} |
|
|
|
|