The Etendo Testing Plugin is a Gradle plugin designed to facilitate testing in projects using Java and Groovy. This plugin provides configurations for source sets and dependencies, making it easier to manage and run tests in Etendo ERP.
To use the Etendo Testing Plugin, include the following in your build.gradle file:
plugins {
id 'com.etendoerp.testing.gradleplugin' version '<version>'
}-
Clone the repository into your etendo project
git clone git@github.com:etendosoftware/com.etendoerp.testing.gradleplugin.git buildSrc
Then, go to the
build.gradlefile of Etendo and comment the version of the plugin. -
To compile and deploy an Etendo Core instance you have to setup the configuration variables, to do that you have to create a copy of
gradle.properties.templatefile.cp gradle.properties.template gradle.properties
You can edit
gradle.propertiesfile updating the variables or use the default values
To configure GitHub credentials read Using repositories on Etendo
To publish a new version of the plugin, follow these steps:
-
Update the version in your build.gradle file:
version = '<new-version>' // Update to the new version -
Run the following Gradle command to publish the plugin:
./gradlew publishThis will build and publish the new version of the plugin to the specified Maven repository.