Skip to content

Commit

Permalink
Merge pull request #2 from clef/jcenter
Browse files Browse the repository at this point in the history
Add configuration for publishing
  • Loading branch information
landakram authored Nov 18, 2016
2 parents 6a7c4dc + dce8c96 commit 0f8a514
Showing 1 changed file with 32 additions and 2 deletions.
34 changes: 32 additions & 2 deletions build.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,19 @@
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7'
}
}

apply plugin: 'com.jfrog.bintray'
apply plugin: 'java'
apply plugin: 'maven-publish'

sourceCompatibility = 1.7
targetCompatibility = 1.7

repositories {
jcenter()
}
Expand All @@ -16,9 +29,26 @@ publishing {
mavenJava(MavenPublication) {
groupId 'com.instant2fa'
artifactId 'instant2fa'
version '0.0.2'
version '1.0.1'

from components.java
}
}
}
}

bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenJava']
pkg {
repo = 'instant2fa'
name = 'instant2fa'
userOrg = user
licenses = ['MIT']
vcsUrl = 'https://github.com/clef/instant2fa-java.git'
labels = ['two-factor', 'authentication', '2fa']
version {
name = '1.0.1'
}
}
}

0 comments on commit 0f8a514

Please sign in to comment.