Skip to content

Commit

Permalink
Added a release task
Browse files Browse the repository at this point in the history
  • Loading branch information
ysb33r committed Jul 14, 2016
1 parent 931b2c0 commit 072cc41
Show file tree
Hide file tree
Showing 2 changed files with 9 additions and 30 deletions.
37 changes: 8 additions & 29 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -10,35 +10,6 @@
//
// ============================================================================

//buildscript {
// repositories {
// jcenter()
// mavenLocal()
// maven {
// url "https://plugins.gradle.org/m2/"
// }
// }
// dependencies {
// classpath 'org.ysb33r.gradle:bintray:1.5'
// classpath 'org.jfrog.buildinfo:build-info-extractor-gradle:3.1.0'
// classpath "com.gradle.publish:plugin-publish-plugin:0.9.0"
//
// // See: https://github.com/hierynomus/license-gradle-plugin/issues/67
// classpath 'nl.javadude.gradle.plugins:license-gradle-plugin:0.11.0', {
// exclude module : 'guava'
// }
// }
//}

//apply plugin : 'org.ysb33r.bintray'
//apply plugin : 'org.ysb33r.gradletest'
//apply plugin : 'groovy'
//apply plugin : 'maven'
//apply plugin : 'com.jfrog.artifactory'
//apply plugin : 'com.gradle.plugin-publish'
//apply plugin : 'com.github.hierynomus.license'


plugins {
id 'com.gradle.build-scan' version '1.0'
id 'groovy'
Expand Down Expand Up @@ -175,3 +146,11 @@ license {
excludes(['**/*.ad', '**/*.asciidoc', '**/*.adoc', '**/*.md','**/*.properties'])
exclude '**/*CompatibilitySpec.groovy'
}


task release {
group 'Publication'
description 'Build, test & push publications'
onlyIf { !version.endsWith("SNAPSHOT") }
dependsOn build, publishPlugins, uploadArchives
}
2 changes: 1 addition & 1 deletion src/gradleTest/canWeMakeItRun/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -21,4 +21,4 @@ make {

task runGradleTest {
dependsOn 'make'
}
}

0 comments on commit 072cc41

Please sign in to comment.