Skip to content
This repository was archived by the owner on Nov 23, 2023. It is now read-only.

Commit 0cbfc53

Browse files
committed
Bump to v2.0.0 + require KNIME 4
Fixes #2
1 parent 67ac5e0 commit 0cbfc53

File tree

23 files changed

+241
-122
lines changed

23 files changed

+241
-122
lines changed

.gitignore

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,9 @@
11
target/
2+
3+
# Eclipse
24
.project
35
.settings
6+
7+
# IDEA
8+
*.iml
9+
.idea

.travis.yml

Lines changed: 1 addition & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,3 @@
1-
sudo: false
21
language: java
32
cache:
43
directories:
@@ -8,7 +7,7 @@ cache:
87
matrix:
98
include:
109
- os: linux
11-
jdk: oraclejdk8
10+
jdk: openjdk8
1211
script: xvfb-run mvn verify -B
1312
before_install:
1413
- if [ ! -e $HOME/conda/bin/activate ]; then

.zenodo.json

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,4 @@
1+
{
2+
"title": "KNIME Python node archetype",
3+
"license": "Apache-2.0"
4+
}

CHANGELOG.md

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -5,6 +5,18 @@ The file is formatted as described on http://keepachangelog.com/.
55

66
## [Unreleased]
77

8+
## [2.0.0] - 2019-07-03
9+
10+
### Added
11+
12+
* CITATION.cff and .zenodo.json files, for better citation support
13+
14+
### Changed
15+
16+
* Requires KNIME version 4 ([#2](https://github.com/3D-e-Chem/knime-python-node-archetype/issues/2))
17+
* Switched from KNIME SDK to Eclipse + target platform
18+
* Source jars for plugin have been replaced with source reference in MANIFEST.MF
19+
820
## [1.4.0] - 2018-02-07
921

1022
Synced with [tycho-knime-node-archetype v1.5.0](https://github.com/3D-e-Chem/tycho-knime-node-archetype/releases/tag/v1.5.0).

CITATION.cff

Lines changed: 15 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,15 @@
1+
# YAML 1.2
2+
# Metadata for citation of this software according to the CFF format (https://citation-file-format.github.io/)
3+
cff-version: 1.0.3
4+
message: If you use this software, please cite it as below.
5+
title: KNIME node archetype
6+
doi: 10.5281/zenodo.3266165
7+
authors:
8+
- given-names: Stefan
9+
family-names: Verhoeven
10+
affiliation: Nederlands eScience Center
11+
orcid: https://orcid.org/0000-0002-5821-2060
12+
version: 2.0.0
13+
date-released: 2019-07-02
14+
repository-code: https://github.com/3D-e-Chem/tycho-knime-node-archetype
15+
license: Apache-2.0

README.md

Lines changed: 30 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -26,7 +26,7 @@ See https://github.com/3D-e-Chem/knime-python-wrapper for more information how t
2626

2727
## Requirements
2828

29-
* Java >=1.8
29+
* Java ==8
3030
* Maven >=3.0
3131

3232
The archetype is hosted on a [BinTray repository](https://dl.bintray.com/nlesc/knime-python-node-archetyp).
@@ -61,7 +61,7 @@ The following command will generate a skeleton project
6161
```sh
6262
mvn archetype:generate -DarchetypeGroupId=nl.esciencecenter \
6363
-DarchetypeArtifactId=knime-python-node-archetype \
64-
-DarchetypeVersion=1.4.0 \
64+
-DarchetypeVersion=2.0.0 \
6565
-P pythonknimearchetype
6666
```
6767

@@ -96,26 +96,32 @@ Further instructions about generated project can be found in it's README.md file
9696

9797
## Generate from inside KNIME SDK
9898

99-
1. Start up the KNIME SDK
100-
2. Install the `m2e - Maven Integration for Eclipse` software, (you might need to add the add the Eclipse software site which is `http://download.eclipse.org/releases/neon` for the version 3.5.1 of the KNIME SDK)
101-
3. Register the archetype catalog which contains this archetype
102-
3.1. Goto Window > Preferences > Maven > Archetypes
103-
3.2. Add a remove catalog with `https://github.com/3D-e-Chem/knime-python-node-archetype/raw/master/archetype-catalog.xml`
104-
4. Create a new project based on archetype
105-
4.1. Goto File > New > Project ... > Maven
106-
4.2. Select Maven Project & press Next button
107-
4.3. Use default location & press Next button
108-
4.4. Select Catalog you added in 3.2
109-
4.5. Select the archetype with artifact id `knime-python-node-archetype` & press Next button
110-
4.6. Fill in the form & press Finish button
99+
1. Install Java 8
100+
2. Install Eclipse for [RCP and RAP developers](https://www.eclipse.org/downloads/packages/release/2018-12/r/eclipse-ide-rcp-and-rap-developers)
101+
3. Configure Java 8 inside Eclipse Window > Preferences > Java > Installed JREs
102+
4. Register the archetype catalog which contains this archetype
103+
104+
1. Goto Window > Preferences > Maven > Archetypes
105+
2. Add a remote catalog with `https://github.com/3D-e-Chem/knime-python-node-archetype/raw/master/archetype-catalog.xml`
106+
107+
5. Create a new project based on archetype
108+
109+
1. Goto File > New > Project ... > Maven
110+
2. Select Maven Project & press Next button
111+
3. Use default location & press Next button
112+
4. Select Catalog you added in step 4.2
113+
5. Select the archetype with artifact id `tknime-python-node-archetype` & press Next button
114+
6. Fill in the form & press Finish button
115+
116+
Further instructions about generated project can be found in it's README.md file.
111117

112118
## New release
113119

114120
1. Adjust version in pom.xml
115-
2. Update CHANGELOG.md & README.md & archetype-catalog.xml
121+
2. Update CHANGELOG.md & README.md & archetype-catalog.xml & CITATION.cff
116122
3. Commit & push
117-
4. Create GitHub release
118-
5. Correct License in the Zenodo entry and publish the entry
123+
4. Test archetype by running `mvn verify`
124+
5. Create GitHub release
119125
6. Deploy to Bintray, see Deploy chapter below
120126

121127
### Deploy
@@ -125,11 +131,13 @@ To deploy current version to Bintray.
125131
1. Add bintray API key to [~/.m2/settings.xml](https://maven.apache.org/settings.html)
126132

127133
```
128-
<server>
129-
<id>bintray-nlesc-knime-python-node-archetype</id>
130-
<username>************</username>
131-
<password>********************************</password>
132-
</server>
134+
<servers>
135+
<server>
136+
<id>bintray-nlesc-knime-python-node-archetype</id>
137+
<username>************</username>
138+
<password>********************************</password>
139+
</server>
140+
<servers>
133141
```
134142

135143
2. Run `mvn deploy`

archetype-catalog.xml

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,7 +6,7 @@
66
<archetype>
77
<groupId>nl.esciencecenter</groupId>
88
<artifactId>knime-python-node-archetype</artifactId>
9-
<version>1.4.0</version>
9+
<version>2.0.0</version>
1010
<description>knime.node.archetype</description>
1111
<repository>https://dl.bintray.com/nlesc/knime-python-node-archetype</repository>
1212
</archetype>

pom.xml

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -2,7 +2,7 @@
22
<modelVersion>4.0.0</modelVersion>
33
<groupId>nl.esciencecenter</groupId>
44
<artifactId>knime-python-node-archetype</artifactId>
5-
<version>1.4.0</version>
5+
<version>2.0.0</version>
66
<name>Archetype - KNIME Python node</name>
77
<packaging>maven-archetype</packaging>
88
<licenses>
@@ -29,7 +29,7 @@
2929
</ciManagement>
3030

3131
<properties>
32-
<archetype.version>3.0.0</archetype.version>
32+
<archetype.version>3.0.1</archetype.version>
3333
</properties>
3434

3535
<build>

src/main/resources/META-INF/maven/archetype-metadata.xml

Lines changed: 15 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -4,13 +4,13 @@
44
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance">
55
<requiredProperties>
66
<requiredProperty key="tycho_version">
7-
<defaultValue>1.1.0</defaultValue>
7+
<defaultValue>1.4.0</defaultValue>
88
</requiredProperty>
99
<requiredProperty key="java_version">
1010
<defaultValue>1.8</defaultValue>
1111
</requiredProperty>
1212
<requiredProperty key="knime_version">
13-
<defaultValue>3.5</defaultValue>
13+
<defaultValue>4.0</defaultValue>
1414
</requiredProperty>
1515
<requiredProperty key="github_organization" />
1616
<requiredProperty key="github_repository" />
@@ -27,6 +27,8 @@
2727
<includes>
2828
<include>README.md</include>
2929
<include>.travis.yml</include>
30+
<include>.zenodo.json</include>
31+
<include>CITATION.cff</include>
3032
</includes>
3133
</fileSet>
3234
<fileSet encoding="UTF-8">
@@ -129,5 +131,15 @@
129131
</fileSet>
130132
</fileSets>
131133
</module>
134+
<module id="${rootArtifactId}.targetplatform" dir="targetplatform" name="${rootArtifactId}.targetplatform">
135+
<fileSets>
136+
<fileSet filtered="true" encoding="UTF-8">
137+
<directory></directory>
138+
<includes>
139+
<include>KNIME-AP-4.0.target</include>
140+
</includes>
141+
</fileSet>
142+
</fileSets>
143+
</module>
132144
</modules>
133-
</archetype-descriptor>
145+
</archetype-descriptor>

src/main/resources/archetype-resources/.gitignore

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,4 +1,5 @@
11
*.class
2+
*.pyc
23

34
# Mobile Tools for Java (J2ME)
45
.mtj.tmp/

0 commit comments

Comments
 (0)