Skip to content

Latest commit

 

History

History
61 lines (42 loc) · 2.74 KB

Developing.md

File metadata and controls

61 lines (42 loc) · 2.74 KB

Developing the Gradle Plugin

The work of the plugin is mainly done in the xslt 2.0 scripts, and the plugin source is mainly concerned with running these.

The XSLT reads all the models and mapping files in binding_setup.xsl and there are a series of useful functions that can answer model questions such as "has subtypes" defined in common-binding.xsl - Other XSLT scripts then build on these foundations.

There is a sample project that acts as a test bench for the plugin.

http://dh.obdurodon.org/xslt3.xhtml is a good summary of the new features in XSLT 3.0.

Local testing

Testing to the plugin against the sample models can be done in the gradletooling directory where

gradle test

will run all the code generation and serialization tests against the sample models.

When a new version of the plugin is being tested before release, the version numbers should be incremented and the plugin source and the sample project installed locally using

gradle :gradle-plugin:publishToMavenLocal

Publishing

@pahjbo has the credentials for publishing the products of this repository.

Publishing the Gradle plugin

gradle :gradle-plugin:publishplugins

Publishing the Java runtime to Maven Central

The runtime is published to the org.javastro owned part of the maven central repository

In the top directory the following will create a staging repository

gradle :java:publishToSonatype :java:closeSonatypeStagingRepository

which can then be checked and released in the https://oss.sonatype.org/ GUI.

Maven Central