Skip to content

Commit

Permalink
Merge pull request #349 from xenit-eu/master
Browse files Browse the repository at this point in the history
Release Dynamic Extensions v2.1.3
  • Loading branch information
kpiot123 authored Apr 12, 2022
2 parents 0b3cffb + 5508857 commit 43425e6
Show file tree
Hide file tree
Showing 16 changed files with 96 additions and 16 deletions.
2 changes: 1 addition & 1 deletion .github/workflows/ci.yml
Original file line number Diff line number Diff line change
Expand Up @@ -67,4 +67,4 @@ jobs:
env:
GRADLE_PUBLISH_KEY: ${{ secrets.GRADLE_PLUGINS_PUBLISH_KEY }}
GRADLE_PUBLISH_SECRET: ${{ secrets.GRADLE_PLUGINS_PUBLISH_SECRET }}
run: ./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET
run: ./gradlew publishPlugins -Pgradle.publish.key=$GRADLE_PUBLISH_KEY -Pgradle.publish.secret=$GRADLE_PUBLISH_SECRET
8 changes: 7 additions & 1 deletion CHANGELOG.md
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
---
title: Changelog - Dynamic Extensions for Alfresco
date: 03 February 2022
date: 11 April 2022
report: true
colorlinks: true
---
Expand All @@ -21,6 +21,12 @@ Version template:
-->
# Dynamic Extensions For Alfresco Changelog

