Adding dependencies to a Geneious plugin
I'm building a Geneious plugin that requires a few HTML and JSON dependencies to call an API. However, I can't figure out how to link those dependencies properly into my Geneious project in IntelliJ so the plugin will compile and build.
I am the first to admit I am not especially good with Ant yet, so it's entirely possible there's something small I'm missing about integrating these. The relevant Maven dependencies are:
<dependency>
<groupId>org.apache.httpcomponents.client5</groupId>
<artifactId>httpclient5</artifactId>
<version>5.3.1</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.apache.httpcomponents/httpmime -->
<dependency>
<groupId>org.apache.httpcomponents</groupId>
<artifactId>httpmime</artifactId>
<version>4.5.14</version>
<scope>compile</scope>
</dependency>
<!-- https://mvnrepository.com/artifact/org.json/json -->
<dependency>
<groupId>org.json</groupId>
<artifactId>json</artifactId>
<version>20240303</version>
</dependency>
-
Hi there,
If you're using an Ant script for building then IntelliJ won't automatically pick up the dependencies and you'll most likely need to add them to the module manually. See https://www.jetbrains.com/help/idea/working-with-module-dependencies.html#add-a-new-dependency
If you don't mind sharing your project to support@geneious.com, then we'd be happy to take a look and advise further.
0
Please sign in to leave a comment.
Comments
1 comment