Thanks! will do! Samantha
On Mon, Apr 24, 2017 at 8:36 AM, Dale LaBossiere <[email protected]> wrote: > I now noticed the mavenLocal info is mentioned in DEVELOPMENT.md [1] :-) > > The Overview doc [2] (scroll to the bottom) describes what you need to add > to a classpath to but doesn’t generally describe how to achieve that for > different build environments. > Still, maybe it’s worth providing a link to that gradle info there? An > opportunity to contribute! :-) > > Additionally, seems like it would be nice if there was some doc/help on > how to populate a mavenLocal repo from a binary-release - e.g., include a > gradle script in the binary release that will do that. Or maybe provide > some gradle script that a project could just include that essentially just > defines a “repository” (jars and metadata) so that the project can express > the dependency in the normal way but not have to populate a mavenLocal > repository. Don’t know if that sort of thing is possible :-) > > Feel free to file a JIRA [3] requesting enhancements. > > Regardless pls share what you eventually came up with. > > Thanks, > — Dale > > [1] https://github.com/apache/incubator-edgent/blob/master/ > DEVELOPMENT.md#publish-to-maven-repository > [2] https://edgent.apache.org/javadoc/latest/ <https://edgent.apache.org/ > javadoc/latest/> > [3] https://issues.apache.org/jira/browse/EDGENT > > > On Apr 24, 2017, at 8:56 AM, Dale LaBossiere <[email protected]> > wrote: > > > > Hi, > > > > Edgent does not publish to MavenCentral. > > > > A while ago someone contributed changes to support publishing into > mavenLocal. > > > > $ ./gradlew publishToMavenLocal > > > > Then… > > > > repositories { > > mavenLocal() > > } > > > > And specify dependencies like: org.apache.edgent:edgent.api. > topology:1.1.0 > > > > Alternatively you can specify a dependency on a local jar. Something > like this I think > > > > dependencies { > > compile files(‘path-to-jar’) > > } > > > > Hope that helps > > — Dale > > > >> On Apr 22, 2017, at 9:56 AM, Samantha Chan <[email protected]> > wrote: > >> > >> Hi - > >> > >> I am building an application that uses Apache Edgent. I am trying to > use > >> Gradle to build my application. In Gradle, one can specify dependencies > >> like this: > >> > >> repositories { > >> mavenCentral() > >> } > >> > >> dependencies { > >> compile group 'ca.uhn.hapi', name: 'hapi-base', version: '2.2' > >> } > >> > >> This will download my dependency from Maven and I can use it to build my > >> project. > >> > >> Is Apache Edgent published to Maven Central? What's the best way to > >> include Apache Edgent dependency in my gradle build script? > >> > >> Thanks... > >> Samantha > > > >
