jitpack / jitpack.io

Documentation and issues of https://jitpack.io
MIT License
2.52k stars 183 forks source link

Add examples for other build tools to the web page #36

Closed JStumpp closed 8 years ago

JStumpp commented 9 years ago

It would be great, if the "How to" section on jitpack e.g.:https://jitpack.io/#movisens/movisensXS-api/0.1 would also include other tabs with examples for the common build tools: Apache Buildr, Apache Ivy, Groovy Grape, Scala SBT and Leiningen like on maven.org: http://search.maven.org/#artifactdetails%7Cnet.sourceforge.javaocr.plugins%7Cjavaocr-plugins-parent%7C1.0%7Cpom

jitpack-io commented 9 years ago

Thanks for the suggestion! It does makes sense to have them although not seeing many requests from other build tools other than Gradle and Maven.

jitpack-io commented 9 years ago

Sbt is now there

jitpack-io commented 8 years ago

Now also showing leiningen

markhu commented 7 years ago

Groovy example using Grapes:

@GrabResolver(name='jitpack.io', root='https://jitpack.io/')
@Grab(group='com.github.jkcclemens', module='khttp', version='-SNAPSHOT')  // version='0.1.0')
import khttp.KHttp
milahu commented 1 year ago

Apache Ivy

ivysettings.xml

<ivysettings>
  <settings defaultResolver="default-chain"/>
  <resolvers>
    <chain name="default-chain">
      <!-- default resolver
        <ibiblio name="maven.org" m2compatible="true" root="https://repo1.maven.org/maven2"/>
      -->
      <ibiblio name="maven.org" m2compatible="true"/>
      <!-- resolver for github
        example use in ivy.xml: https://github.com/omajid/xdg-java
        <dependency org="com.github.omajid" name="xdg-java" rev="7c623b86e6b99bef0a72db86318663ad3c0270e5" conf="compile->master"/>
      -->
      <ibiblio name="jitpack.io" m2compatible="true" root="https://jitpack.io/"/>
    </chain>
  </resolvers>
</ivysettings>

ivy.xml

<ivy-module version="2.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:noNamespaceSchemaLocation="http://ant.apache.org/ivy/schemas/ivy.xsd">
  <info organisation="net.yacy" module="search-server"/>
  <configurations defaultconfmapping="default">
    <!-- https://wrongnotes.blogspot.com/2014/02/simplest-explanation-of-ivy.html -->
    <conf name="compile" visibility="public"/>
    <conf name="test" visibility="public"/>
  </configurations>
  <dependencies defaultconf="compile->default">
    <!-- https://github.com/omajid/xdg-java -->
    <dependency org="com.github.omajid" name="xdg-java" rev="7c623b86e6b99bef0a72db86318663ad3c0270e5" conf="compile->master"/>
  </dependencies>
</ivy-module>

based on https://github.com/yacy/yacy_search_server todo: remove noise

see also