Skip to content

Commit

Permalink
Add modification to release all artifacts easily
Browse files Browse the repository at this point in the history
  • Loading branch information
mariogarcia committed Jan 28, 2018
1 parent f482163 commit 89c43a3
Show file tree
Hide file tree
Showing 4 changed files with 59 additions and 33 deletions.
28 changes: 28 additions & 0 deletions gql-core/gql-core.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ plugins {
id 'maven-publish'
}

apply plugin: 'com.jfrog.bintray'
apply from: "../gradle/groovydoc.gradle"

dependencies {
Expand Down Expand Up @@ -56,3 +57,30 @@ publishing {
}
}
}

bintray {
user = "$bintrayUser"
key = "$bintrayKey"

publish = true
publications = ['gql-core']

pkg {
repo = 'maven'
name = 'gql'
userOrg = 'grooviter'
desc = "$releaseDescription"
websiteUrl = 'http://grooviter.github.io/gql/'
issueTrackerUrl = 'https://github.com/grooviter/gql/issues'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/grooviter/gql.git'
labels = ['groovy', 'graphql', 'dsl', 'asts']

version {
name = "$releaseVersion"
desc = 'GQL Release'
released = new Date()
vcsTag = "$releaseVersion"
}
}
}
30 changes: 26 additions & 4 deletions gql-ratpack/gql-ratpack.gradle
Original file line number Diff line number Diff line change
@@ -1,6 +1,7 @@
apply plugin: 'groovy'
apply plugin: 'jacoco'
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'

dependencies {
compile project(':gql-core')
Expand Down Expand Up @@ -34,8 +35,29 @@ publishing {
}
}

task('console', type: JavaExec) {
main = 'groovy.ui.Console'
project.dependencies.add("compile", 'org.codehaus.groovy:groovy-all:2.4.12')
classpath = sourceSets.main.runtimeClasspath
bintray {
user = "$bintrayUser"
key = "$bintrayKey"

publish = true
publications = ['gql-ratpack']

pkg {
repo = 'maven'
name = 'gql'
userOrg = 'grooviter'
desc = "$releaseDescription"
websiteUrl = 'http://grooviter.github.io/gql/'
issueTrackerUrl = 'https://github.com/grooviter/gql/issues'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/grooviter/gql.git'
labels = ['groovy', 'graphql', 'dsl', 'asts']

version {
name = "$releaseVersion"
desc = 'GQL Ratpack integration Release'
released = new Date()
vcsTag = "$releaseVersion"
}
}
}
5 changes: 5 additions & 0 deletions gql.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -19,3 +19,8 @@ subprojects {
}
}
}

task release() {
dependsOn ':gql-core:bintrayUpload', ':gql-ratpack:bintrayUpload',
':gql-docs:gitPublishPush'
}
29 changes: 0 additions & 29 deletions gradle/bintray.gradle
Original file line number Diff line number Diff line change
@@ -1,29 +0,0 @@
apply plugin: 'maven-publish'
apply plugin: 'com.jfrog.bintray'

bintray {
user = "$bintrayUser"
key = "$bintrayKey"

publish = true
publications = ['gql-core', 'gql-ratpack']

pkg {
repo = 'maven'
name = 'gql'
userOrg = 'grooviter'
desc = "$releaseDescription"
websiteUrl = 'http://grooviter.github.io/gql/'
issueTrackerUrl = 'https://github.com/grooviter/gql/issues'
licenses = ['Apache-2.0']
vcsUrl = 'https://github.com/grooviter/gql.git'
labels = ['groovy', 'graphql', 'dsl', 'asts']

version {
name = "$releaseVersion"
desc = 'GQL Release'
released = new Date()
vcsTag = "$releaseVersion"
}
}
}

0 comments on commit 89c43a3

Please sign in to comment.