Skip to content

Commit

Permalink
Update dependency scan POM for 23.0.12
Browse files Browse the repository at this point in the history
Signed-off-by: Scott Kurz <[email protected]>
  • Loading branch information
scottkurz committed Oct 30, 2023
1 parent 5840f0d commit 7c24b18
Showing 1 changed file with 46 additions and 35 deletions.
81 changes: 46 additions & 35 deletions ci/scans/dependency-only-mend-pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -38,17 +38,30 @@
4. <extraRequirements> in target-platform-configuration config in tests/pom.xml
5. Other plugins/features pulled in via category.xml <repository-reference>
6. Other plugins/features pulled in via feature.xml (I forget the syntax since we don't use this at the moment)
DIRECTIONS:
DIRECTIONS:
(This builds the file from scratch)
1) Start by installing, as an end user, the Enterprise Java package of the matching quarterly release
2a) For Require-Bundle find the plugin version using Help->Installation Details
2b) For Import-Package, open the osgi console, and type `package <the.package>` at the console prompt to find the plugin/bundle and version
3) Look for confirmation of version in Target Platform (.target file) release plugins dir (e.g. https://download.eclipse.org/releases/2023-03/202303151000/plugins/ for the target-platform-1Q2023.target file)
4) Identify/guess the groupId for the corresponding artifact and confirm matching POM coordinates in Maven Central artifact.
This could use some elaboration. The key element making this non-trivial is that the groupId can be anything at all. E.g. much of the "core" (using that term loosely) Eclipse function is packaged with '<groupId>org.eclipse.platform</groupId>', but as central as JDT might seem there is a separate 'org.eclipse.jdt' groupId. The 'com.google.gson' bundle is packaged with `<groupId>com.google.code.gson</groupId>`, so without knowing about 'code' in the groupId could be hard to find. Once the gropId is found, though, the artifact and version are usually obvious enough. It might help to open up the JAR and look for pom.properties and/or find the source in GitHub and guess what pom.xml might be used to release it.
This could use some elaboration. The key element making this non-trivial is that the groupId can be anything at all. E.g. much of the "core" (using that term loosely) Eclipse function is packaged with '<groupId>org.eclipse.platform</groupId>', but as central as JDT might seem there is a separate 'org.eclipse.jdt' groupId. The 'com.google.gson' bundle is packaged with `<groupId>com.google.code.gson</groupId>`, so without knowing about 'code' in the groupId could be hard to find. Once the groupId is found, though, the artifact and version are usually obvious enough. It might help to open up the JAR and look for pom.properties and/or find the source in GitHub and guess what pom.xml might be used to release it.
NEW DIRECTIONS:
(This takes the previous quarter's file as a given and builds the new contents as more of a "delta")
1) Start by installing, as an end user, the Enterprise Java package of the matching quarterly release
2) Take the file, and for each dependency entry, update it with the version of that bundle in the new Eclipse
3) Look for added/deleted contents from MFs, e.g. start with:
`git diff liberty-tools-23.0.9.202309271814..HEAD <hyphen><hyphen> bundles/io.openliberty.tools.eclipse.ui/META-INF/MANIFEST.MF`
Maybe also include ideas from above, like tests/pom.xml, TP file, category.xml, etc.
4) If there is something new, find what bundle it's in, and add that as a whole new entry (a whole new POM dependency)
5) Validate with something like `mvn -f ci/scans/dependency-only-mend-pom.xml compile` to make sure deps are real
GAPS/MISSING:
Expand Down Expand Up @@ -82,9 +95,9 @@ OTHER REFERENCES: https://projects.eclipse.org/projects/eclipse.platform/develo
-->

<properties>
<liberty.ls.version>2.0.1</liberty.ls.version>
<jakarta.ls.version>0.1.1</jakarta.ls.version>
<mp.ls.version>0.7.0</mp.ls.version>
<liberty.ls.version>2.1-SNAPSHOT</liberty.ls.version>
<jakarta.ls.version>0.2.0-SNAPSHOT</jakarta.ls.version>
<mp.ls.version>0.10.0</mp.ls.version>
</properties>

<dependencies>
Expand All @@ -96,120 +109,120 @@ OTHER REFERENCES: https://projects.eclipse.org/projects/eclipse.platform/develo
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt</artifactId>
<version>3.19.100</version>
<version>3.19.200</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.core</artifactId>
<version>3.34.0</version>
<version>3.35.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.debug</artifactId>
<version>3.21.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.debug.ui</artifactId>
<version>3.13.0</version>
<version>3.13.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.launching</artifactId>
<version>3.20.0</version>
<version>3.20.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.jdt</groupId>
<artifactId>org.eclipse.jdt.ui</artifactId>
<version>3.29.0</version>
<version>3.30.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.jface.text</artifactId>
<version>3.24.0</version>
<version>3.24.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.lsp4j</groupId>
<artifactId>org.eclipse.lsp4j</artifactId>
<version>0.21.0</version>
<version>0.21.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.lsp4j</groupId>
<artifactId>org.eclipse.lsp4j.jsonrpc</artifactId>
<version>0.21.0</version>
<version>0.21.1</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.core.commands</artifactId>
<version>3.11.0</version>
<version>3.11.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.core.expressions</artifactId>
<version>3.9.0</version>
<version>3.9.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.core.jobs</artifactId>
<version>3.14.0</version>
<version>3.15.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.core.resources</artifactId>
<version>3.19.0</version>
<version>3.19.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.core.runtime</artifactId>
<version>3.27.0</version>
<version>3.29.0</version>
</dependency>
<dependency>
<!-- org.eclipse.debug.core, org.eclipse.debug.core.model -->
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.debug.core</artifactId>
<version>3.21.0</version>
<version>3.21.101</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.debug.ui</artifactId>
<version>3.18.0</version>
<version>3.18.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.equinox.preferences</artifactId>
<version>3.10.200</version>
<version>3.10.300</version>
</dependency>
<dependency>
<!-- org.osgi.framework, org.eclipse.osgi.service.debug -->
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.osgi</artifactId>
<version>3.18.400</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.osgi.util</artifactId>
<version>3.7.200</version>
<version>3.18.500</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.swt</artifactId>
<version>3.124.0</version>
<version>3.124.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.ui</artifactId>
<version>3.203.100</version>
<version>3.204.0</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.ui.ide</artifactId>
<version>3.21.0</version>
<version>3.21.100</version>
</dependency>
<dependency>
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.ui.editors</artifactId>
<version>3.16.0</version>
<version>3.17.0</version>
</dependency>
<dependency>
<!-- org.eclipse.ui.handlers, org.eclipse.ui.plugin -->
<groupId>org.eclipse.platform</groupId>
<artifactId>org.eclipse.ui.workbench</artifactId>
<version>3.129.0</version>
<version>3.130.0</version>
</dependency>

<!-- Copy/paste from bundles/io.openliberty.tools.eclipse.lsp4e/pom.xml (there seems to be a more elegant way to do this in Mend if anyone want to take this on -->
Expand Down Expand Up @@ -238,5 +251,3 @@ OTHER REFERENCES: https://projects.eclipse.org/projects/eclipse.platform/develo
</dependency>
</dependencies>
</project>


0 comments on commit 7c24b18

Please sign in to comment.