Skip to content

Commit 51d2a5d

Browse files
committed
Support KNIME 5.1
1 parent 02cb22c commit 51d2a5d

File tree

13 files changed

+146
-80
lines changed

13 files changed

+146
-80
lines changed

.github/workflows/build.yml

Lines changed: 13 additions & 25 deletions
Original file line numberDiff line numberDiff line change
@@ -5,10 +5,10 @@ name: Java CI with Maven
55

66
on:
77
push:
8+
branches:
9+
- master
810
pull_request:
9-
types:
10-
- "opened"
11-
- "reopened"
11+
types: [opened, synchronize, reopened]
1212

1313
jobs:
1414
build:
@@ -17,29 +17,17 @@ jobs:
1717
run:
1818
shell: bash -l {0}
1919
steps:
20-
- uses: actions/checkout@v2
21-
- name: Set up JDK 1.8
22-
uses: actions/setup-java@v1
20+
- uses: actions/checkout@v3
2321
with:
24-
java-version: 1.8
25-
- name: Cache Maven packages
26-
uses: actions/cache@v2
22+
fetch-depth: 0
23+
- name: Set up JDK 17
24+
uses: actions/setup-java@v3
2725
with:
28-
path: ~/.m2
29-
key: ${{ runner.os }}-m2-${{ hashFiles('**/pom.xml', '**/MANIFEST.MF', 'targetplatform/*.target') }}
30-
restore-keys: ${{ runner.os }}-m2
31-
- name: OS dependencies
32-
run: sudo apt-get install xvfb
33-
- name: Build with Maven
34-
run: mvn -B package
35-
- name: Run tests
36-
run: xvfb-run mvn verify -B
37-
- name: Set up JDK 11 for SonarCloud analysis
38-
uses: actions/setup-java@v1
39-
with:
40-
java-version: 11
41-
- name: SonarCloud analysis
42-
run: mvn sonar:sonar -Dsonar.login=$SONAR_TOKEN
26+
java-version: 17
27+
distribution: 'temurin'
28+
cache: maven
29+
- name: Build and analyze
4330
env:
44-
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }}
31+
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} # Needed to get PR information, if any
4532
SONAR_TOKEN: ${{ secrets.SONAR_TOKEN }}
33+
run: xvfb-run mvn -B verify org.sonarsource.scanner.maven:sonar-maven-plugin:sonar -Dsonar.projectKey=3D-e-Chem_knime-kripodb

.mvn/extensions.xml

Lines changed: 8 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,8 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<extensions>
3+
<extension>
4+
<groupId>org.eclipse.tycho</groupId>
5+
<artifactId>tycho-build</artifactId>
6+
<version>2.7.5</version>
7+
</extension>
8+
</extensions>

CHANGELOG.md

Lines changed: 10 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -6,9 +6,15 @@ The file is formatted as described on http://keepachangelog.com/.
66

77
## Unreleased
88

9+
## [3.0.1] - 2023-11-22
10+
11+
### Changed
12+
13+
- Require KNIME 5.1
14+
915
## [3.0.0] - 2021-02-12
1016

11-
## Removed
17+
### Removed
1218

