# Tag-historian dependency can't be found in gateway

**URL:** <https://forum.inductiveautomation.com/t/tag-historian-dependency-cant-be-found-in-gateway/42081>\
**Category:** Module Development\
**Tags:** sdk, ignition81\
**Created:** [January 8, 2021, 11:57pm UTC](https://forum.inductiveautomation.com/t/tag-historian-dependency-cant-be-found-in-gateway/42081 "2021-01-08T23:57:42Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [January 8, 2021, 11:57pm UTC](https://forum.inductiveautomation.com/t/tag-historian-dependency-cant-be-found-in-gateway/42081/1 "2021-01-08T23:57:42Z")

</div>

Hello,

I’m trying to add the following dependency to my Ignition module and I can’t seem to get my module to work unless I make it a “compile” scoped dependency. When I do, my module ends up being ~100MB in size and I get Java heap space errors when loading this into the gateway.

```
    <dependency>
        <groupId>com.inductiveautomation.ignition</groupId>
        <artifactId>tag-historian</artifactId>
        <version>4.1.0</version>
        <scope>compile</scope>
    </dependency>

```

For now, I’ve separately downloaded your tag historian module from the website and added it to my local maven cache and it seems to be working without blowing things up, but what do I need to do to make this a “provided” dependency?

---

<div class="post-metadata">

**Author:** ![paul-griffith](https://sea1.discourse-cdn.com/inductiveautomation/user_avatar/forum.inductiveautomation.com/paul-griffith/32/37249_2.png) [@paul-griffith](https://forum.inductiveautomation.com/u/paul-griffith)\
**Post date:** [January 9, 2021, 1:18am UTC](https://forum.inductiveautomation.com/t/tag-historian-dependency-cant-be-found-in-gateway/42081/2 "2021-01-09T01:18:34Z")

</div>

Your `module.xml` needs to indicate that it requires the tag historian module (in whatever scopes) - if you’re using one of our module builder plugins, it should be part of the setting declaration, e.g. for gradle:  
`moduleDependencies = [:]`  
or for the Maven plugin, it’s the `ModuleDepends[]` array:

```java
    /**
     * Scope and module id of Ignition modules this module depends on.
     */
    @Parameter
    private ModuleDepends[] depends;

```

---

<div class="post-metadata">

**Author:** ![cody.tamaki](https://avatars.discourse-cdn.com/v4/letter/c/b487fb/32.png) [@cody.tamaki](https://forum.inductiveautomation.com/u/cody.tamaki)\
**Post date:** [January 9, 2021, 1:31am UTC](https://forum.inductiveautomation.com/t/tag-historian-dependency-cant-be-found-in-gateway/42081/3 "2021-01-09T01:31:36Z")

</div>

That’s perfect thank you @paul-griffith
