positron
positron

Reputation: 3693

Google Guice update site

I am trying to use com.google.inject in my application. Initialy I added as a jar, but now that I am building my application I need Guice to be part of my target definition. What is Google Guice update site URL that I can use in my target definition?

Upvotes: 1

Views: 918

Answers (2)

Romain Bernard
Romain Bernard

Reputation: 96

You could use the xtext 'orbit' update-site, which contains google inject :

<location includeAllPlatforms="false" includeMode="planner" includeSource="true" type="InstallableUnit">
    <unit id="com.google.guava" version="0.0.0"/>
    <unit id="com.google.inject" version="0.0.0"/>
    <unit id="org.apache.log4j" version="0.0.0"/>
    <unit id="org.aopalliance" version="0.0.0"/>
    <unit id="org.easymock" version="0.0.0"/>
    <unit id="org.antlr.runtime" version="0.0.0"/>
    <unit id="org.junit" version="0.0.0"/>
    <unit id="javax.inject" version="0.0.0"/>
    <unit id="org.apache.ant" version="0.0.0"/>
    <unit id="org.objectweb.asm" version="0.0.0"/>
    <repository location="http://download.eclipse.org/tools/orbit/downloads/drops/R20180606145124/repository/"/>
</location>

Upvotes: 2

leeor
leeor

Reputation: 17811

If you're using a build tool like maven or gradle, you can include it as a dependency. For example, here's how you could do it with gradle:

compile 'com.google.inject:guice:4.0'

This will pull in javax.inject which has the standard inject annotation, as a dependency.

Upvotes: 1

Related Questions