Skip to content

Latest commit

 

History

History
65 lines (47 loc) · 3.02 KB

README.md

File metadata and controls

65 lines (47 loc) · 3.02 KB

Henshin (repackaged for Maven)

Clojars Project Clojars Project

This project's purpose is to simplify the process of making Henshin available via Maven by packing the contents of the JARs in the Henshin bundle into one single JAR, and pushing that as an artifact to the public Clojars Maven repository.

You can use the Henshin library within your Maven or Gradle build as follows:

Gradle:

compile 'org.eclipse.emf.henshin:henshin:1.4.0'

Maven:

<dependency>
  <groupId>org.eclipse.emf.henshin</groupId>
  <artifactId>henshin</artifactId>
  <version>1.4.0</version>
</dependency>

Do not forget to add the Clojars repository to your build: https://clojars.org/repo/

If you only need the Henshin interpreter and model without all the other plugins, use the following artifact:

Gradle:

compile 'org.eclipse.emf.henshin:henshin-interpreter:1.4.0'

Maven:

<dependency>
  <groupId>org.eclipse.emf.henshin</groupId>
  <artifactId>henshin-interpreter</artifactId>
  <version>1.4.0</version>
</dependency>

Note: The Henshin interpreter in version 1.4.0 has also been published to the Maven Central (including source and javadoc JAR's) by the Context Mapper project. Have a look at https://github.com/ContextMapper/henshin-interpreter. You may want to use this version if you need the interpreter only. (does not require additional Maven repository in your build)

Usage

This project is based on the excellent Leiningen tool, which you need to install first. Furthermore, you need an account at Clojars and be added to the org.eclipse.emf.henshin group (create an issue if you want to deploy a new version by yourself).

Once these requirements are met, this is the procedure to create a new Henshin release and push it to Clojars.

  1. Download the current Henshin release from the Henshin Homepage.

  2. Adjust the version number in project.clj to match the Henshin release. (Please, only release stable versions. Or simply create an issue here at github and request that I do a new release.)

  3. Unzip it somewhere, and copy all JAR files in eclipse/plugins/ to this project's henshin-jars folder.

  4. Run the do-release.zsh script.

That will create one single JAR containing all Henshin classes (docs are not included) and upload it to clojars.

License

Henshin is distributed under the Eclipse Public License 1.0.