## [2.1.3] - 2022-04-11
### Added
* [#344](https://github.com/xenit-eu/dynamic-extensions-for-alfresco/issues/344) Made it possible to configure boot delegation in OSGI framework context
* [#346](https://github.com/xenit-eu/dynamic-extensions-for-alfresco/issues/346) Added Alfresc 7.1 compatibility
* [#347](https://github.com/xenit-eu/dynamic-extensions-for-alfresco/issues/347) Added Alfresc 7.2 compatibility

## [2.1.2] - 2022-02-03
### Fixed
* [#338](https://github.com/xenit-eu/dynamic-extensions-for-alfresco/issues/338) DEVEM-499 Fix @ActionMethod usage on Alfresco 7.0
Expand Down
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.id = ${project.parent.name}
module.version = ${project.version.replace('-SNAPSHOT','')}
module.title = Dynamic Extensions for Alfresco ${project.ext.simpleAlfrescoVersion}
module.description = Dynamic Extensions for Alfresco module package

module.repo.version.min=7.1.0
module.repo.version.max=7.1.99
Original file line number Diff line number Diff line change
@@ -0,0 +1,7 @@
module.id = ${project.parent.name}
module.version = ${project.version.replace('-SNAPSHOT','')}
module.title = Dynamic Extensions for Alfresco ${project.ext.simpleAlfrescoVersion}
module.description = Dynamic Extensions for Alfresco module package

module.repo.version.min=7.2.0
module.repo.version.max=7.2.99
4 changes: 3 additions & 1 deletion alfresco-dynamic-extensions-repo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -47,7 +47,9 @@ subprojects {
blueprint(project(":blueprint-integration:blueprint-integration-spring-5"))
}

if (project.name.endsWith('-70')) {
PrintWriter writer = null;
writer.println("project name: "+project.name);
if (project.name.matches("alfresco-dynamic-extensions-repo-7\\d*")) {
ampLib project(':webscripts:webscripts-70')
} else {
ampLib project(':webscripts:webscripts-50')
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -55,6 +55,17 @@ public File getSystemPackageCache() {
return this.systemPackageCache;
}

public String getBootdelegation() {
return bootdelegation;
}

public void setBootdelegation(String bootdelegation) {
this.bootdelegation = bootdelegation;
}

private String bootdelegation = null;


private static File createTempFile(String child) {
return new File(System.getProperty(TMP_DIR), child);
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -50,6 +50,9 @@ public Map<String, String> toMap() {
configuration.put(FRAMEWORK_SYSTEMPACKAGES_EXTRA,
createSystemPackagesConfiguration(getAdditionalSystemPackages()));
}
if (getBootdelegation() != null) {
configuration.put(FRAMEWORK_BOOTDELEGATION, getBootdelegation());
}
return configuration;
}

Expand Down Expand Up @@ -87,6 +90,10 @@ public File getStorageDirectory() {
return getConfiguration().getStorageDirectory();
}

public String getBootdelegation() {
return getConfiguration().getBootdelegation();
}

public boolean isFlushBundleCacheOnFirstInit() {
return flushBundleCacheOnFirstInit;
}
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ http://www.springframework.org/schema/beans/spring-beans.xsd">
<property name="hotDeployEnabled" value="${osgi.container.hot-deploy:true}" />
<property name="repositoryBundlesEnabled" value="${osgi.container.repository-bundles:true}" />
<property name="storageDirectory" value="${osgi.container.storage-directory:#{null}}" />
<property name="bootdelegation" value="${osgi.container.bootdelegation:#{null}" />

<!-- DISABLE by default, see: https://github.com/xenit-eu/dynamic-extensions-for-alfresco/issues/281 -->
<property name="systemPackageCacheMode" value="${osgi.container.system-package-cache.mode:DISABLE}" />
Expand Down
2 changes: 1 addition & 1 deletion build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,7 @@ def copyPropertyValueIfExists(sourcePropertyName, targetPropertyName) {

allprojects {
group = 'eu.xenit.de'
version = '2.1.2'
version = '2.1.3'

boolean isRelease = ci.branch?.startsWith("release")
if (!isRelease) {
Expand Down
17 changes: 9 additions & 8 deletions documentation/Configuration.md
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,13 @@ determine the root of the classpath from the location of 'alfresco-global.proper

## Configuration settings

| Description | Default | Example |
------------------------------------------------------------------------------- | :------------------------ | -------------------
| Allow restart of the container: useful for development | true | osgi.container.restartable=true/false |
| Enable starting bundles stored in the repository. | true | osgi.container.repository-bundles=true/false |
| Hot-deploy bundles on a running Alfresco If disabled, only classpath bundles and/or optionally repository bundles will be loaded. | true | osgi.container.hot-deploy=true/false |
| Configures the OSGI framework's storage directory. This can be either a relative or absolute path. Specifying an absolute path is recommended. (absolute or relative path) | tmp (relative to the current working directory) | osgi.container.storage-directory=tmp |
| Configures the OSGI framework's directory from which to automatically install or uninstall bundles. (absolute or relative path) | dynamic-extensions (relative to the current working directory) | osgi.container.bundle-directory=dynamic-extensions |
| Web application classpath scanning behaviour <br><br> ENABLE: Use existing cache or create a new cache if a: none exists or b: cache ts < WEB-INF/lib ts. Default setting. <br><br> DISABLE: Disable the cache. Rescans the WEB-INF/lib directory at every startup boot, but does not persist it. <br><br> UPDATE: Force update of the existing cache. | DISABLE | osgi.container.system-package-cache.mode = ENABLE/DISABLE/UPDATE |
| Description | Default | Example |
--------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------------|:--------------------------------------------------------------| -------------------
| Allow restart of the container: useful for development | true | osgi.container.restartable=true/false |
| Enable starting bundles stored in the repository. | true | osgi.container.repository-bundles=true/false |
| Hot-deploy bundles on a running Alfresco If disabled, only classpath bundles and/or optionally repository bundles will be loaded. | true | osgi.container.hot-deploy=true/false |
| Configures the OSGI framework's storage directory. This can be either a relative or absolute path. Specifying an absolute path is recommended. (absolute or relative path) | tmp (relative to the current working directory) | osgi.container.storage-directory=tmp |
| Configures the OSGI framework's directory from which to automatically install or uninstall bundles. (absolute or relative path) | dynamic-extensions (relative to the current working directory) | osgi.container.bundle-directory=dynamic-extensions |
| Web application classpath scanning behaviour <br><br> ENABLE: Use existing cache or create a new cache if a: none exists or b: cache ts < WEB-INF/lib ts. Default setting. <br><br> DISABLE: Disable the cache. Rescans the WEB-INF/lib directory at every startup boot, but does not persist it. <br><br> UPDATE: Force update of the existing cache. | DISABLE | osgi.container.system-package-cache.mode = ENABLE/DISABLE/UPDATE |
| Configure the OSGI framework's bootdelegation. This property is added for supporting [AppDynamics](https://docs.appdynamics.com/21.3/en/application-monitoring/install-app-server-agents/java-agent/install-the-java-agent/agent-installation-by-java-framework/osgi-infrastructure-configuration). | | osgi.container.bootdelegation=com.singularity.*|

12 changes: 9 additions & 3 deletions gradle/versions.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,9 @@ ext {
"60": "6.0.7-ga",
"61": "6.1.2-ga",
"62": "6.2.0-ga",
"70": "7.0.0"
"70": "7.0.0",
"71": "7.1.1",
"72": "7.2.0"
]

springVersions = [
Expand All @@ -16,7 +18,9 @@ ext {
"60": "5.0.4.RELEASE",
"61": "5.1.3.RELEASE",
"62": "5.1.8.RELEASE",
"70": "5.3.3.RELEASE"
"70": "5.3.3.RELEASE",
"71": "5.3.9.RELEASE",
"72": "5.3.15.RELEASE"
]

geminiVersions = [
Expand All @@ -26,6 +30,8 @@ ext {
"60": "3.0.0.M01",
"61": "3.0.0.M01",
"62": "3.0.0.M01",
"70": "3.0.0.M01"
"70": "3.0.0.M01",
"71": "3.0.0.M01",
"72": "3.0.0.M01"
]
}
8 changes: 8 additions & 0 deletions integration-tests/alfresco-community-71/overload.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ext {
alfrescoBaseWarBom = 'org.alfresco:acs-community-packaging:7.1.1'
alfrescoBaseWar = 'org.alfresco:content-services-community@war'

alfrescoBaseImage = 'xenit/alfresco-repository-community:7.1.1'

postgresImage = 'postgres:13'
}
8 changes: 8 additions & 0 deletions integration-tests/alfresco-community-72/overload.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ext {
alfrescoBaseWarBom = 'org.alfresco:acs-community-packaging:7.2.0'
alfrescoBaseWar = 'org.alfresco:content-services-community@war'

alfrescoBaseImage = 'xenit/alfresco-repository-community:7.2.0'

postgresImage = 'postgres:13'
}
8 changes: 8 additions & 0 deletions integration-tests/alfresco-enterprise-71/overload.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ext {
alfrescoBaseWarBom = 'org.alfresco:acs-packaging:7.1.0'
alfrescoBaseWar = 'org.alfresco:content-services@war'

alfrescoBaseImage = 'hub.xenit.eu/alfresco-enterprise/alfresco-repository-enterprise:7.1.0'

postgresImage = 'postgres:13'
}
8 changes: 8 additions & 0 deletions integration-tests/alfresco-enterprise-72/overload.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,8 @@
ext {
alfrescoBaseWarBom = 'org.alfresco:acs-packaging:7.2.0'
alfrescoBaseWar = 'org.alfresco:content-services@war'

alfrescoBaseImage = 'hub.xenit.eu/alfresco-enterprise/alfresco-repository-enterprise:7.2.0'

postgresImage = 'postgres:13'
}
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -23,7 +23,7 @@ include 'gradle-plugin'

include 'polyfill:polyfill-alfresco-50'

def supportedAlfrescoVersions = ["50", "51", "52", "60", "61", "62", "70"]
def supportedAlfrescoVersions = ["50", "51", "52", "60", "61", "62", "70", "71", "72"]
def alfrescoDependentModules =
[
'alfresco-dynamic-extensions-repo',
Expand Down

0 comments on commit 43425e6

Please sign in to comment.