1515
1616package org .eclipse .edc .plugins .edcbuild .conventions ;
1717
18- import org .eclipse .edc .plugins .autodoc .AutodocExtension ;
1918import org .eclipse .edc .plugins .edcbuild .extensions .BuildExtension ;
2019import org .eclipse .edc .plugins .edcbuild .extensions .MavenPomExtension ;
2120import org .gradle .api .Action ;
2423import org .gradle .api .publish .PublishingExtension ;
2524import org .gradle .api .publish .maven .MavenPom ;
2625import org .gradle .api .publish .maven .MavenPublication ;
27- import org .jetbrains .annotations .NotNull ;
2826
2927import java .io .File ;
30- import java .nio .file .Path ;
3128
3229import static org .eclipse .edc .plugins .edcbuild .conventions .ConventionFunctions .requireExtension ;
3330
34- /**
31+ /**
3532 * Configures the Maven POM for each project:
3633 * <ul>
3734 * <li>sets project name, description, license, SCM info etc.</li>
@@ -53,11 +50,11 @@ public void apply(Project target) {
5350 .map (p -> (MavenPublication ) p )
5451 .peek (mavenPub -> mavenPub .pom (pom -> setPomInformation (pomExt , target , pom )))
5552 .forEach (mavenPub -> {
56- addArtifactIfExist (target , getManifestFile (target ), mavenPub , artifact -> {
57- artifact .setClassifier ("manifest" );
58- artifact .setType ("json" );
59- artifact .builtBy ("autodoc" );
60- });
53+ // addArtifactIfExist(target, getManifestFile(target), mavenPub, artifact -> {
54+ // artifact.setClassifier("manifest");
55+ // artifact.setType("json");
56+ // artifact.builtBy("autodoc");
57+ // });
6158
6259 var openapiFiles = target .getLayout ().getBuildDirectory ().getAsFile ().get ().toPath ()
6360 .resolve ("docs" ).resolve ("openapi" ).toFile ()
@@ -88,13 +85,13 @@ private void addArtifactIfExist(Project project, File location, MavenPublication
8885 }
8986 }
9087
91- private static @ NotNull File getManifestFile (Project target ) {
92- var autodocExt = requireExtension (target , AutodocExtension .class );
93- var projectBuildDirectory = target .getLayout ().getBuildDirectory ().getAsFile ();
94- var pathToManifest = autodocExt .getOutputDirectory ().convention (projectBuildDirectory ).get ().getAbsolutePath ();
95- var manifestFileName = "edc.json" ;
96- return Path .of (pathToManifest , manifestFileName ).toFile ();
97- }
88+ // private static @NotNull File getManifestFile(Project target) {
89+ // var autodocExt = requireExtension(target, AutodocExtension.class);
90+ // var projectBuildDirectory = target.getLayout().getBuildDirectory().getAsFile();
91+ // var pathToManifest = autodocExt.getOutputDirectory().convention(projectBuildDirectory).get().getAbsolutePath();
92+ // var manifestFileName = "edc.json";
93+ // return Path.of(pathToManifest, manifestFileName).toFile();
94+ // }
9895
9996 private static void setPomInformation (MavenPomExtension pomExt , Project project , MavenPom pom ) {
10097 // these properties are mandatory!
0 commit comments