Skip to content

Commit

Permalink
Changed release plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
benfortuna committed Feb 5, 2016
1 parent 59f2987 commit 525ed11
Showing 1 changed file with 14 additions and 16 deletions.
30 changes: 14 additions & 16 deletions build.gradle
@@ -1,21 +1,18 @@
buildscript {
repositories {
mavenCentral()
maven {
url 'http://maven.tmatesoft.com/content/repositories/releases/'
}
}

dependencies {
classpath 'au.com.ish.gradle:release:2.2.2'
classpath group: 'pl.allegro.tech.build', name: 'axion-release-plugin', version: '1.3.4'
}
}

apply plugin: 'groovy'
apply plugin: 'osgi'
apply plugin: 'maven'
apply plugin: 'signing'
apply plugin: 'release'
apply plugin: 'pl.allegro.tech.build.axion-release'

repositories {
mavenCentral()
Expand Down Expand Up @@ -53,20 +50,24 @@ signing {
sign configurations.archives
}

release {
failOnSnapshotDependencies = true
// allow modifications due to bug in the release plugin..
allowLocalModifications = true
releaseDryRun = true
scm = 'git'
scmVersion {
tag {
prefix = 'ical4j-extensions'
}
}

group = 'org.mnode.ical4j'
version = release.projectVersion
version = scmVersion.version
description = '''
Support for additional non-standard iCalendar objects
'''
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
ext {
isReleaseVersion = !version.endsWith("SNAPSHOT")

// sonatype credentials
sonatypeUsername = project.hasProperty('sonatypeUsername') ? project.getProperty('sonatypeUsername') : ''
sonatypePassword = project.hasProperty('sonatypePassword') ? project.getProperty('sonatypePassword') : ''
}

uploadArchives {
repositories {
Expand Down Expand Up @@ -111,6 +112,3 @@ uploadArchives {
}
}

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

0 comments on commit 525ed11

Please sign in to comment.