Skip to content

Commit

Permalink
- updated build plugins to latest versions
Browse files Browse the repository at this point in the history
- removed GrGit.open calls and replaced with grgit plugin and system properties
  • Loading branch information
arnett, stu committed Sep 12, 2016
1 parent 5d61db6 commit 8c0e9d5
Show file tree
Hide file tree
Showing 3 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions ecs-publish.buildscript.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -28,6 +28,6 @@ repositories {
mavenCentral()
}
dependencies {
classpath 'org.ajoberstar:gradle-git:1.1.0',
'net.saliman:gradle-cobertura-plugin:2.2.5'
classpath 'org.ajoberstar:gradle-git:1.5.1'
classpath 'net.saliman:gradle-cobertura-plugin:2.3.2'
}
13 changes: 5 additions & 8 deletions ecs-publish.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -81,8 +81,6 @@ buildscript {
apply from: "$commonBuildDir/ecs-publish.buildscript.gradle", to: buildscript
}

import org.ajoberstar.grgit.*

apply plugin: 'idea'
apply plugin: 'eclipse'
apply plugin: 'java'
Expand Down Expand Up @@ -117,8 +115,9 @@ gradle.taskGraph.whenReady { taskGraph ->
githubPages.credentials.password = new String(System.console().readPassword('\nGithub password: '))
}
if (taskGraph.hasTask(':release')) {
def gitPassword = new String(System.console().readPassword('\nASD git password: '))
release.grgit = Grgit.open(project.file('.'), new Credentials(gitUsername, gitPassword))
def gitPassword = new String(System.console().readPassword('\nOrigin password: '))
System.setProperty('org.ajoberstar.grgit.auth.username', gitUsername)
System.setProperty('org.ajoberstar.grgit.auth.password', gitPassword)
}
}
}
Expand Down Expand Up @@ -277,6 +276,7 @@ aggregateDocs.dependsOn { subprojects.collect { it.tasks['aggregateDocs'] } }
// we can't release or publish sub-projects
if (isRootProject) {
apply plugin: 'base'
apply plugin: 'org.ajoberstar.grgit'
apply plugin: 'org.ajoberstar.github-pages'
apply plugin: 'org.ajoberstar.release-opinion'

Expand All @@ -294,9 +294,6 @@ if (isRootProject) {
}
publishGhPages.dependsOn aggregateDocs, test

release {
grgit = Grgit.open(project.file('.'))
}
tasks.release.dependsOn test, uploadJars, publishGhPages, distZip
} else {
task publishGhPages << {}
Expand All @@ -309,5 +306,5 @@ clean {
}

task wrapper(type: Wrapper) {
gradleVersion = '2.9'
gradleVersion = '2.14'
}
4 changes: 2 additions & 2 deletions ecs-tool.buildscript.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@
* POSSIBILITY OF SUCH DAMAGE.
*/
repositories {
jcenter { url 'http://jcenter.bintray.com/' }
jcenter()
}
dependencies {
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.2'
classpath 'com.github.jengelman.gradle.plugins:shadow:1.2.3'
}

0 comments on commit 8c0e9d5

Please sign in to comment.