Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

solves #56 Add Groovyconsole to Tools and update the project to not have colliding filters anymore #61

Merged
merged 4 commits into from
Aug 7, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
5 changes: 5 additions & 0 deletions CHANGELOG.md
Original file line number Diff line number Diff line change
Expand Up @@ -7,9 +7,14 @@ and this project adheres to [Semantic Versioning](https://semver.org/spec/v2.0.0

## [Unreleased]

### Added

- Add Groovy console to the Tools menu [#56](https://github.com/orbinson/aem-groovy-console/issues/56)

### Changed

- Remove all dependencies on Guava [#62](https://github.com/orbinson/aem-groovy-console/issues/62)
- Fix Cloud pipeline package Overlap Issue [#52](https://github.com/orbinson/aem-groovy-console/issues/52)

## [19.0.5] - 2024-02-10

Expand Down
2 changes: 2 additions & 0 deletions all/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -37,6 +37,8 @@
<properties>
<cloudManagerTarget>all</cloudManagerTarget>
</properties>
<!-- all sub packages have been validated already -->
<skipSubPackageValidation>true</skipSubPackageValidation>
<embeddeds>
<embedded>
<groupId>be.orbinson.aem</groupId>
Expand Down
3 changes: 1 addition & 2 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -24,7 +24,6 @@
<module>groovy</module>
<module>ui.apps</module>
<module>ui.apps.aem</module>
<module>ui.apps.structure</module>
<module>ui.config</module>
<module>ui.content</module>
</modules>
Expand Down Expand Up @@ -349,7 +348,7 @@
<groupId>org.apache.jackrabbit</groupId>
<artifactId>filevault-package-maven-plugin</artifactId>
<extensions>true</extensions>
<version>1.1.4</version>
<version>1.3.6</version>
<configuration>
<filterSource>src/main/content/META-INF/vault/filter.xml</filterSource>
<properties>
Expand Down
8 changes: 6 additions & 2 deletions ui.apps.aem/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<group>${project.artifactId}</group>
<name>aem-groovy-console-ui.apps.aem</name>
<packageType>application</packageType>
<accessControlHandling>merge</accessControlHandling>
<properties>
<cloudManagerTarget>none</cloudManagerTarget>
</properties>
Expand All @@ -36,12 +35,17 @@
<validatorsSettings>
<jackrabbit-filter>
<options>
<validRoots>/apps/groovyconsole/components/console</validRoots>
<validRoots>/apps,/apps/cq/core/content</validRoots>
</options>
</jackrabbit-filter>
<jackrabbit-nodetypes>
<isDisabled>true</isDisabled>
</jackrabbit-nodetypes>
<jackrabbit-packagetype>
<options>
<allowComplexFilterRulesInApplicationPackages>true</allowComplexFilterRulesInApplicationPackages>
</options>
</jackrabbit-packagetype>
</validatorsSettings>
</configuration>
</plugin>
Expand Down
11 changes: 8 additions & 3 deletions ui.apps.aem/src/main/content/META-INF/vault/filter.xml
Original file line number Diff line number Diff line change
@@ -1,6 +1,11 @@
<?xml version="1.0" encoding="UTF-8"?>
<workspaceFilter version="1.0">
<filter root="/apps/groovyconsole/clientlibs-aem"/>
<filter root="/apps/groovyconsole/components/console/opendialog"/>
<filter root="/apps/groovyconsole/components/console/savedialog"/>
<filter root="/apps/groovyconsole-aem"/>

<filter root="/apps/cq/core/content/nav">
<include pattern="/apps/cq/core/content/nav"/>
<include pattern="/apps/cq/core/content/nav/tools"/>
<include pattern="/apps/cq/core/content/nav/tools/general"/>
<include pattern="/apps/cq/core/content/nav/tools/general/groovyconsole(.*)?"/>
</filter>
</workspaceFilter>
3 changes: 3 additions & 0 deletions ui.apps.aem/src/main/content/jcr_root/apps/cq/.content.xml
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="sling:OrderedFolder"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="sling:OrderedFolder"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="sling:OrderedFolder"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:rep="internal"
jcr:primaryType="sling:OrderedFolder"/>
Original file line number Diff line number Diff line change
@@ -0,0 +1,4 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OrderedFolder">
</jcr:root>
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0"
xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:description="The AEM Groovy Console provides an interface for running Groovy scripts"
jcr:primaryType="nt:unstructured"
jcr:title="AEM Groovy Console"
href="/apps/groovyconsole.html"
icon="actions"
id="granite-general-groovyconsole">
</jcr:root>
Original file line number Diff line number Diff line change
@@ -1,4 +1,5 @@
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:Folder"/>
jcr:primaryType="sling:Folder">
</jcr:root>
Original file line number Diff line number Diff line change
Expand Up @@ -4,4 +4,4 @@
jcr:primaryType="cq:ClientLibraryFolder"
categories="[groovyconsole]"
allowProxy="{Boolean}true"
dependencies="[cq.shared]"/>
dependencies="[cq.shared]"/>
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
#base=../clientlibs/css
#base=/apps/groovyconsole/clientlibs/css

bootstrap.css
bootstrap-theme.css
daterangepicker.css
datatables.css
console.css
console.css
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
#base=../clientlibs/js
#base=/apps/groovyconsole/clientlibs/js

datatables.js
jquery-ui.min.js
Expand Down Expand Up @@ -53,4 +53,4 @@ console.js
services.js
audit.js
scheduled-jobs.js
local-storage.js
local-storage.js

This file was deleted.

37 changes: 0 additions & 37 deletions ui.apps.structure/pom.xml

This file was deleted.

7 changes: 0 additions & 7 deletions ui.apps/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,16 +23,9 @@
<group>${project.artifactId}</group>
<name>aem-groovy-console-ui.apps</name>
<packageType>application</packageType>
<accessControlHandling>merge</accessControlHandling>
<properties>
<cloudManagerTarget>none</cloudManagerTarget>
</properties>
<repositoryStructurePackages>
<repositoryStructurePackage>
<groupId>be.orbinson.aem</groupId>
<artifactId>aem-groovy-console-ui.apps.structure</artifactId>
</repositoryStructurePackage>
</repositoryStructurePackages>
<validatorsSettings>
<jackrabbit-nodetypes>
<isDisabled>true</isDisabled>
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,4 +2,4 @@
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0"
jcr:primaryType="sling:OrderedFolder"
sling:resourceType="composum/nodes/commons/clientlib"
category="[groovyconsole]"/>
category="[groovyconsole]"/>
Original file line number Diff line number Diff line change
Expand Up @@ -540,15 +540,23 @@ var GroovyConsole = function () {
},

showOpenDialog: function () {
var dialog = CQ.WCM.getDialog('/apps/groovyconsole/components/console/opendialog');
if (typeof CQ !== undefined) {
var dialog = CQ.WCM.getDialog('/apps/groovyconsole-aem/dialogs/opendialog');

dialog.show();
dialog.show();
} else {
alert("Open and saving currently only supported in AEM")
}
},

showSaveDialog: function () {
var dialog = CQ.WCM.getDialog('/apps/groovyconsole/components/console/savedialog');
if (typeof CQ !== undefined) {
var dialog = CQ.WCM.getDialog('/apps/groovyconsole-aem/dialogs/savedialog');

dialog.show();
dialog.show();
} else {
alert("Open and saving currently only supported in AEM")
}
},

loadScript: function (scriptPath) {
Expand Down
1 change: 0 additions & 1 deletion ui.content/pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,6 @@
<group>${project.artifactId}</group>
<name>aem-groovy-console-ui.content</name>
<packageType>content</packageType>
<accessControlHandling>merge</accessControlHandling>
<properties>
<cloudManagerTarget>none</cloudManagerTarget>
</properties>
Expand Down
Loading