Skip to content

Commit

Permalink
used bintray-gradle-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
mariodavid committed Apr 21, 2018
1 parent d59e9b1 commit 57478ff
Show file tree
Hide file tree
Showing 2 changed files with 42 additions and 16 deletions.
56 changes: 41 additions & 15 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -15,7 +15,7 @@ buildscript {
dependencies {
classpath "com.haulmont.gradle:cuba-plugin:$cubaVersion"


classpath "com.jfrog.bintray.gradle:gradle-bintray-plugin:1.8.0"

classpath 'net.saliman:gradle-cobertura-plugin:2.5.0'
classpath "org.kt3k.gradle.plugin:coveralls-gradle-plugin:2.8.2"
Expand All @@ -39,10 +39,6 @@ apply(plugin: 'idea')
apply(plugin: 'cuba')


def bintrayRepositoryUrl = "https://api.bintray.com/maven/mariodavid/cuba-components/cuba-component-data-import/;publish=1"



cuba {
artifact {
group = 'de.diedavids.cuba.dataimport'
Expand All @@ -52,21 +48,51 @@ cuba {
tomcat {
dir = "$project.rootDir/deploy/tomcat"
}
uploadRepository {
if (cuba.artifact.isSnapshot) {
url = System.properties['uploadRepositorySnapshot'] ?: System.env.UPLOAD_REPOSITORY_SNAPSHOT
} else {
url = System.properties['uploadRepositoryRelease'] ?: System.env.UPLOAD_REPOSITORY_RELEASE ?: bintrayRepositoryUrl
}

user = System.env.UPLOAD_REPOSITORY_USERNAME
password = System.env.UPLOAD_REPOSITORY_PASSWORD
}
ide {
vcs = 'Git'
}
}

subprojects {
apply plugin: 'com.jfrog.bintray'

bintray {
user = project.hasProperty('bintrayUser') ? project.property('bintrayUser') : System.getenv('UPLOAD_REPOSITORY_USERNAME')
key = project.hasProperty('bintrayApiKey') ? project.property('bintrayApiKey') : System.getenv('UPLOAD_REPOSITORY_PASSWORD')

configurations = ['archives']

publish = true

override = false

// metadata
pkg {
repo = 'cuba-components'
name = 'cuba-component-data-import'
desc = 'CUBA platform application component for data import'
userOrg = 'mariodavid'

websiteUrl = 'https://github.com/mariodavid/cuba-component-data-import'
issueTrackerUrl = 'https://github.com/mariodavid/cuba-component-data-import/issues'
vcsUrl = 'https://github.com/mariodavid/cuba-component-data-import.git'

licenses = ["Apache-2.0"]

labels = ['data-import', 'cuba-patform', 'cuba-component']
githubRepo = 'mariodavid/cuba-component-data-import'
githubReleaseNotesFile = 'CHANGELOG.md'

version {
name = "${cuba.artifact.version}"
desc = ''
released = new Date()
vcsTag = "${cuba.artifact.version}"
}
}
}
}

dependencies {
appComponent("com.haulmont.cuba:cuba-global:$cubaVersion")

Expand Down
2 changes: 1 addition & 1 deletion upload-to-repository.sh
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
#!/usr/bin/env bash


./gradlew uploadArchives
./gradlew clean assemble bintrayUpload

0 comments on commit 57478ff

Please sign in to comment.