Skip to content

Commit

Permalink
Make plugin usable via plugins block
Browse files Browse the repository at this point in the history
  • Loading branch information
Mathias Düsterhöft committed Aug 29, 2018
1 parent 506ad3a commit af0965f
Show file tree
Hide file tree
Showing 6 changed files with 9 additions and 12 deletions.
4 changes: 2 additions & 2 deletions build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -77,7 +77,7 @@ subprojects {
}
}

val sourcesJar by tasks.creating(Jar::class) {
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets["main"].allSource)
}
Expand All @@ -86,7 +86,7 @@ subprojects {
publications {
register("mavenJava", MavenPublication::class) {
from(components["java"])
artifact(sourcesJar)
artifact(sourcesJar.get())
}
}
}
Expand Down
4 changes: 4 additions & 0 deletions restdocs-openapi-gradle-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,6 +20,10 @@ gradlePlugin {
id = "com.epages.restdocs-openapi"
implementationClass = "com.epages.restdocs.openapi.gradle.RestdocsOpenApiPlugin"
}
register("restdocs-openapi-gradle-plugin-jitpack-namespace") {
id = "com.github.epages-de.restdocs-openapi.restdocs-openapi-gradle-plugin"
implementationClass = "com.epages.restdocs.openapi.gradle.RestdocsOpenApiPlugin"
}
}
}

Expand Down
3 changes: 1 addition & 2 deletions restdocs-openapi/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm")
}

repositories {
mavenCentral()
maven { url = uri("https://jitpack.io") }
Expand All @@ -27,5 +28,3 @@ dependencies {
testImplementation("com.github.java-json-tools:json-schema-validator:2.2.10")
testImplementation("com.github.everit-org.json-schema:org.everit.json.schema:1.9.1")
}


4 changes: 2 additions & 2 deletions samples/restdocs-openapi-sample/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,7 @@ buildscript {
}
dependencies {
classpath("org.springframework.boot:spring-boot-gradle-plugin:${springBootVersion}")
classpath("com.github.epages-de.restdocs-openapi:restdocs-openapi-gradle-plugin:0.2.2")
classpath("com.github.epages-de.restdocs-openapi:restdocs-openapi-gradle-plugin:0.2.4")
}
}

Expand Down Expand Up @@ -42,7 +42,7 @@ dependencies {
testCompile('org.springframework.boot:spring-boot-starter-test')
testCompile('org.springframework.restdocs:spring-restdocs-mockmvc')

testCompile('com.github.epages-de.restdocs-openapi:restdocs-openapi:0.2.2')
testCompile('com.github.epages-de.restdocs-openapi:restdocs-openapi:0.2.4')
//testCompile project(':restdocs-openapi') //enable for depending on the submodule directly
testCompile('com.google.guava:guava:23.0')
}
Expand Down
Binary file not shown.

This file was deleted.

0 comments on commit af0965f

Please sign in to comment.