Skip to content

Commit

Permalink
Browse files Browse the repository at this point in the history
  • Loading branch information
cedmail authored Nov 10, 2023
1 parent be37188 commit 0227d53
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 10 deletions.
2 changes: 1 addition & 1 deletion gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1 @@
version=3.2.18.jahia1
version=3.2.18.jahia2
18 changes: 11 additions & 7 deletions spring-bnd/generate-spring-beans.sh
Original file line number Diff line number Diff line change
@@ -1,15 +1,19 @@
cp ~/.m2/repository/org/springframework/spring-beans/3.2.18.jahia1/spring-beans-3.2.18.jahia1.jar .
#!/usr/bin/env bash
source ../gradle.properties
cp ~/.m2/repository/org/springframework/spring-beans/${version}/spring-beans-${version}.jar .

cp ~/.m2/repository/org/springframework/spring-beans/3.2.18.jahia1/spring-beans-3.2.18.jahia1.pom .
cp ~/.m2/repository/org/springframework/spring-beans/${version}/spring-beans-${version}.pom .

sed -i .bak s/3.2.18.jahia1/3.2.18.jahia1_OSGI/g *.pom
sed -i .bak s/${version}/${version}_OSGI/g *.pom

bnd *.bnd
bnd spring-beans.bnd

jar xf spring-beans-3.2.18.jahia1.jar META-INF ; rm META-INF/MANIFEST.MF ; jar uf spring-beans-3.2.18.jahia1_OSGI.jar META-INF/* ; rm -Rf META-INF
jar xf spring-beans-${version}.jar META-INF ; rm META-INF/MANIFEST.MF ; jar uf spring-beans-${version}_OSGI.jar META-INF/* ; rm -Rf META-INF

mvn install:install-file -Dfile=spring-beans-3.2.18.jahia1_OSGI.jar -DpomFile=spring-beans-3.2.18.jahia1.pom
mvn install:install-file -Dfile=spring-beans-${version}_OSGI.jar -DpomFile=spring-beans-${version}.pom

# mvn deploy:deploy-file -DrepositoryId=jahia-releases -Durl=https://devtools.jahia.com/nexus/content/repositories/thirdparty-releases/ -Dfile=spring-beans-3.2.18.jahia1_OSGI.jar -DpomFile=spring-beans-3.2.18.jahia1.pom

# Uncomment the following line for release
#mvn deploy:deploy-file -DrepositoryId=jahia-releases -Durl=https://devtools.jahia.com/nexus/content/repositories/thirdparty-releases/ -Dfile=spring-beans-${version}_OSGI.jar -DpomFile=spring-beans-${version}.pom

rm *.jar *.pom *.bak
4 changes: 2 additions & 2 deletions spring-bnd/spring-beans.bnd
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
-classpath: spring-beans-3.2.18.jahia1.jar
-classpath: spring-beans-3.2.18.jahia2.jar
Bundle-SymbolicName: spring-beans
ver: 3.2.18.jahia1_OSGI
ver: 3.2.18.jahia2_OSGI
-output: ${bsn}-${ver}.jar
Bundle-Version: ${ver}
Export-Package: *;version=${ver}

0 comments on commit 0227d53

Please sign in to comment.