Sha256: c23ca0942d7dfc865ac8863d0f5483c2c6a54a0b84bf0dcccd980d640d617617
Contents?: true
Size: 1.36 KB
Versions: 3
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 = "migrationbundler-" + version + ".jar" } publishing { publications { mavenJava(MavenPublication) { groupId "com.layer" artifactId "migrationbundler" from components.java } } repositories { maven { credentials { username = mavenUsername; password = mavenPassword; } url = mavenUrl; } } }
Version data entries
3 entries across 3 versions & 1 rubygems