Skip to content

Commit

Permalink
publishing
Browse files Browse the repository at this point in the history
  • Loading branch information
cinterloper committed Apr 15, 2016
1 parent 312cf17 commit 5c7c9bc
Showing 1 changed file with 43 additions and 0 deletions.
43 changes: 43 additions & 0 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -2,15 +2,31 @@ plugins {
id 'java'
id 'groovy'
id 'application'
id 'maven-publish'
id 'com.github.johnrengelman.shadow' version '1.2.2'
}
def AWS_MVN_BUCKET = System.getenv("AWS_MVN_BUCKET")
def AWS_DEFAULT_REGION = System.getenv("AWS_DEFAULT_REGION")
def AWS_ACCESS_KEY_ID = System.getenv("AWS_ACCESS_KEY_ID")
def AWS_SECRET_ACCESS_KEY = System.getenv("AWS_SECRET_ACCESS_KEY")

repositories {
jcenter()
maven {
url = 'https://oss.sonatype.org/content/repositories/snapshots/'
}
if (AWS_MVN_BUCKET && !AWS_MVN_BUCKET.allWhitespace) {
maven {
url "s3://$AWS_MVN_BUCKET/maven2"
credentials(AwsCredentials) {
accessKey AWS_ACCESS_KEY_ID
secretKey AWS_SECRET_ACCESS_KEY
}
}
}
}
def libversion = '3.2.1'


version = '3.2.1'
sourceCompatibility = '1.8'
Expand Down Expand Up @@ -38,6 +54,33 @@ shadowJar {
}
}


publishing {
repositories {
maven {
url "file:///tmp/maven-repo"
}
if (AWS_MVN_BUCKET && !AWS_MVN_BUCKET.allWhitespace) {
maven {
url "s3://$AWS_MVN_BUCKET/maven2"
credentials(AwsCredentials) {
accessKey AWS_ACCESS_KEY_ID
secretKey AWS_SECRET_ACCESS_KEY
}
}
}
}

publications {
mavenJava(MavenPublication) {
groupId 'net.iowntheinter'
artifactId 'vertx-salt'
from components.java
}
}
}


task wrapper(type: Wrapper) {
gradleVersion = '2.8'
}

0 comments on commit 5c7c9bc

Please sign in to comment.