Skip to content

Commit

Permalink
feat: Update AppCenter Data injection to use JSON - MEED-6794 - Meeds…
Browse files Browse the repository at this point in the history
…-io/MIPs#132

Prior to this change, App Center Data was injected at startup time using XML file. This change will introduce AppCenter applications using JSON format.
  • Loading branch information
boubaker committed May 13, 2024
1 parent 6fba325 commit fbbd5b1
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 104 deletions.
32 changes: 0 additions & 32 deletions analytics-api/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -49,37 +49,5 @@
</dependencies>
<build>
<finalName>analytics-api</finalName>
<plugins>
<plugin>
<groupId>com.jcabi</groupId>
<artifactId>jcabi-maven-plugin</artifactId>
</plugin>
<plugin>
<groupId>org.projectlombok</groupId>
<artifactId>lombok-maven-plugin</artifactId>
<executions>
<execution>
<phase>generate-sources</phase>
<goals>
<goal>delombok</goal>
</goals>
<configuration>
<sourceDirectory>${basedir}/src/main/java</sourceDirectory>
<addOutputDirectory>false</addOutputDirectory>
</configuration>
</execution>
</executions>
</plugin>
<!-- we need to overide the enforcer rules here because lombok doesn't match it -->
<plugin>
<artifactId>maven-enforcer-plugin</artifactId>
<executions>
<execution>
<id>check-java-compat</id>
<phase>none</phase>
</execution>
</executions>
</plugin>
</plugins>
</build>
</project>
24 changes: 24 additions & 0 deletions analytics-services/src/main/resources/applications.json
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
{
"descriptors": [
{
"name": "Analytics",
"imagePath": "war:/../skin/images/analytics.png",
"overrideMode": "merge",
"override": false,
"enabled": true,
"application": {
"title": "Analytics",
"description": "Analytics applications",
"url": "./analytics",
"system": true,
"active": true,
"isMandatory": false,
"isMobile": true,
"permissions": [
"*:/platform/administrators",
"*:/platform/analytics"
]
}
}
]
}

This file was deleted.

Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,6 @@
<import>war:/conf/analytics/cache-configuration.xml</import>
<import>war:/conf/analytics/analytics-ui-watchers-configuration.xml</import>
<import>war:/conf/analytics/dynamic-container-configuration.xml</import>
<import>war:/conf/analytics/app-center-configuration.xml</import>
<import>war:/conf/analytics/application-registry-configuration.xml</import>
<import>war:/conf/analytics/listeners-configuration.xml</import>

Expand Down

0 comments on commit fbbd5b1

Please sign in to comment.