Skip to content

Commit

Permalink
DEVEM-539 Update bnd tools
Browse files Browse the repository at this point in the history
  • Loading branch information
todorinskiz committed Nov 29, 2023
1 parent f283148 commit fa0a7ae
Show file tree
Hide file tree
Showing 8 changed files with 47 additions and 39 deletions.
2 changes: 1 addition & 1 deletion alfresco-dynamic-extensions-repo/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -89,7 +89,7 @@ subprojects {

task amp(type: Zip) {
configure ampConfig
baseName = project.name
archiveBaseName = project.name
}

artifacts {
Expand Down
12 changes: 7 additions & 5 deletions blueprint-integration/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,22 +8,24 @@ subprojects { Project p ->
}

jar {
bnd(
bundle {
// We remove version dependencies on some gemini blueprint packages here,
// because they are different for alfresco 5.x and 6.x (see geminiVersion in the root build.gradle)
// This bundle is shared between those versions, and it should always be able to find some version to import.
bnd(
'Bundle-SymbolicName': p.group+'.'+p.name,
'Fragment-Host': 'org.eclipse.gemini.blueprint.extender',
'DynamicImport-Package': '*',
'Export-Package': 'com.github.dynamicextensionsalfresco.blueprint, com.github.dynamicextensionsalfresco.blueprint.*',
'Import-Package':
// We remove version dependencies on some gemini blueprint packages here,
// because they are different for alfresco 5.x and 6.x (see geminiVersion in the root build.gradle)
// This bundle is shared between those versions, and it should always be able to find some version to import.
'org.eclipse.gemini.blueprint.context;version=!,' +
'org.eclipse.gemini.blueprint.context.support;version=!,' +
'org.eclipse.gemini.blueprint.service.exporter.support;version=!,' +
'org.slf4j;version="[1.7.2,2.1)", ' +
'*',
'Bundle-DocURL': 'https://github.com/xenit-eu/dynamic-extensions-for-alfresco',
)
)
}
}

p.sourceSets.main.java.srcDirs = [
Expand Down
8 changes: 4 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,7 +10,7 @@ buildscript {

plugins {
id "be.vbgn.ci-detect" version "0.5.0"
id "biz.aQute.bnd.builder" version "4.2.0" apply false
id "biz.aQute.bnd.builder" version "7.0.0" apply false
id "org.sonarqube" version "3.5.0.2730"
}

Expand All @@ -27,7 +27,7 @@ sonarqube {

allprojects {
group = 'eu.xenit.de'
version = '3.2.0'
version = '3.3.0'

boolean isRelease = ci.branch?.startsWith("release")
if (!isRelease) {
Expand Down Expand Up @@ -128,12 +128,12 @@ subprojects {
apply plugin: 'jacoco'

task sourceJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
archiveClassifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}

Expand Down
32 changes: 17 additions & 15 deletions control-panel/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,21 +40,23 @@ dependencies {
}

jar {
bnd(
'Bundle-Name': "${project.name}",
'Bundle-SymbolicName': "${project.group}.${project.name}",
'Alfresco-Dynamic-Extension': 'true',
'Bundle-Description': 'Control Panel',
'Alfresco-Spring-Configuration': 'com.github.dynamicextensionsalfresco.controlpanel',
'Spring-Context': ';publish-context:=false',
'Import-Package': 'javax.annotation;version=!, ' +
'org.aopalliance.aop, ' +
'org.aopalliance.intercept, ' +
'org.springframework.aop, ' +
'org.springframework.aop.framework, ' +
'org.slf4j;version="[1.7.2,2.1)", ' +
'* '
)
bundle {
bnd(
'Bundle-Name': "${project.name}",
'Bundle-SymbolicName': "${project.group}.${project.name}",
'Alfresco-Dynamic-Extension': 'true',
'Bundle-Description': 'Control Panel',
'Alfresco-Spring-Configuration': 'com.github.dynamicextensionsalfresco.controlpanel',
'Spring-Context': ';publish-context:=false',
'Import-Package': 'javax.annotation;version=!, ' +
'org.aopalliance.aop, ' +
'org.aopalliance.intercept, ' +
'org.springframework.aop, ' +
'org.springframework.aop.framework, ' +
'org.slf4j;version="[1.7.2,2.1)", ' +
'* '
)
}
}

defaultTasks 'jar'
8 changes: 5 additions & 3 deletions event-bus/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -8,9 +8,11 @@ dependencies {
}

jar {
bnd('Bundle-Description': 'Inter-bundle event bus',
'Bundle-Activator': 'com.github.dynamicextensionsalfresco.event.impl.Activator',
'Export-Package': 'com.github.dynamicextensionsalfresco.event.*')
bundle {
bnd('Bundle-Description': 'Inter-bundle event bus',
'Bundle-Activator': 'com.github.dynamicextensionsalfresco.event.impl.Activator',
'Export-Package': 'com.github.dynamicextensionsalfresco.event.*')
}
}

defaultTasks 'jar'
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-7.5.1-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-7.6.3-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
18 changes: 10 additions & 8 deletions integration-tests/test-bundle/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -29,13 +29,15 @@ dependencies {
}

jar {
bnd(
'Alfresco-Dynamic-Extension': 'true',
'Bundle-Description': 'Bundle for integration testing purposes',
'Alfresco-Spring-Configuration': 'eu.xenit.de.testing',
'DynamicImport-Package': '*',
'Import-Package': 'org.slf4j;version="[1.7.2,2.1)", '
+'*'
)
bundle {
bnd(
'Alfresco-Dynamic-Extension': 'true',
'Bundle-Description': 'Bundle for integration testing purposes',
'Alfresco-Spring-Configuration': 'eu.xenit.de.testing',
'DynamicImport-Package': '*',
'Import-Package': 'org.slf4j;version="[1.7.2,2.1)", '
+'*'
)
}
}

4 changes: 2 additions & 2 deletions settings.gradle
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
include 'annotations'

include 'webscripts'
include 'webscripts:webscripts-50'
//include 'webscripts:webscripts-50'
include 'webscripts:webscripts-70'

include 'event-bus'
Expand All @@ -19,7 +19,7 @@ include 'control-panel'

include 'gradle-plugin'

def supportedAlfrescoVersions = [ "61", "62", "70", "71", "72", "73", "74"]
def supportedAlfrescoVersions = ["74"] // "61", "62", "70", "71", "72", "73",
def alfrescoDependentModules =
[
'alfresco-dynamic-extensions-repo',
Expand Down

0 comments on commit fa0a7ae

Please sign in to comment.