Skip to content

Commit

Permalink
prepare next release
Browse files Browse the repository at this point in the history
  • Loading branch information
Jan Schäfer committed Nov 1, 2015
1 parent fc08b4f commit 550caa8
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 4 deletions.
16 changes: 12 additions & 4 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,12 +17,12 @@ apply plugin: 'com.github.kt3k.coveralls'
description = 'JGiven - BDD in plain Java'

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

allprojects {
group = 'com.tngtech.jgiven'
version = '0.9.4-SNAPSHOT'
version = version
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
ext.isCI = System.env.CI == "true"
apply plugin: 'jacoco'
Expand All @@ -40,7 +40,6 @@ if (JavaVersion.current().isJava8Compatible()) {
}
}


subprojects {
apply plugin: 'checkstyle'
apply plugin: 'eclipse'
Expand Down Expand Up @@ -272,6 +271,16 @@ subprojects {
!(isCI && isReleaseVersion)
}

uploadArchives.doFirst {
if (!isCI && isReleaseVersion && !JavaVersion.current().isJava8Compatible()) {
throw new GradleException("Releases have to be done with Java 8");
}
}

javadoc.onlyIf {
JavaVersion.current().isJava8Compatible()
}

}

task overallJacocoReport(type: JacocoReport) {
Expand All @@ -293,4 +302,3 @@ coveralls.jacocoReportPath = 'build/reports/jacoco/overallJacocoReport/overallJa
coveralls.sourceDirs = ["jgiven-core/src/main/java"]
coveralls.saveAsFile = true


1 change: 1 addition & 0 deletions gradle.properties
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
version=0.9.4
1 change: 1 addition & 0 deletions scripts/release.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
./gradlew clean test uploadArchives

0 comments on commit 550caa8

Please sign in to comment.