1319
- Python based nodes in favour of web service nodes ([#25](https://github.com/3D-e-Chem/knime-kripodb/issues/25))
1420

@@ -171,7 +177,9 @@ Version >= 2.0.0 uses KripoDB Knime node which have there own dialog with combo
171177
- Python templates to use KripoDB package
172178
- Example workflow on Github repo.
173179

174-
[unreleased]: https://github.com/3D-e-Chem/knime-kripodb/compare/v2.5.0...HEAD
180+
[unreleased]: https://github.com/3D-e-Chem/knime-kripodb/compare/v3.0.1...HEAD
181+
[2.5.0]: https://github.com/3D-e-Chem/knime-kripodb/compare/v3.0.0...v3.0.1
182+
[2.5.0]: https://github.com/3D-e-Chem/knime-kripodb/compare/v2.5.0...v3.0.0
175183
[2.5.0]: https://github.com/3D-e-Chem/knime-kripodb/compare/v2.4.2...v2.5.0
176184
[2.4.2]: https://github.com/3D-e-Chem/knime-kripodb/compare/v2.3.1...v2.4.2
177185
[2.4.1]: https://github.com/3D-e-Chem/knime-kripodb/compare/v2.3.0...v2.3.1

CITATION.cff

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,6 +9,5 @@ authors:
99
family-names: Verhoeven
1010
affiliation: Netherlands eScience Center
1111
orcid: https://orcid.org/0000-0002-5821-2060
12-
date-released: 2019-07-02
1312
repository-code: https://github.com/3D-e-Chem/knime-kripodb
1413
license: GPL-3.0

README.md

Lines changed: 8 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -5,15 +5,15 @@ KRIPO stands for [Key Representation of Interaction in POckets](http://dx.doi.or
55
[KNIME](http://www.knime.org) nodes for KripoDB (https://github.com/3D-e-Chem/kripodb).
66

77
[![Java CI with Maven](https://github.com/3D-e-Chem/knime-kripodb/workflows/Java%20CI%20with%20Maven/badge.svg)](https://github.com/3D-e-Chem/knime-kripodb/actions?query=workflow%3A%22Java+CI+with+Maven%22)
8-
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=nl.esciencecenter.e3dchem.kripodb%3Anl.esciencecenter.e3dchem.kripodb&metric=alert_status)](https://sonarcloud.io/dashboard?id=nl.esciencecenter.e3dchem.kripodb%3Anl.esciencecenter.e3dchem.kripodb)
9-
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=nl.esciencecenter.e3dchem.kripodb%3Anl.esciencecenter.e3dchem.kripodb&metric=coverage)](https://sonarcloud.io/dashboard?id=nl.esciencecenter.e3dchem.kripodb%3Anl.esciencecenter.e3dchem.kripodb)
8+
[![Quality Gate Status](https://sonarcloud.io/api/project_badges/measure?project=3D-e-Chem_knime-kripodb&metric=alert_status)](https://sonarcloud.io/summary/new_code?id=3D-e-Chem_knime-kripodb)
9+
[![Coverage](https://sonarcloud.io/api/project_badges/measure?project=3D-e-Chem_knime-kripodb&metric=coverage)](https://sonarcloud.io/summary/new_code?id=3D-e-Chem_knime-kripodb)
1010
[![DOI](https://zenodo.org/badge/DOI/10.5281/zenodo.597262.svg)](https://doi.org/10.5281/zenodo.597262)
1111

1212
# Installation
1313

1414
Requirements:
1515

16-
- KNIME, https://www.knime.org, version 4.0 or higher
16+
- KNIME, https://www.knime.org, version 5.1 or higher
1717

1818
Optionally:
1919

@@ -24,7 +24,7 @@ Steps to get KripoDB nodes inside KNIME:
2424

2525
1. Goto Help > Install new software ... menu
2626
2. Press add button
27-
3. Fill text fields with `https://3d-e-chem.github.io/updates`
27+
3. Fill text fields with `https://3d-e-chem.github.io/updates/5.1`
2828
4. Select --all sites-- in work with pulldown
2929
5. Open KNIME 3D-e-Chem Contributions folder
3030
6. Select KripoDB
@@ -45,11 +45,11 @@ Development requirements:
4545

4646
Steps to get development environment setup based on https://github.com/knime/knime-sdk-setup#sdk-setup:
4747

48-
1. Install Java 8
49-
2. Install Eclipse for [RCP and RAP developers](https://www.eclipse.org/downloads/packages/release/2018-12/r/eclipse-ide-rcp-and-rap-developers)
50-
3. Configure Java 8 inside Eclipse Window > Preferences > Java > Installed JREs
48+
1. Install Java 17
49+
2. Install Eclipse for [RCP and RAP developers](https://www.eclipse.org/downloads/packages/installer)
50+
3. Configure Java 17 inside Eclipse Window > Preferences > Java > Installed JREs
5151
4. Import this repo as an Existing Maven project
52-
5. Activate target platform by going to Window > Preferences > Plug-in Development > Target Platform and check the `KNIME Analytics Platform (4.0) - nl.esciencecenter.e3dchem.kripodb.targetplatform/KNIME-AP-4.0.target` target definition.
52+
5. Activate target platform by going to Window > Preferences > Plug-in Development > Target Platform and check the `KNIME Analytics Platform (5.1) - nl.esciencecenter.e3dchem.kripodb.targetplatform/KNIME-AP-5.1.target` target definition.
5353
6. A KNIME Analytics Platform instance can be started by right clicking on the `targetplatform/KNIME\ Analytics\ Platform.launch` file and selecting `Run As → KNIME Analytics Platform`. The KNIME instance will contain the target platform together with all extensions defined in the workspace.
5454

5555
During import the Tycho Eclipse providers must be installed.

feature/feature.xml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -695,6 +695,10 @@ Public License instead of this License. But first, please read
695695
<discovery label="KripoDB" url="https://github.com/3D-e-Chem/kripodb"/>
696696
</url>
697697

698+
<requires>
699+
<import feature="org.rdkit.knime.binaries.feature" version="0.0.0"/>
700+
</requires>
701+
698702
<plugin
699703
id="nl.esciencecenter.e3dchem.kripodb.plugin"
700704
download-size="0"

plugin/META-INF/MANIFEST.MF

Lines changed: 5 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -3,12 +3,12 @@ Bundle-ManifestVersion: 2
33
Bundle-Name: 3D-e-Chem KNIME KripoDB nodes
44
Bundle-SymbolicName: nl.esciencecenter.e3dchem.kripodb.plugin;singleton:=true
55
Bundle-Version: 3.0.0.qualifier
6-
Bundle-RequiredExecutionEnvironment: JavaSE-1.8
6+
Bundle-RequiredExecutionEnvironment: JavaSE-17
77
Bundle-Activator: nl.esciencecenter.e3dchem.kripodb.Activator
8-
Require-Bundle: org.knime.core;bundle-version="[4.0.0,5.0.0)",
9-
org.knime.base;bundle-version="[4.0.0,5.0.0)",
10-
org.knime.chem.types;bundle-version="[4.0.0,5.0.0)",
11-
org.rdkit.knime.types,
8+
Require-Bundle: org.knime.core;bundle-version="[4.0.0,6.0.0)",
9+
org.knime.base;bundle-version="[4.0.0,6.0.0)",
10+
org.knime.chem.types;bundle-version="[4.0.0,6.0.0)",
11+
org.rdkit.knime.types;bundle-version="[4.6.1,5.0.0)",
1212
nl.esciencecenter.e3dchem.plugin;bundle-version="[1.0.0,2.0.0)",
1313
nl.esciencecenter.e3dchem.knime.pharmacophore.plugin;bundle-version="[1.0.0,2.0.0)"
1414
Bundle-Vendor: Netherlands eScience Center

plugin/pom.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -11,7 +11,7 @@
1111
<artifactId>nl.esciencecenter.e3dchem.kripodb.plugin</artifactId>
1212
<packaging>eclipse-plugin</packaging>
1313
<properties>
14-
<sonar.jacoco.reportPaths>../tests/target/jacoco.exec</sonar.jacoco.reportPaths>
14+
<sonar.coverage.jacoco.xmlReportPaths>../tests/target/report/jacoco.xml</sonar.coverage.jacoco.xmlReportPaths>
1515
<sonar.junit.reportsPath>../tests/target/surefire-reports</sonar.junit.reportsPath>
1616
<!-- exclude the generate client code from sonar cloud analysis -->
1717
<sonar.exclusions>src/java/nl/esciencecenter/e3dchem/kripodb/ws/client/**/*</sonar.exclusions>

pom.xml

Lines changed: 24 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -26,8 +26,8 @@
2626
</issueManagement>
2727

2828
<ciManagement>
29-
<system>Travis CI</system>
30-
<url>http://travis-ci.org/3D-e-Chem/knime-kripodb</url>
29+
<system>GitHub actions</system>
30+
<url>https://github.com/3D-e-Chem/knime-kripodb/actions</url>
3131
</ciManagement>
3232

3333
<modules>
@@ -43,15 +43,34 @@
4343
</prerequisites>
4444

4545
<properties>
46-
<tycho.version>1.4.0</tycho.version>
47-
<tycho.extras.version>1.4.0</tycho.extras.version>
46+
<tycho.version>2.7.5</tycho.version>
47+
<tycho.extras.version>${tycho.version}</tycho.extras.version>
4848
<tycho.test.jvmArgs>-Xmx512m</tycho.test.jvmArgs>
49+
<jacoco.version>0.8.10</jacoco.version>
50+
<java.version>17</java.version>
51+
<maven.compiler.version>3.10.1</maven.compiler.version>
4952
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
5053
<project.reporting.outputEncoding>UTF-8</project.reporting.outputEncoding>
5154
<tycho.scmUrl>scm:git:https://github.com/3D-e-Chem/knime-kripodb.git</tycho.scmUrl>
52-
<target.file>KNIME-AP-4.0</target.file>
55+
<knime.version>5.1</knime.version>
56+
<target.file>KNIME-AP-${knime.version}</target.file>
5357
<sonar.host.url>https://sonarcloud.io</sonar.host.url>
5458
<sonar.organization>3d-e-chem</sonar.organization>
59+
<!-- following required if running mvn from JDK17 -->
60+
<knime.ini.testArgs>--add-opens=java.security.jgss/sun.security.jgss.krb5=ALL-UNNAMED
61+
--add-opens=java.base/sun.security.ssl=ALL-UNNAMED
62+
--add-opens=java.base/sun.security.util=ALL-UNNAMED
63+
--add-opens=java.base/java.lang=ALL-UNNAMED
64+
--add-opens=java.base/java.lang.invoke=ALL-UNNAMED
65+
--add-opens=java.base/java.net=ALL-UNNAMED
66+
--add-opens=java.base/java.nio=ALL-UNNAMED
67+
--add-opens=java.base/java.nio.channels=ALL-UNNAMED
68+
--add-opens=java.base/java.util=ALL-UNNAMED
69+
--add-opens=java.base/sun.nio.ch=ALL-UNNAMED
70+
--add-opens=java.base/sun.nio=ALL-UNNAMED
71+
--add-opens=java.desktop/javax.swing.plaf.basic=ALL-UNNAMED
72+
--add-opens=java.base/sun.net.www.protocol.http=ALL-UNNAMED
73+
-Dmisc.io.testing=true</knime.ini.testArgs>
5574
</properties>
5675
<build>
5776
<plugins>
@@ -119,11 +138,6 @@
119138
</execution>
120139
</executions>
121140
</plugin>
122-
<plugin>
123-
<groupId>org.eclipse.tycho.extras</groupId>
124-
<artifactId>tycho-pack200a-plugin</artifactId>
125-
<version>${tycho.extras.version}</version>
126-
</plugin>
127141
</plugins>
128142
<pluginManagement>
129143
<plugins>

targetplatform/KNIME Analytics Platform.launch

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -15,7 +15,7 @@
1515
<stringAttribute key="location" value="${workspace_loc}/../runtime-KNIME"/>
1616
<booleanAttribute key="org.eclipse.jdt.launching.ATTR_USE_START_ON_FIRST_THREAD" value="true"/>
1717
<booleanAttribute key="org.eclipse.jdt.launching.DEFAULT_CLASSPATH" value="true"/>
18-
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-1.8"/>
18+
<stringAttribute key="org.eclipse.jdt.launching.JRE_CONTAINER" value="org.eclipse.jdt.launching.JRE_CONTAINER/org.eclipse.jdt.internal.debug.ui.launcher.StandardVMType/JavaSE-17"/>
1919
<stringAttribute key="org.eclipse.jdt.launching.PROGRAM_ARGUMENTS" value="-os ${target.os} -ws ${target.ws} -arch ${target.arch} -nl ${target.nl} -consoleLog"/>
2020
<stringAttribute key="org.eclipse.jdt.launching.SOURCE_PATH_PROVIDER" value="org.eclipse.pde.ui.workbenchClasspathProvider"/>
2121
<stringAttribute key="org.eclipse.jdt.launching.VM_ARGUMENTS" value="-server&#10;-Dsun.java2d.d3d=false&#10;-Dosgi.classloader.lock=classname&#10;-XX:+UnlockDiagnosticVMOptions&#10;-XX:+UnsyncloadClass&#10;-XX:+UseG1GC&#10;-Dknime.enable.fastload=true&#10;-ea&#10;-Dorg.eclipse.swt.internal.gtk.cairoGraphics=false&#10;-Dorg.eclipse.swt.internal.gtk.useCairo=false&#10;-Dorg.eclipse.swt.browser.IEVersion=12001&#10;-Dsun.awt.noerasebackground=true&#10;-Dorg.eclipse.swt.internal.gtk.disablePrinting&#10;-Xmx2G"/>

0 commit comments

Comments
 (0)