Skip to content

Commit

Permalink
Bumped up lib versions, added plugindev plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
marcingrzejszczak committed Mar 7, 2015
1 parent 8e01142 commit 31564bc
Showing 1 changed file with 23 additions and 38 deletions.
61 changes: 23 additions & 38 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,15 +9,18 @@ buildscript {
if (project.hasProperty('coverage')) {
classpath 'org.kt3k.gradle.plugin:coveralls-gradle-plugin:1.0.2'
}
classpath 'nu.studer:gradle-plugindev-plugin:1.0.3'
}
}

apply plugin: 'com.jfrog.bintray'
apply plugin: 'com.ofg.uptodate'
apply plugin: 'maven-publish'
apply plugin: 'groovy'
apply plugin: 'nu.studer.plugindev'

sourceCompatibility = 1.7
targetCompatibility = 1.7

repositories {
mavenLocal()
Expand All @@ -34,13 +37,17 @@ dependencies {
}

testRuntime 'org.slf4j:slf4j-log4j12:1.7.10'
testRuntime 'cglib:cglib-nodep:2.2.2'
testRuntime 'org.objenesis:objenesis:1.2'
testCompile('com.netflix.nebula:nebula-test:2.0.5') {
testRuntime 'cglib:cglib-nodep:3.1'
testRuntime 'org.objenesis:objenesis:2.1'
testCompile('com.netflix.nebula:nebula-test:2.2.0') {
exclude group: 'org.codehaus.groovy', module: 'groovy-all'
}
}

uptodate {
addExcludedVersionPatterns '^1.*-groovy-2.[3-4]$'
}

sourceSets.main.java.srcDirs = []
sourceSets.main.groovy.srcDirs += ["src/main/java"]

Expand All @@ -53,47 +60,25 @@ test {

bintrayUpload.dependsOn 'build'

task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}

task javadocJar(type: Jar, dependsOn: groovydoc) {
classifier = 'javadoc'
from groovydoc.destinationDir
}

artifacts {
archives sourcesJar
archives javadocJar
}

publishing {
publications {
plugin(MavenPublication) {
from components.java
artifact sourcesJar
artifact javadocJar
}
}
plugindev {
pluginId ='com.blogspot.toomuchcoding.testprofiler'
pluginImplementationClass 'com.blogspot.toomuchcoding.testprofiler.TestProfilerPlugin'
pluginDescription 'Gradle plugin that profiles your tests. Gives you a CSV file sorted by tests execution time.'
pluginLicenses 'Apache-2.0'
pluginTags 'gradle', 'plugin', 'testing'
authorId 'marcingrzejszczak'
authorName 'Marcin Grzejszczak'
authorEmail '[email protected]'
projectUrl 'https://github.com/marcingrzejszczak/gradle-test-profiler'
projectInceptionYear '2015'
done() // do not omit this
}

bintray {
user = project.properties['bintrayUser']
key = project.properties['bintrayKey']
publications = ['plugin']
pkg {
repo = 'com-blogspot-toomuchcoding'
name = 'gradle-test-profiler'
desc = 'Gradle plugin that profiles your tests. Gives you a CSV file sorted by tests execution time.'
licenses = ['Apache-2.0']
labels = ['gradle', 'testing']
}
version {
attributes = ['gradle-plugin': 'com.blogspot.toomuchcoding.testprofiler:com.blogspot.toomuchcoding:gradle-test-profiler']
}
pkg.repo = 'com-blogspot-toomuchcoding'
}

if (project.hasProperty('coverage')) {
apply plugin: 'jacoco'
apply plugin: 'com.github.kt3k.coveralls'
Expand Down

0 comments on commit 31564bc

Please sign in to comment.