You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@plc4x.apache.org by ot...@apache.org on 2020/09/01 12:04:27 UTC

[plc4x] branch develop updated: Use Gradle with compiled library

This is an automated email from the ASF dual-hosted git repository.

otluk pushed a commit to branch develop
in repository https://gitbox.apache.org/repos/asf/plc4x.git


The following commit(s) were added to refs/heads/develop by this push:
     new cb981c8  Use Gradle with compiled library
     new f960160  Merge pull request #183 from foxpluto/develop
cb981c8 is described below

commit cb981c88f4764cdb268e5d983fe1911592119857
Author: Stefano Bossi <st...@gmail.com>
AuthorDate: Tue Sep 1 12:48:46 2020 +0200

    Use Gradle with compiled library
---
 src/site/asciidoc/developers/building.adoc | 23 ++++++++++++++++++++++-
 1 file changed, 22 insertions(+), 1 deletion(-)

diff --git a/src/site/asciidoc/developers/building.adoc b/src/site/asciidoc/developers/building.adoc
index c945b5d..b49795d 100644
--- a/src/site/asciidoc/developers/building.adoc
+++ b/src/site/asciidoc/developers/building.adoc
@@ -155,4 +155,25 @@ In the `CI Build` this profile is enabled.
 
 Some times, actually only on the build-server we have encountered random failures of the `prerequisite check` build step.
 
-In order to still be able to build in this case, activating this profile simply disables these checks.
\ No newline at end of file
+In order to still be able to build in this case, activating this profile simply disables these checks.
+
+=== Use the compiled library with Gradle
+
+Compiling the library as explained here add the new version in the local Maven repository (i.e. usually under `~/.m2/repository` on linux like systems), if you would like to use Gradle as Build Tool for your project you have just to use a local repository in your Gradle `build.gradle` file.
+
+Here there's an example: 
+
+[source, groovy]
+:source-highlighter: prettify
+----
+repositories {
+    mavenCentral()
+    mavenLocal()
+}
+
+dependencies {
+    implementation group: 'org.apache.plc4x', name: 'plc4j-api', version: '0.8.0-SNAPSHOT'
+    implementation group: 'org.apache.plc4x', name: 'plc4j-driver-s7', version: '0.8.0-SNAPSHOT'
+    implementation group: 'org.apache.plc4x', name: 'plc4j-connection-pool', version: '0.8.0-SNAPSHOT'
+}
+----