diff --git a/csvedit.site/packaging-p2composite.ant b/csvedit.site/packaging-p2composite.ant new file mode 100644 index 0000000..f9bd40c --- /dev/null +++ b/csvedit.site/packaging-p2composite.ant @@ -0,0 +1,181 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + version=1 +metadata.repository.factory.order=compositeContent.xml,\! +artifact.repository.factory.order=compositeArtifacts.xml,\! + + + + + + + + + + + + + + + + + + + + + + + + + + + + + \ No newline at end of file diff --git a/csvedit.site/pom.xml b/csvedit.site/pom.xml index 8b03533..0027ec7 100644 --- a/csvedit.site/pom.xml +++ b/csvedit.site/pom.xml @@ -11,4 +11,225 @@ csvedit.site eclipse-repository csvedit :: update site + + + + + org.eclipse.tycho + tycho-packaging-plugin + + 'v'yyyyMMdd'-'HHmm + + + + + org.eclipse.tycho + tycho-p2-repository-plugin + + ${project.artifactId}-${qualifiedVersion} + + + + + + + + + release-composite + + false + + + + + + org.codehaus.mojo + build-helper-maven-plugin + + + + parse-version + + parse-version + + + + + + org.codehaus.mojo + exec-maven-plugin + + git + + + + git-clone + prepare-package + + exec + + + + clone + --depth=1 + -b + master + ${github-update-repo} + ${github-local-clone} + + + + + git-add + verify + + exec + + + + -C + ${github-local-clone} + add + -A + + + + + git-commit + verify + + exec + + + + -C + ${github-local-clone} + commit + -m + Release ${qualifiedVersion} + + + + + git-push + deploy + + exec + + + + -C + ${github-local-clone} + push + origin + master + + + + + + + maven-resources-plugin + + + copy-repository + package + + copy-resources + + + + ${current-release-directory} + + + + ${project.build.directory}/repository + + + + + + + + org.eclipse.tycho.extras + tycho-eclipserun-plugin + + + + eclipse-version + p2 + + https://download.eclipse.org/releases/2023-06 + + + + + 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.rcp + eclipse-feature + + + + + + + add-p2-composite-repository + package + + eclipse-run + + + + -application + org.eclipse.ant.core.antRunner + -buildfile + packaging-p2composite.ant + p2.composite.add + -Dsite.label="${site.label}" + + -Dcomposite.base.dir=${github-local-clone} + + -DunqualifiedVersion=${unqualifiedVersion} + -DbuildQualifier=${buildQualifier} + + -DparsedVersion.majorVersion=${parsedVersion.majorVersion} + + -DparsedVersion.minorVersion=${parsedVersion.minorVersion} + + + + + + + + + diff --git a/pom.xml b/pom.xml index 947ee38..a9cb6d8 100644 --- a/pom.xml +++ b/pom.xml @@ -15,12 +15,21 @@ 4.0.4 -Xmx512m -XX:MaxPermSize=256m UTF-8 + + + + git@github.com:Mathieuu/CsvEdit-update.git + ${project.build.directory}/checkout + ${github-local-clone}/releases + ${releases-directory}/${qualifiedVersion} + + CsvEdit-update - scm:git@github.com:gnl42/CsvEdit.git - scm:git@github.com:gnl42/CsvEdit.git - https://github.com/gnl42/CsvEdit + scm:git@github.com:Mathieuu/CsvEdit.git + scm:git@github.com:Mathieuu/CsvEdit.git + https://github.com/Mathieuu/CsvEdit @@ -261,6 +270,33 @@ + + + + release-composite + + + + + maven-install-plugin + + + default-install + none + + + + + maven-deploy-plugin + + true + + + + + + + csvedit.target csvedit.plugin