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

Feature/restructure project #448

Merged
merged 15 commits into from
Oct 28, 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
2 changes: 0 additions & 2 deletions .github/workflows/release-version.yml
Original file line number Diff line number Diff line change
Expand Up @@ -29,8 +29,6 @@ jobs:
mkdir artifacts
find ./app/aem/all/build/packageCompose -name "*.zip" -print0 | xargs -0 cp -t "artifacts"
find ./app/aem/all.cloud/build/packageCompose -name "*.zip" -print0 | xargs -0 cp -t "artifacts"
find ./app/aem/actions.checks/build/packageCompose -name "*.zip" -print0 | xargs -0 cp -t "artifacts"
find ./artifacts -name '*.zip' -exec bash -c ' mv $0 ${0/core/apmt}' {} \;
- name: Upload Release Asset
uses: skx/[email protected]
env:
Expand Down
85 changes: 0 additions & 85 deletions app/aem/actions.checks/build.gradle.kts

This file was deleted.

This file was deleted.

60 changes: 0 additions & 60 deletions app/aem/actions.main/build.gradle.kts

This file was deleted.

This file was deleted.

8 changes: 0 additions & 8 deletions app/aem/all/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -7,8 +7,6 @@ plugins {
description = "APM (AEM Permission Management) - AEM All-In-One Package"

evaluationDependsOn(":app:aem:ui.apps")
evaluationDependsOn(":app:aem:ui.system.user")
evaluationDependsOn(":app:aem:ui.content")

apply(from = rootProject.file("app/common.gradle.kts"))
apply(from = rootProject.file("app/aem/common.gradle.kts"))
Expand All @@ -19,12 +17,6 @@ aem {
nestPackageProject(":app:aem:ui.apps") {
dirPath.set("/apps/apm-packages/application/install")
}
nestPackageProject(":app:aem:ui.system.user") {
dirPath.set("/apps/apm-packages/content/install")
}
nestPackageProject(":app:aem:ui.content") {
dirPath.set("/apps/apm-packages/content/install")
}
}
}
}
Expand Down
44 changes: 0 additions & 44 deletions app/aem/api/build.gradle.kts

This file was deleted.

10 changes: 5 additions & 5 deletions app/aem/core/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ plugins {
signing
}

description = "APM Core"
description = "AEM Permission Management (APM)"

apply(from = rootProject.file("app/common.gradle.kts"))
apply(from = rootProject.file("app/aem/common.gradle.kts"))
Expand All @@ -19,19 +19,19 @@ aem {
tasks {
jar {
bundle {
symbolicName = "com.cognifide.apm"
exportPackage("com.cognifide.apm.*")
importPackage("javax.annotation;version=0.0.0", "!android.os")
attribute("Sling-Model-Packages", "com.cognifide.apm.core")
attribute("Sling-Model-Packages", "com.cognifide.apm")
excludePackage("org.antlr.stringtemplate", "org.antlr.v4.gui")
embedPackage("org.antlr:antlr4-runtime:4.7.2", "org.antlr.v4.runtime.*")
attribute("APM-Actions", "com.cognifide.apm")
}
}
}
}

dependencies {
implementation(project(":app:aem:api"))
implementation(project(":app:aem:actions.main"))

antlr("org.antlr:antlr4:4.7.2")
}

Expand Down
2 changes: 1 addition & 1 deletion app/aem/core/src/main/antlr/ApmLang.g4
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,7 @@ grammar ApmLang;
*/

apm
: command+ EOF
: command* EOF
;

name
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -25,7 +25,6 @@
import com.cognifide.apm.core.Property;
import com.cognifide.apm.core.actions.scanner.AnnotatedClassRegistry;
import com.cognifide.apm.core.actions.scanner.RegistryChangedListener;
import com.cognifide.apm.main.services.ApmActionsMainService;
import com.google.common.collect.ImmutableMap;
import com.google.common.collect.Maps;
import java.util.ArrayList;
Expand Down Expand Up @@ -57,9 +56,6 @@ public class ActionMapperRegistryImpl implements RegistryChangedListener, Action

private static final String BUNDLE_HEADER = "APM-Actions";

@Reference
private ApmActionsMainService apmActionsMainService;

private AnnotatedClassRegistry registry;

private final AtomicReference<Map<String, MapperDescriptor>> mappers = new AtomicReference<>(
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -169,7 +169,7 @@ public Progress process(Script script, ExecutionMode mode, Map<String, String> c
}

updateScriptProperties(script, mode, progress.isSuccess());
versionService.updateVersionIfNeeded(resolver, script);
updateVersionIfNeeded(mode, resolver, script);
saveHistory(script, mode, progress);
eventManager.trigger(new ScriptExecutedEvent(script, mode, progress.isSuccess()));

Expand All @@ -196,6 +196,12 @@ private void updateScriptProperties(Script script, ExecutionMode mode, boolean s
}
}

private void updateVersionIfNeeded(ExecutionMode mode, ResourceResolver resolver, Script... scripts) {
if (mode != ExecutionMode.VALIDATION) {
versionService.updateVersionIfNeeded(resolver, scripts);
}
}

@Override
public Map<String, String> getPredefinedDefinitions() {
return definitionsProviders.stream()
Expand Down
49 changes: 0 additions & 49 deletions app/aem/install/build.gradle.kts

This file was deleted.

Loading
Loading