Skip to content

Commit

Permalink
Fix publication of manual zip
Browse files Browse the repository at this point in the history
  • Loading branch information
ldaley committed May 7, 2021
1 parent 78eef1c commit 5a502bc
Show file tree
Hide file tree
Showing 3 changed files with 14 additions and 14 deletions.
14 changes: 8 additions & 6 deletions ratpack-manual/ratpack-manual.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,6 +40,7 @@ buildscript {
description = "The manual for Ratpack (documentation & API reference)"

apply from: "$rootDir/gradle/javaModule.gradle"
apply from: "$rootDir/gradle/publish-base.gradle"
apply plugin: "com.eriwen.gradle.js"
apply plugin: 'io.freefair.jsass-base'

Expand Down Expand Up @@ -372,14 +373,15 @@ task openApi(dependsOn: packageManual) {
}
}

task manualZip(type: Zip) {
from packageManual
def manualZip = tasks.create("manualZip", Zip) {
it.from packageManual
}

configurations {
published.extendsFrom zip
def publications = extensions.getByType(PublishingExtension).publications
def publication = publications.create("main", MavenPublication) {
it.artifact(manualZip)
}

artifacts {
zip manualZip
extensions.findByType(SigningExtension).with {
it.sign(publication)
}
Original file line number Diff line number Diff line change
Expand Up @@ -16,6 +16,8 @@

description = "Spring Boot starter for Ratpack - http://projects.spring.io/spring-boot/"

apply from: "$rootDir/gradle/publish-pom.gradle"

dependencies {
api project(":ratpack-spring-boot")
api("org.springframework.boot:spring-boot-starter:$commonVersions.springBoot") {
Expand Down
12 changes: 4 additions & 8 deletions ratpack.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -32,7 +32,6 @@ ext {
"ratpack-hikari",
"ratpack-hystrix",
"ratpack-jdbc-tx",
"ratpack-manual",
"ratpack-newrelic",
"ratpack-pac4j",
"ratpack-reactor",
Expand All @@ -52,7 +51,8 @@ ext {
].collect { project(it) }

nonLibraryPublishedModules = [
"ratpack-spring-boot-starter"
"ratpack-spring-boot-starter", "ratpack-manual"

].collect { project(it) }

apiModules = publishedModules.findAll { !(it.name in ["ratpack-manual", "ratpack-gradle", "ratpack-spring-boot-starter", "ratpack-thymeleaf3"]) }
Expand Down Expand Up @@ -90,12 +90,8 @@ gradle.beforeProject {
tasks.register("sanityCheck")

apply from: "$rootDir/gradle/ratpackLocal.gradle"
if (project in publishedModules) {
if (project in nonLibraryPublishedModules) {
apply from: "$rootDir/gradle/publish-pom.gradle"
} else {
apply from: "$rootDir/gradle/publish-library.gradle"
}
if (project in publishedModules && !(project in nonLibraryPublishedModules)) {
apply from: "$rootDir/gradle/publish-library.gradle"
}
}
}
Expand Down

0 comments on commit 5a502bc

Please sign in to comment.