From fe0c37bee5445507747e835c7e943f41b2d0eee0 Mon Sep 17 00:00:00 2001 From: Vladimir Sitnikov Date: Mon, 13 Nov 2023 10:07:58 +0300 Subject: [PATCH] wip: update tycho build scripts --- MatCalcitePlugin/META-INF/MANIFEST.MF | 53 +++++++++++++-- MatCalcitePlugin/build.properties | 2 - MatCalcitePlugin/pom.xml | 64 ++++++++++++++++--- .../MatCalciteTargetPlatform.target | 31 ++++++++- pom.xml | 39 ++++++----- 5 files changed, 156 insertions(+), 33 deletions(-) diff --git a/MatCalcitePlugin/META-INF/MANIFEST.MF b/MatCalcitePlugin/META-INF/MANIFEST.MF index 57bc898..6201f2d 100644 --- a/MatCalcitePlugin/META-INF/MANIFEST.MF +++ b/MatCalcitePlugin/META-INF/MANIFEST.MF @@ -4,12 +4,57 @@ Bundle-Name: MatCalcitePlugin Bundle-SymbolicName: MatCalcitePlugin;singleton:=true Bundle-Version: 1.6.0.qualifier Bundle-Vendor: Vladimir Sitnikov -Bundle-RequiredExecutionEnvironment: JavaSE-1.8 -Require-Bundle: org.eclipse.mat.api;bundle-version="1.8.0", - org.eclipse.mat.ui;bundle-version="1.8.0", +Bundle-RequiredExecutionEnvironment: JavaSE-17 +Require-Bundle: org.eclipse.mat.api;bundle-version="1.14.0", + org.eclipse.mat.ui;bundle-version="1.14.0", + com.fasterxml.jackson.core.jackson-annotations, + com.fasterxml.jackson.core.jackson-core, + com.fasterxml.jackson.core.jackson-databind, + com.fasterxml.jackson.dataformat.jackson-dataformat-yaml, + org.jsr-305, + com.google.errorprone.annotations, + com.google.guava.failureaccess, + com.google.guava, + com.github.vlsi.mat.calcite.com.google.guava.listenablefuture, + com.github.vlsi.mat.calcite.com.google.j2objc.j2objc-annotations, + com.google.protobuf, + com.github.vlsi.mat.calcite.com.google.uzaygezen.uzaygezen-core, + com.googlecode.json-simple, + json-path, + com.github.vlsi.mat.calcite.com.yahoo.datasketches.memory, + com.github.vlsi.mat.calcite.com.yahoo.datasketches.sketches-core, + org.apache.commons.commons-codec, + org.apache.commons.commons-io, + org.apache.commons.lang, + org.apache.commons.logging, + com.github.vlsi.mat.calcite.net.hydromatic.aggdesigner-algorithm, + net.minidev.accessors-smart, + net.minidev.json-smart, + com.github.vlsi.mat.calcite.org.apache.calcite.avatica.avatica-core, + com.github.vlsi.mat.calcite.org.apache.calcite.avatica.avatica-metrics, + com.github.vlsi.mat.calcite.org.apache.calcite.calcite-core, + com.github.vlsi.mat.calcite.org.apache.calcite.calcite-linq4j, + org.apache.commons.commons-dbcp2;resolution:=optional, + org.apache.commons.lang3, + org.apache.commons.math3, + org.apache.commons.commons-pool2, + org.apache.commons.commons-text, + com.github.vlsi.mat.calcite.org.apache.httpcomponents.client5.httpclient5, + com.github.vlsi.mat.calcite.org.apache.httpcomponents.core5.httpcore5, + com.github.vlsi.mat.calcite.org.apache.httpcomponents.core5.httpcore5-h2, + org.apiguardian.api, + checker-qual, + org.codehaus.janino.commons-compiler, + org.codehaus.janino.janino, + com.github.vlsi.mat.calcite.org.locationtech.jts.io.jts-io-common, + org.locationtech.jts.jts-core, + org.locationtech.proj4j, + org.objectweb.asm, + org.apache.geronimo.specs.geronimo-jta_1.1_spec, + slf4j.api, + org.yaml.snakeyaml, org.eclipse.ui;bundle-version="3.6.0", org.eclipse.core.runtime;bundle-version="3.7.0", org.eclipse.jface.text;bundle-version="3.7.2", org.eclipse.core.resources;bundle-version="3.7.101" -Bundle-ClassPath: .,target/dependency/MatCalciteDependencies.jar Export-Package: com.github.vlsi.mat.calcite diff --git a/MatCalcitePlugin/build.properties b/MatCalcitePlugin/build.properties index ea54891..31ffbdf 100644 --- a/MatCalcitePlugin/build.properties +++ b/MatCalcitePlugin/build.properties @@ -3,7 +3,5 @@ output.. = bin/ bin.includes = META-INF/,\ .,\ plugin.xml,\ - target/dependency/MatCalciteDependencies.jar,\ resources/ jars.compile.order = . -jars.extra.classpath = target/dependency/MatCalciteDependencies.jar diff --git a/MatCalcitePlugin/pom.xml b/MatCalcitePlugin/pom.xml index 5dc03e2..411cc91 100644 --- a/MatCalcitePlugin/pom.xml +++ b/MatCalcitePlugin/pom.xml @@ -16,9 +16,39 @@ - com.github.vlsi.mat.calcite - MatCalciteDependencies - ${project.version} + net.minidev + accessors-smart + 2.5.0 + + + net.minidev + json-smart + 2.5.0 + + + org.apache.calcite + calcite-core + 1.36.0 + + + org.apache.commons + commons-dbcp2 + 2.11.0 + + + com.google.guava + guava + 32.1.3-jre + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + org.apache.geronimo.specs + geronimo-jta_1.1_spec + 1.1.1 @@ -33,6 +63,20 @@ + + org.apache.felix + maven-bundle-plugin + 5.1.9 + + + bundle-manifest + process-classes + + manifest + + + + maven-dependency-plugin @@ -67,13 +111,13 @@ ${tycho-version} true - - - com.github.vlsi.mat.calcite - MatCalciteDependencies - ${project.version} - - + + + + + + + diff --git a/MatCalciteTargetPlatform/MatCalciteTargetPlatform.target b/MatCalciteTargetPlatform/MatCalciteTargetPlatform.target index 3e7c108..04a25d9 100644 --- a/MatCalciteTargetPlatform/MatCalciteTargetPlatform.target +++ b/MatCalciteTargetPlatform/MatCalciteTargetPlatform.target @@ -1,7 +1,7 @@ - + @@ -9,5 +9,34 @@ + + + + net.minidev + accessors-smart + 2.5.0 + + + net.minidev + json-smart + 2.5.0 + + + org.apache.calcite + calcite-core + 1.36.0 + + + com.google.guava + guava + 32.1.3-jre + + + com.google.code.findbugs + jsr305 + 3.0.2 + + + diff --git a/pom.xml b/pom.xml index db01013..648c3f7 100644 --- a/pom.xml +++ b/pom.xml @@ -11,7 +11,6 @@ 4.0.3 - 2.7.5 https://download.eclipse.org/releases/2023-09 UTF-8 17 @@ -53,22 +52,14 @@ plugin-source + + feature-source + + feature-source + + - - - - - - - - - - - - - - org.eclipse.tycho tycho-p2-plugin @@ -87,6 +78,21 @@ org.eclipse.tycho tycho-packaging-plugin ${tycho-version} + + + validate-pom + verify + + verify-osgi-pom + + + + + + true + + true + org.eclipse.tycho @@ -111,7 +117,8 @@ target-platform-configuration ${tycho-version} - + wrapAsBundle + JavaSE-17 com.github.vlsi.mat.calcite