cancel
Showing results for 
Search instead for 
Did you mean: 
cancel
Showing results for 
Search instead for 
Did you mean: 

Thingworx Extension build using Buildship gradle

SOLVED
Highlighted
Pearl

Thingworx Extension build using Buildship gradle

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 

1 ACCEPTED SOLUTION

Accepted Solutions

Re: Thingworx Extension build using Buildship gradle

@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

 

 

View solution in original post

5 REPLIES 5

Re: Thingworx Extension build using Buildship gradle

Hi,

 

Download and install Thingworx extension SDK from Marketplace.

 

Regards,

Janakiraman P

 

 

Re: Thingworx Extension build using Buildship gradle

@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

 

 

View solution in original post

Re: Thingworx Extension build using Buildship gradle

@Velkumar 

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

CS219756

CS233537

 

-Thanks,

Vibhuti

Re: Thingworx Extension build using Buildship gradle

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

 

 

Re: Thingworx Extension build using Buildship gradle

Hello @bootstrap 

 

Thank you. It works perfect.

 

Regards,

VR

Announcements

Thingworx Navigate content has a new home! Click here to access the new Thingworx Navigate forum! ______________________________