Skip to content

Commit

Permalink
Add spek-data-driven-extension to dist list
Browse files Browse the repository at this point in the history
  • Loading branch information
raniejade committed Mar 25, 2017
1 parent 9137d24 commit 0c691e4
Show file tree
Hide file tree
Showing 2 changed files with 56 additions and 3 deletions.
13 changes: 12 additions & 1 deletion spek-data-driven-extension/build.gradle
@@ -1,6 +1,7 @@
apply from: "$rootDir/gradle/common/dependencies.gradle"
apply from: "$rootDir/gradle/common/kotlin.gradle"
apply plugin: 'org.junit.platform.gradle.plugin'
apply plugin: 'org.jetbrains.dokka'

junitPlatform {
platformVersion '1.0.0-M3'
Expand All @@ -17,4 +18,14 @@ dependencies {
compile "org.jetbrains.kotlin:kotlin-test"
testCompile "org.junit.platform:junit-platform-runner"
testRuntime project(':spek-junit-platform-engine')
}
}

task sourceJar(type: Jar) {
from project.sourceSets.main.allSource
classifier "sources"
}

task javadocJar(type: Jar, dependsOn: dokka) {
from dokka.outputDirectory
classifier = 'javadoc'
}
46 changes: 44 additions & 2 deletions spek-dist/build.gradle
Expand Up @@ -115,6 +115,48 @@ publishing {
}
}

dataDrivenExtension(MavenPublication) {
groupId = 'org.jetbrains.spek'
artifactId = 'spek-data-driven-extension'
version = rootProject.version

from project(':spek-data-driven-extension').components.java
artifact project(':spek-data-driven-extension').tasks['sourceJar']
artifact project(':spek-data-driven-extension').tasks['javadocJar']

pom.withXml {
asNode().dependencies.dependency.each {
it.scope[0].value = ('compile')
}

asNode().children().last() + {
resolveStrategy = DELEGATE_FIRST
name 'Spek'
description 'A Specification Framework for the JVM'
url 'https://jetbrains.github.io/spek'
licenses {
license {
name 'BSD New'
url 'https://github.com/JetBrains/spek/blob/master/LICENSE.TXT'
distribution 'spek'
}
}
developers {
developer {
id 'JetBrains'
name 'Spek Contributors'
organization 'JetBrains'
}
}
scm {
connection 'scm:git:git://github.com/jetbrains/spek.git'
developerConnection 'scm:git:https://github.com/jetbrains/spek.git'
url 'http://github.com/jetbrains/spek'
}
}
}
}

engine(MavenPublication) {
groupId = 'org.jetbrains.spek'
artifactId = 'spek-junit-platform-engine'
Expand Down Expand Up @@ -181,7 +223,7 @@ bintray {
}
}

publications = ['api', 'engine', 'subjectExtension']
publications = ['api', 'engine', 'subjectExtension', 'dataDrivenExtension']
}

artifactory {
Expand All @@ -197,7 +239,7 @@ artifactory {
maven = true
}
defaults {
publications('api', 'engine', 'subjectExtension')
publications('api', 'engine', 'subjectExtension', 'dataDrivenExtension')
}
}
resolve {
Expand Down

0 comments on commit 0c691e4

Please sign in to comment.