Skip to content

Latest commit

 

History

History
136 lines (122 loc) · 2.92 KB

BINTRAY.adoc

File metadata and controls

136 lines (122 loc) · 2.92 KB

bintray

resolve dependencies

gradle bintray/jcenter installation

gradle setup (build.gradle)
repositories {
  jcenter() // maven { url "https://jcenter.bintray.com" }
}

dependencies {
  compile "com.github.daggerok:kotlin-html-dsl:1.0.ALL"
}

maven bintray/jcenter installation

or shorter, just pom.xml
<repositories>
  <repository>
    <id>bintray-central</id>
    <url>https://jcenter.bintray.com</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.github.daggerok</groupId>
    <artifactId>kotlin-html-dsl</artifactId>
    <version>1.0.ALL</version>
  </dependency>
</dependencies>

gradle bintray/daggerok installation

gradle setup (build.gradle)
repositories {
  maven { url "https://dl.bintray.com/daggerok/daggerok" }
}

dependencies {
  compile "com.github.daggerok:kotlin-html-dsl:1.0.ALL"
}

maven bintray/daggerok installation

or shorter, just pom.xml
<repositories>
  <repository>
    <id>bintray-daggerok</id>
    <url>https://dl.bintray.com/daggerok/daggerok</url>
  </repository>
</repositories>

<dependencies>
  <dependency>
    <groupId>com.github.daggerok</groupId>
    <artifactId>kotlin-html-dsl</artifactId>
    <version>1.0.ALL</version>
  </dependency>
</dependencies>

or longer…​

maven setup (settings.xml)
<profiles>
  <profile>
    <repositories>
      <repository>
        <snapshots>
          <enabled>false</enabled>
        </snapshots>
        <id>bintray-daggerok-daggerok</id>
        <name>bintray</name>
        <url>https://dl.bintray.com/daggerok/daggerok</url>
      </repository>
    </repositories>
    <pluginRepositories>
      <pluginRepository>
        <snapshots>
          <enabled>false</enabled>
        </snapshots>
        <id>bintray-daggerok-daggerok</id>
        <name>bintray-plugins</name>
        <url>https://dl.bintray.com/daggerok/daggerok</url>
      </pluginRepository>
    </pluginRepositories>
    <id>bintray</id>
  </profile>
</profiles>
<activeProfiles>
  <activeProfile>bintray</activeProfile>
</activeProfiles>
maven setup (pom.xml)
<dependency>
  <groupId>com.github.daggerok</groupId>
  <artifactId>kotlin-html-dsl</artifactId>
  <version>1.0.ALL</version>
</dependency>

publish (upload) to bintray

  • register on bintray.com

  • update gradle.properties

cp -Rf gradle.properties-default gradle.properties
vi gradle.properties
# ...
bintrayUser=<change me: your bintray user>
bintrayApiKey=<change me: your bintray api key>
  • publish to bintray

./gradlew -iS clean bintrayUpload

links: