Sha256: 8c36b8c8836e53ab870e6ce61953ef4fa7220c747b25e5c302540abd92c57970
Contents?: true
Size: 1.36 KB
Versions: 1
Compression:
Stored size: 1.36 KB
Contents
apply plugin: 'java' apply plugin: 'maven' apply plugin: 'maven-publish' /** * Specify: * -Pversion=[VERSION] * -Purl=[MAVEN URL TO PUBLISH TO] e.g. "http://nexus.dev.layer.com:8081/nexus/content/repositories/releases" or "${System.env.HOME}/.m2/repository" * -Pusername=[USERNAME FOR MAVEN PUBLISH] * -Ppassword=[PASSWORD FOR MAVEN PUBLISH] */ ext { mavenUrl = rootProject.hasProperty("url") ? rootProject.property("url") : "${System.env.HOME}/.m2/repository" mavenUsername = rootProject.hasProperty("username") ? rootProject.property("username") : null; mavenPassword = rootProject.hasProperty("password") ? rootProject.property("password") : null; } compileJava { sourceCompatibility = 1.6 targetCompatibility = 1.6 } repositories { mavenCentral() } /************************************************* * Uploading ************************************************/ task Jar(type: Jar) { jar.archiveName = "monkeybutler-" + version + ".jar" } publishing { publications { mavenJava(MavenPublication) { groupId "com.layer" artifactId "monkeybutler" from components.java } } repositories { maven { credentials { username = mavenUsername; password = mavenPassword; } url = mavenUrl; } } }
Version data entries
1 entries across 1 versions & 1 rubygems
Version | Path |
---|---|
monkey_butler-1.2.2 | lib/monkey_butler/targets/maven/project/build.gradle |