Skip to content

Commit

Permalink
Merge pull request #1 from alenon/develop
Browse files Browse the repository at this point in the history
added publish to bintray
  • Loading branch information
alenon committed Mar 26, 2018
2 parents 1edc022 + 840e7d8 commit 779819a
Show file tree
Hide file tree
Showing 2 changed files with 54 additions and 3 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
jwildcard/.gradle/
jwildcard/gradle.properties
jwildcard/out/
56 changes: 53 additions & 3 deletions jwildcard/build.gradle
Original file line number Diff line number Diff line change
@@ -1,15 +1,65 @@
repositories {
jcenter()
buildscript {
repositories {
jcenter()
}
}

plugins {
id "com.jfrog.bintray" version "1.7"
}

apply plugin: 'java'
sourceCompatibility = 1.8

group 'com.yevdo'
version '1.0-SNAPSHOT'
version '1.0'

dependencies {
testCompile group: 'org.codehaus.groovy', name: 'groovy-all', version: '2.4.7'
testCompile group: 'org.spockframework', name: 'spock-core', version: '1.1-groovy-2.4'
testCompile group: 'cglib', name: 'cglib-nodep', version: '3.2.4'
}

allprojects {
repositories {
jcenter()
}
apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: 'java'
}

publishing {
publications {
MyPublication(MavenPublication) {
from components.java
groupId 'com.yevdo'
artifactId 'jwildcard'
version '1.0'
}
}
}

bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('BINTRAY_USER')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('BINTRAY_API_KEY')
publications = ['MyPublication']
pkg {
repo = 'jwildcard'
name = 'jwildcard'
userOrg = 'yevdo'
licenses = ['MIT']
vcsUrl = 'https://github.com/alenon/JWildcard.git'
labels = ['wildcard', 'java']
publicDownloadNumbers = true
version {
name = '1.0'
desc = 'JWildcard'
vcsTag = '1.0'
}
}
}

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

0 comments on commit 779819a

Please sign in to comment.