Skip to content

Commit 6411ef4

Browse files
Merge pull request #610 from adobe/develop
* #607 - Removed hard dependency on core components package * #604 - Changed AEM Component Sling Model interfaces from @ProviderType to @ConsumerType for extensibility
2 parents 065aa94 + c131531 commit 6411ef4

37 files changed

+83
-65
lines changed

CHANGELOG.md

Lines changed: 9 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -4,7 +4,15 @@ All notable changes to this project will be documented in this file.
44
The format is based on [Keep a Changelog](http://keepachangelog.com/en/1.0.0/)
55
and this project adheres to [Semantic Versioning](http://semver.org/spec/v2.0.0.html).
66

7-
## [Unreleased]
7+
## [v2.0.4]
8+
9+
### Fixed
10+
11+
- 0607 - asset-share-commons.all package's dependency on Core Components breaks AEM CS deployment. Removing this hard dependency.
12+
13+
### Changed
14+
15+
- 0604 - Changed AEM Component Sling Model interfaces from @ProviderType to @ConsumerType for extensibility (see Github issue #604 for details)
816

917
## [v2.0.2]
1018

README.md

Lines changed: 11 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,13 @@
11
[![Build Status](https://travis-ci.org/Adobe-Marketing-Cloud/asset-share-commons.svg?branch=develop)](https://travis-ci.org/Adobe-Marketing-Cloud/asset-share-commons)
22
[![codecov](https://codecov.io/gh/Adobe-Marketing-Cloud/asset-share-commons/branch/develop/graph/badge.svg)](https://codecov.io/gh/Adobe-Marketing-Cloud/asset-share-commons)
3+
34
# Asset Share Commons
45

56
This a content package project generated using the AEM Multimodule Lazybones template.
67

78
### Documentation
89

9-
[https://adobe-marketing-cloud.github.io/asset-share-commons/](https://adobe-marketing-cloud.github.io/asset-share-commons/)
10+
[https://opensource.adobe.com/asset-share-commons/](https://opensource.adobe.com/asset-share-commons/)
1011

1112
## Building
1213

@@ -31,9 +32,15 @@ To use this project with the AEM Developer Tools for Eclipse, import the generat
3132
The CRX host and port can be specified on the command line with:
3233
mvn -Dcrx.host=otherhost -Dcrx.port=5502 <goals>
3334

34-
## Dependencies
3535

36-
* AEM 6.3 + [Service Pack 1](https://docs.adobe.com/docs/en/aem/6-3/release-notes/sp1.html)
37-
* The (optional) [ACS AEM Commons 3.11.0](https://github.com/Adobe-Consulting-Services/acs-aem-commons/releases/tag/acs-aem-commons-3.11.0) to enable e-mail share functionality was removed in v1.1.0.
36+
## Asset Share Commons 2.x Requirements
37+
38+
* AEM as a Cloud Service
39+
* AEM 6.5 SP7 or greater
40+
* AEM WCM Core Components 2.14.0+
41+
42+
## Asset Share Commons 1.x Requirements
43+
44+
* AEM 6.3.1 -> 6.5.x
3845

3946

all/pom.xml

Lines changed: 1 addition & 15 deletions
Original file line numberDiff line numberDiff line change
@@ -54,6 +54,7 @@
5454
<cloudManagerTarget>all</cloudManagerTarget>
5555
</properties>
5656
<finalName>asset-share-commons.all-${project.version}</finalName>
57+
<allowIndexDefinitions>true</allowIndexDefinitions>
5758
<embeddeds>
5859
<embedded>
5960
<groupId>com.adobe.aem.commons</groupId>
@@ -74,15 +75,6 @@
7475
</embedded>
7576
<!-- Remove ui.contnet.sample from all package, as it should not be installed as part of real uses of Asset Share commons -->
7677
</embeddeds>
77-
<allowIndexDefinitions>true</allowIndexDefinitions>
78-
<dependencies>
79-
<!-- Require AEM WCM Core Components to be installed on AEM
80-
Asset Share Commons will not auto-install Core Components for you -->
81-
<dependency>
82-
<groupId>com.adobe.cq</groupId>
83-
<artifactId>core.wcm.components.content</artifactId>
84-
</dependency>
85-
</dependencies>
8678
</configuration>
8779
</plugin>
8880
<plugin>
@@ -190,11 +182,5 @@
190182
<version>${project.version}</version>
191183
<type>zip</type>
192184
</dependency>
193-
<dependency>
194-
<groupId>com.adobe.cq</groupId>
195-
<artifactId>core.wcm.components.content</artifactId>
196-
<version>${core.wcm.components.version}</version>
197-
<type>zip</type>
198-
</dependency>
199185
</dependencies>
200186
</project>

core/src/main/java/com/adobe/aem/commons/assetshare/components/actions/cart/Cart.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,11 +20,11 @@
2020
package com.adobe.aem.commons.assetshare.components.actions.cart;
2121

2222
import com.adobe.aem.commons.assetshare.content.AssetModel;
23-
import org.osgi.annotation.versioning.ProviderType;
23+
import org.osgi.annotation.versioning.ConsumerType;
2424

2525
import java.util.Collection;
2626

27-
@ProviderType
27+
@ConsumerType
2828
public interface Cart {
2929
Collection<AssetModel> getAssets();
3030

core/src/main/java/com/adobe/aem/commons/assetshare/components/actions/cart/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
*/
1919

20-
@Version("1.0.0")
20+
@Version("1.0.1")
2121
package com.adobe.aem.commons.assetshare.components.actions.cart;
2222

2323
import org.osgi.annotation.versioning.Version;

core/src/main/java/com/adobe/aem/commons/assetshare/components/actions/download/Download.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -23,7 +23,7 @@
2323
import com.adobe.cq.wcm.core.components.models.form.OptionItem;
2424
import com.adobe.cq.wcm.core.components.models.form.Options;
2525
import com.google.common.collect.ImmutableList;
26-
import org.osgi.annotation.versioning.ProviderType;
26+
import org.osgi.annotation.versioning.ConsumerType;
2727

2828
import java.util.ArrayList;
2929
import java.util.Collection;
@@ -33,7 +33,7 @@
3333
/**
3434
* The model interface that represents the Download action component.
3535
*/
36-
@ProviderType
36+
@ConsumerType
3737
public interface Download {
3838
/**
3939
* @return a collection of assets that are to be downloaded.

core/src/main/java/com/adobe/aem/commons/assetshare/components/actions/download/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
*/
1919

20-
@Version("1.2.0")
20+
@Version("1.2.1")
2121
package com.adobe.aem.commons.assetshare.components.actions.download;
2222

2323
import org.osgi.annotation.versioning.Version;

core/src/main/java/com/adobe/aem/commons/assetshare/components/actions/downloads/Downloads.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -3,11 +3,11 @@
33
import com.adobe.aem.commons.assetshare.content.renditions.download.async.DownloadEntry;
44
import com.adobe.cq.dam.download.api.DownloadException;
55
import com.adobe.cq.dam.download.api.DownloadProgress;
6-
import org.osgi.annotation.versioning.ProviderType;
6+
import org.osgi.annotation.versioning.ConsumerType;
77

88
import java.util.List;
99

10-
@ProviderType
10+
@ConsumerType
1111
public interface Downloads {
1212

1313
/**

core/src/main/java/com/adobe/aem/commons/assetshare/components/actions/downloads/package-info.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -17,7 +17,7 @@
1717
*
1818
*/
1919

20-
@Version("1.0.0")
20+
@Version("1.0.1")
2121
package com.adobe.aem.commons.assetshare.components.actions.downloads;
2222

2323
import org.osgi.annotation.versioning.Version;

core/src/main/java/com/adobe/aem/commons/assetshare/components/actions/share/EmailShare.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -20,9 +20,9 @@
2020
package com.adobe.aem.commons.assetshare.components.actions.share;
2121

2222
import org.apache.sling.api.resource.ValueMap;
23-
import org.osgi.annotation.versioning.ProviderType;
23+
import org.osgi.annotation.versioning.ConsumerType;
2424

25-
@ProviderType
25+
@ConsumerType
2626
public interface EmailShare extends Share {
2727

2828
String PN_SIGNATURE = "signature";

0 commit comments

Comments
 (0)