Skip to content

Instantly share code, notes, and snippets.

@dnault
Created February 3, 2015 02:28
Show Gist options
  • Save dnault/5240f129d6d6aab77c46 to your computer and use it in GitHub Desktop.
Save dnault/5240f129d6d6aab77c46 to your computer and use it in GitHub Desktop.
buildscript {
repositories {
jcenter()
}
dependencies {
classpath "com.netflix.nebula:nebula-publishing-plugin:2.0.1"
classpath "com.netflix.nebula:gradle-extra-configurations-plugin:2.0.1"
}
}
apply plugin: 'java'
apply plugin: "nebula.provided-base"
apply plugin: 'nebula.nebula-source-jar'
apply plugin: 'nebula.nebula-javadoc-jar'
apply plugin: 'nebula.nebula-maven-publishing'
version = "0.1.0"
group = "com.example"
repositories {
jcenter()
}
dependencies {
// presencpe of a 'provided' dependency causes failure
// in generatePomFileForMavenNebulaPublication
provided "org.slf4j:slf4j-api:1.7.7"
compile "org.apache.commons:commons-lang3:3.0.1"
}
publishing {
repositories {
maven {
url("http://localhost:8081/artifactory/libs-release-local")
credentials {
username "admin"
password "password"
}
}
}
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment