Skip to main content
19-Tanzanite
September 24, 2019
Solved

Thingworx Extension build using Buildship gradle

  • September 24, 2019
  • 5 replies
  • 3542 views

Hello all,

 

I have installed Thingworx Eclipse plugin and Buildship Gradle Integration in my eclipse. I'm not able to find a way to build Thingworx Extension using Buildship. Could any one help me to fix this one ?

 

Thanks in advance,

VR 

Best answer by bootstrap

@Velkumar  I do it with these easy steps (without any eclipse extensions ) require some know how around some commands around how to build but pretty simple

 

1. Just grab one of the gradle zip from here : https://gradle.org/install/

2. Put the C:\Gradle\gradle-5.4.1\bin (adjust the location for bin folder as per your gradle zip downloaded in above step) in the Path for Environment variable 

3. Open a new command prompt / powershell (assuming you on windows) and try 

gradle -version

, to get confirmation path added in step 2 is referenced correctly

If all works fine you will see something like this :

------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------

Build time: 2019-04-26 08:14:42 UTC
Revision: 261d171646b36a6a28d5a19a69676cd098a4c19d

Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_212 (Oracle Corporation 25.212-b10)
OS: Windows 10 10.0 amd64

 

4. Now simply navigate to the project where you have your build.gradle file and if you need to generate the wrapper do in command line CMD / Powershell :

gradle wrapper

5. If you are not using wrapper, then simply use following to test out the clean and build tasks, of course you can call other tasks that you have defined in the build.gradle

gradle clean build

This should generate the build folder with distribution and zip of your project

 

 

5 replies

1-Visitor
September 25, 2019

Hi,

 

Download and install Thingworx extension SDK from Marketplace.

 

Regards,

Janakiraman P

 

 

16-Pearl
September 25, 2019

@Velkumar 

I think below articles might be helpful for you to get additional information.

CS219756

CS233537

 

-Thanks,

Vibhuti

Velkumar19-TanzaniteAuthor
19-Tanzanite
September 25, 2019

Hi @vangne & @Janakiraman-P 

 

Thanks for your solution.

 

I'm already working on developing Thingworx Extesnion using eclipse plugin & Gradle STS. Since Gradle STS will depreciated in future, I'm trying to build extension using Buildship Gradle Integration which is an alternate for Gradle STS.

 

BR,

VR

 

 

bootstrap1-VisitorAnswer
1-Visitor
September 25, 2019

@Velkumar  I do it with these easy steps (without any eclipse extensions ) require some know how around some commands around how to build but pretty simple

 

1. Just grab one of the gradle zip from here : https://gradle.org/install/

2. Put the C:\Gradle\gradle-5.4.1\bin (adjust the location for bin folder as per your gradle zip downloaded in above step) in the Path for Environment variable 

3. Open a new command prompt / powershell (assuming you on windows) and try 

gradle -version

, to get confirmation path added in step 2 is referenced correctly

If all works fine you will see something like this :

------------------------------------------------------------
Gradle 5.4.1
------------------------------------------------------------

Build time: 2019-04-26 08:14:42 UTC
Revision: 261d171646b36a6a28d5a19a69676cd098a4c19d

Kotlin: 1.3.21
Groovy: 2.5.4
Ant: Apache Ant(TM) version 1.9.13 compiled on July 10 2018
JVM: 1.8.0_212 (Oracle Corporation 25.212-b10)
OS: Windows 10 10.0 amd64

 

4. Now simply navigate to the project where you have your build.gradle file and if you need to generate the wrapper do in command line CMD / Powershell :

gradle wrapper

5. If you are not using wrapper, then simply use following to test out the clean and build tasks, of course you can call other tasks that you have defined in the build.gradle

gradle clean build

This should generate the build folder with distribution and zip of your project

 

 

Velkumar19-TanzaniteAuthor
19-Tanzanite
September 27, 2019

Hello @bootstrap 

 

Thank you. It works perfect.

 

Regards,

VR