Skip to content
This repository has been archived by the owner on Aug 2, 2022. It is now read-only.

Commit

Permalink
Publish grails-core to bintray
Browse files Browse the repository at this point in the history
  • Loading branch information
chiquitinxx committed Jan 25, 2017
1 parent 1c1645b commit c27d34c
Show file tree
Hide file tree
Showing 2 changed files with 61 additions and 1 deletion.
3 changes: 2 additions & 1 deletion grails-core/build.gradle
@@ -1,7 +1,8 @@
apply plugin: 'groovy'
apply plugin: 'maven'
apply from: "$projectDir/gradle/publishing.gradle"

version = '0.0.1-SNAPSHOT'
version = '0.0.1'
group = 'org.grooscript'

repositories {
Expand Down
59 changes: 59 additions & 0 deletions grails-core/gradle/publishing.gradle
@@ -0,0 +1,59 @@
buildscript {
repositories {
jcenter()
}

dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.4'
}
}

apply plugin: 'maven'
apply plugin: 'maven-publish'
apply plugin: com.jfrog.bintray.gradle.BintrayPlugin

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

bintray {
user = project.hasProperty('bintray_user') ? bintray_user : ''
key = project.hasProperty('bintray_key') ? bintray_key : ''

publications = ['mavenJava']

dryRun = false //Whether to run this as dry-run, without deploying
publish = true //If version should be auto published after an upload
pkg {
repo = 'grooscript'
name = "org.grooscript:grails-core"
desc = 'Library to work with grails'
websiteUrl = 'http://grooscript.org/'
issueTrackerUrl = 'https://github.com/chiquitinxx/grooscript-plugins/issues'
vcsUrl = 'https://github.com/chiquitinxx/grooscript-plugins.git'
licenses = ['Apache-2.0']
labels = ['groovy', 'grooscript', 'grails']
version {
name = '0.0.1'
desc = 'First version'
vcsTag = '0.0.1'
}
}
}

artifacts {
archives sourcesJar
}

publishing {
publications {
mavenJava(MavenPublication) {
from components.java

artifact sourcesJar {
classifier "sources"
}
}
}
}

0 comments on commit c27d34c

Please sign in to comment.