From 6a591f2dbce928505b50686e51ca9c8d9acaf3a8 Mon Sep 17 00:00:00 2001 From: Eyck Jentzsch Date: Sat, 27 Nov 2021 16:48:09 +0100 Subject: [PATCH] add gh-pages deployment steps --- .launch/Build and deploy SCViewer.launch | 3 +- pom.xml | 2 + .../com.minres.scviewer.updateSite/.gitignore | 1 + .../packaging-p2-composite.ant | 104 +++++++++++++++ releng/com.minres.scviewer.updateSite/pom.xml | 123 ++++++++++++------ 5 files changed, 191 insertions(+), 42 deletions(-) create mode 100644 releng/com.minres.scviewer.updateSite/packaging-p2-composite.ant diff --git a/.launch/Build and deploy SCViewer.launch b/.launch/Build and deploy SCViewer.launch index e514693..81ced40 100644 --- a/.launch/Build and deploy SCViewer.launch +++ b/.launch/Build and deploy SCViewer.launch @@ -12,7 +12,8 @@ + + - diff --git a/pom.xml b/pom.xml index 307b0bd..e293896 100644 --- a/pom.xml +++ b/pom.xml @@ -29,6 +29,8 @@ 1.5.0 3.6.0-03 3.0.3-01 + + ${project.build.directory}/../ diff --git a/releng/com.minres.scviewer.updateSite/.gitignore b/releng/com.minres.scviewer.updateSite/.gitignore index aea1bd3..b097aaa 100644 --- a/releng/com.minres.scviewer.updateSite/.gitignore +++ b/releng/com.minres.scviewer.updateSite/.gitignore @@ -3,3 +3,4 @@ /artifacts.jar /content.jar /target/ +/gh-pages/ diff --git a/releng/com.minres.scviewer.updateSite/packaging-p2-composite.ant b/releng/com.minres.scviewer.updateSite/packaging-p2-composite.ant new file mode 100644 index 0000000..cbfff8a --- /dev/null +++ b/releng/com.minres.scviewer.updateSite/packaging-p2-composite.ant @@ -0,0 +1,104 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + version=1 +metadata.repository.factory.order=compositeContent.xml,\! +artifact.repository.factory.order=compositeArtifacts.xml,\! + + + + + + + diff --git a/releng/com.minres.scviewer.updateSite/pom.xml b/releng/com.minres.scviewer.updateSite/pom.xml index 45570dc..5031047 100644 --- a/releng/com.minres.scviewer.updateSite/pom.xml +++ b/releng/com.minres.scviewer.updateSite/pom.xml @@ -10,19 +10,20 @@ 2.15.0 ../.. - - - - - org.eclipse.tycho - tycho-p2-repository-plugin - ${tycho-version} - - ${project.artifactId}-${qualifiedVersion} - - - - + + + + + org.eclipse.tycho + tycho-p2-repository-plugin + ${tycho-version} + + ${project.artifactId}-${qualifiedVersion} + + + + + @@ -33,38 +34,78 @@ - com.carrotgarden.maven - bintray-maven-plugin - 1.5.20191113165555 - - false - - minres - - eclipse - - SCViewer - - ${parsedVersion.majorVersion}.${parsedVersion.minorVersion}.${parsedVersion.incrementalVersion} - - true - - https://git.minres.com/VP-Tools/SCViewer.git - EPL-1.0 - - ${project.build.directory}/repository - - SCViewer/${parsedVersion.majorVersion}.${parsedVersion.minorVersion} - - bintray-minres-deploy - + org.codehaus.mojo + exec-maven-plugin + 3.0.0 - package - upload - + exec + + + + + bash + + ${software.download.area} + + -c + if [ -d gh-pages ]; then cd gh-pages; git pull; else git clone --branch gh-pages https://git.minres.com/VP-Tools/SCViewer.git gh-pages; fi + + + en_US + + + + + org.eclipse.tycho.extras + tycho-eclipserun-plugin + ${tycho-version} + + + -application org.eclipse.ant.core.antRunner -buildfile packaging-p2-composite.ant p2.composite.add -Dsite.label="SCViewer Software Repository" -Dproject.build.directory=${project.build.directory} -DunqualifiedVersion=${unqualifiedVersion} -Dsoftware.download.area="${software.download.area}/gh-pages/repository" + + + 2020-03 + p2 + http://download.eclipse.org/releases/2020-03/ + + + + + org.eclipse.ant.core + eclipse-plugin + + + org.apache.ant + eclipse-plugin + + + org.eclipse.equinox.p2.repository.tools + eclipse-plugin + + + org.eclipse.equinox.p2.core.feature + eclipse-feature + + + org.eclipse.equinox.p2.extras.feature + eclipse-feature + + + org.eclipse.equinox.ds + eclipse-plugin + + + + + + add-p2-composite-repository + package + + eclipse-run +