Skip to content

Commit

Permalink
Fix up naming and add more docs
Browse files Browse the repository at this point in the history
  • Loading branch information
JonathanGiles committed Jul 15, 2024
1 parent 4c386ce commit 2cf109c
Show file tree
Hide file tree
Showing 11 changed files with 57 additions and 13 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@

<parent>
<groupId>com.microsoft.aspire</groupId>
<artifactId>aspire4j-extensions-manifest-ext</artifactId>
<artifactId>aspire4j-extensions-manifold-ext</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>aspire4j-extensions-azure-storage-ext</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.microsoft.aspire</groupId>
Expand Down
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package azure.storage.manifest.extensions.com.microsoft.aspire.DistributedApplication;
package manifold.azure.storage.extensions.com.microsoft.aspire.DistributedApplication;

import com.microsoft.aspire.extensions.azure.storage.resources.AzureStorageResource;
import manifold.ext.rt.api.Extension;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/**
* An Aspire extension providing support for Azure Storage.
*/
module com.microsoft.aspire.extensions.manifest.azure.storage {
module com.microsoft.aspire.extensions.manifold.azure.storage {
requires transitive com.microsoft.aspire.extensions.azure.storage;
requires manifold.rt;
requires manifold.ext.rt;

exports azure.storage.manifest.extensions.com.microsoft.aspire.DistributedApplication;
exports manifold.azure.storage.extensions.com.microsoft.aspire.DistributedApplication;
}
Original file line number Diff line number Diff line change
Expand Up @@ -11,7 +11,7 @@
<relativePath>../../pom.xml</relativePath>
</parent>

<artifactId>aspire4j-extensions-manifest-ext</artifactId>
<artifactId>aspire4j-extensions-manifold-ext</artifactId>
<version>1.0-SNAPSHOT</version>
<packaging>pom</packaging>

Expand Down Expand Up @@ -54,6 +54,20 @@
</annotationProcessorPaths>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>3.4.2</version>
<configuration>
<archive>
<manifestEntries>
<!--class files as source must be available for extension method classes-->
<Contains-Sources>java,class</Contains-Sources>
</manifestEntries>
</archive>
</configuration>
</plugin>
</plugins>
</build>
</project>
5 changes: 5 additions & 0 deletions aspire4j/extensions/manifold/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
# Aspire4J Manifold Extensions

Experimental extension modules using the [Manifold] extensions functionality. These extension modules, when added to your project, will enable additional APIs in the core APIs in the Aspire4J framework (most notably, on DistributedApplication).

[Manifold]: http://manifold.systems/
Original file line number Diff line number Diff line change
Expand Up @@ -6,14 +6,18 @@

<parent>
<groupId>com.microsoft.aspire</groupId>
<artifactId>aspire4j-extensions-manifest-ext</artifactId>
<artifactId>aspire4j-extensions-manifold-ext</artifactId>
<version>1.0-SNAPSHOT</version>
<relativePath>../pom.xml</relativePath>
</parent>

<artifactId>aspire4j-extensions-spring-ext</artifactId>
<version>1.0-SNAPSHOT</version>

<properties>
<maven.javadoc.skip>true</maven.javadoc.skip>
</properties>

<dependencies>
<dependency>
<groupId>com.microsoft.aspire</groupId>
Expand Down
19 changes: 19 additions & 0 deletions aspire4j/extensions/manifold/spring-ext/readme.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
# Aspire4J Manifold Extensions - Spring

Experimental extension modules using the [Manifold] extensions functionality. To include this project dependency in your project, add the following to your `pom.xml` file:

```xml
<dependency>
<groupId>com.microsoft.aspire</groupId>
<artifactId>aspire4j-extensions-spring-ext</artifactId>
<version>1.0-SNAPSHOT</version>
</dependency>
```

This extension module provides the following extensions:

* `DistributedApplication`
* `addSpringProject(String name)`
* `addEurekaServiceDiscovery(String name)`

[Manifold]: http://manifold.systems/
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
package spring.manifest.extensions.com.microsoft.aspire.DistributedApplication;
package manifold.spring.extensions.com.microsoft.aspire.DistributedApplication;

import com.microsoft.aspire.extensions.microservice.common.resources.EurekaServiceDiscovery;
import com.microsoft.aspire.extensions.spring.resources.SpringProject;
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,10 +2,10 @@
/**
* An Aspire extension providing support for <a href="https://spring.io">Spring</a> projects.
*/
module com.microsoft.aspire.extensions.manifest.spring {
module com.microsoft.aspire.extensions.manifold.spring {
requires transitive com.microsoft.aspire.extensions.spring;
requires manifold.rt;
requires manifold.ext.rt;

exports spring.manifest.extensions.com.microsoft.aspire.DistributedApplication;
exports manifold.spring.extensions.com.microsoft.aspire.DistributedApplication;
}
5 changes: 2 additions & 3 deletions aspire4j/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -36,8 +36,8 @@
<module>extensions/quarkus</module>
<module>extensions/spring</module>

<!-- manifest extension libraries -->
<module>extensions/manifest</module>
<!-- manifold extension libraries -->
<module>extensions/manifold</module>
</modules>

<build>
Expand All @@ -53,7 +53,6 @@
<additionalJOption>-Xdoclint:none</additionalJOption>
</configuration>
</plugin>

</plugins>
</build>
</project>
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,6 @@ public class StorageExplorerAppHost implements AppHost {
.withReference(eurekaServiceDiscovery)
.withOpenTelemetry();
// .withReference(openAI);

}

public static void main(String[] args) {
Expand Down

0 comments on commit 2cf109c

Please sign in to comment.