# How to add Gson dependecy in build.xml file for custom module

**URL:** <https://community.wowza.com/t/how-to-add-gson-dependecy-in-build-xml-file-for-custom-module/92161>\
**Category:** Wowza Developer Dojo\
**Tags:** wowza-streaming-server-java-api\
**Created:** [October 19, 2020, 10:05am UTC](https://community.wowza.com/t/how-to-add-gson-dependecy-in-build-xml-file-for-custom-module/92161 "2020-10-19T10:05:01Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Alok\_Kumar2](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alok\_Kumar2](https://community.wowza.com/u/Alok_Kumar2)\
**Post date:** [October 19, 2020, 10:05am UTC](https://community.wowza.com/t/how-to-add-gson-dependecy-in-build-xml-file-for-custom-module/92161/1 "2020-10-19T10:05:01Z")

</div>

Hi, I am making a custom server module. I have installed the wowza plugin in Eclipse. I am able to build my module, I was struggling to add Gson dependency in the **build.xml** file. I am not much familiar with Ant framework. I tried to make it work by reading up on internet but I am still struggling. Could you please help me how the build.xml look like after adding the gson dependency. I have download the Gson jar file and kept in in the default lib folder.

here is the default build.xml for my Module

```
    <?xml version="1.0"?>
<project name="StreamingOnDemand" default="jar" basedir="..">
	
	<property name="wowza.lib.dir" value="C:/Program Files (x86)/Wowza Media Systems/Wowza Streaming Engine 4.8.0/lib"/>
	<property name="jar.filename" value="StreamingOnDemand.jar"/>
	<property name="core.build.dir" value="bin"/>

	<target name="jar">
		<jar jarfile="${wowza.lib.dir}/${jar.filename}">
			<fileset dir="${core.build.dir}"/>
		</jar>
	</target>
	
</project>
```

---

<div class="post-metadata">

**Author:** ![Karel\_Boek](https://sea2.discourse-cdn.com/flex002/user_avatar/community.wowza.com/karel_boek/32/454_2.png) [@Karel\_Boek](https://community.wowza.com/u/Karel_Boek)\
**Post date:** [October 19, 2020, 7:35pm UTC](https://community.wowza.com/t/how-to-add-gson-dependecy-in-build-xml-file-for-custom-module/92161/2 "2020-10-19T19:35:47Z")

</div>

I’m not an Ant expert either; and I’ve primarily used Eclipse for development of modules. But I think dependencies go in the `.classpath` file, not in the build.xml.

```auto
<classpath>
...
  <classpathentry kind="lib" path="/path/to/your/lib/gson-2.8.0.jar"/>
</classpath>
```

---

<div class="post-metadata">

**Author:** ![Alok\_Kumar2](https://avatars.discourse-cdn.com/v4/letter/a/3ec8ea/32.png) [@Alok\_Kumar2](https://community.wowza.com/u/Alok_Kumar2)\
**Post date:** [October 20, 2020, 4:25am UTC](https://community.wowza.com/t/how-to-add-gson-dependecy-in-build-xml-file-for-custom-module/92161/3 "2020-10-20T04:25:17Z")

</div>

Yes, you are correct, I was trying at wrong place. this works
