Skip to content
Find file
Fetching contributors…
Cannot retrieve contributors at this time
111 lines (95 sloc) 2.24 KB
apply plugin: 'groovy'
apply plugin: 'codenarc'
apply plugin: 'nexus'
apply plugin: 'github-pages'
buildscript {
repositories {
mavenCentral()
}
dependencies {
classpath 'org.gradle.api.plugins:gradle-nexus-plugin:0.2'
classpath 'org.ajoberstar:gradle-git:0.2.0'
}
}
version = '1.1'
group = 'co.freeside'
archivesBaseName = 'betamax'
repositories {
mavenCentral()
}
dependencies {
groovy 'org.codehaus.groovy:groovy-all:1.7.8'
compile 'junit:junit:4.8.2',
'org.yaml:snakeyaml:1.10',
'org.apache.httpcomponents:httpclient:4.2.1',
'commons-lang:commons-lang:2.4',
'org.eclipse.jetty:jetty-server:7.6.0.v20120127'
testCompile('org.codehaus.groovy.modules.http-builder:http-builder:0.5.2') {
exclude module: 'groovy'
exclude module: 'httpclient'
}
testCompile('org.spockframework:spock-core:0.6-groovy-1.7') {
exclude module: 'groovy-all'
exclude module: 'junit-dep'
}
testCompile 'commons-httpclient:commons-httpclient:3.1'
testRuntime 'cglib:cglib-nodep:2.2.2'
}
modifyPom {
dependencies.removeAll(dependencies.findAll { it.scope == 'test' })
project {
name 'Betamax - An HTTP stubbing proxy for testing JVM applications.'
packaging 'jar'
description 'Betamax is a Groovy record/playback proxy for stubbing access to external HTTP resources when testing. Inspired by Ruby\'s VCR.'
url 'http://freeside.co/betamax'
inceptionYear '2011'
scm {
url 'scm:git@github.com:robfletcher/betamax.git'
connection 'scm:git@github.com:robfletcher/betamax.git'
developerConnection 'scm:git@github.com:robfletcher/betamax.git'
}
licenses {
license {
name 'The Apache Software License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution 'repo'
}
}
developers {
developer {
id 'robfletcher'
name 'Rob Fletcher'
url 'http://blog.freeside.co/'
roles {
role 'Lead'
role 'Founder'
}
}
}
}
}
nexus {
sign = true
}
codenarc {
toolVersion = '0.17'
ignoreFailures = true
}
githubPages {
repoUri = 'git@github.com:robfletcher/betamax.git'
workingPath = "$buildDir/docs"
pages {
exclude '**/_site/**'
from('src/docs') {
exclude '**/*.less'
}
}
}
test {
testLogging {
quiet {
events 'failed'
exceptionFormat 'short'
}
}
}
Jump to Line
Something went wrong with that request. Please try again.