Skip to content

Commit

Permalink
Removing and cleaning up build conditionals introduced before lucene/…
Browse files Browse the repository at this point in the history
…solr repo split.
  • Loading branch information
dweiss committed Mar 18, 2021
1 parent b96c39f commit 9ddba6f
Show file tree
Hide file tree
Showing 5 changed files with 6 additions and 8 deletions.
2 changes: 1 addition & 1 deletion gradle/documentation/changes-to-html.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,7 @@

def resources = scriptResources(buildscript)

configure(subprojects.findAll { it.path == ':lucene:documentation' || it.path == ':solr:documentation' }) {
configure(project(':solr:documentation')) {
task changesToHtml(type: ChangesToHtmlTask) {
siteDir = resources
script = file("${resources}/changes2html.pl")
Expand Down
3 changes: 1 addition & 2 deletions gradle/documentation/documentation.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -67,8 +67,7 @@ configure(rootProject) {
}

// docroot will point to Lucene and Solr relative directory for each sub-project.
configure(subprojects.findAll { it.path == ':lucene:documentation' || it.path == ':solr:documentation' }) {

configure(project(':solr:documentation')) {
ext {
docroot = file("${buildDir}/site")
docrootMinimal = file("${buildDir}/minimalSite")
Expand Down
2 changes: 1 addition & 1 deletion gradle/documentation/markdown.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -40,7 +40,7 @@ buildscript {
}
}

configure(subprojects.findAll { it.path == ':lucene:documentation' || it.path == ':solr:documentation' }) {
configure(project(':solr:documentation')) {
task markdownToHtml(type: Copy) {
dependsOn copyDocumentationAssets

Expand Down
4 changes: 2 additions & 2 deletions gradle/documentation/render-javadoc.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -82,7 +82,7 @@ def javaJavadocPackages = rootProject.file("${resources}/java11/")
def junitJavadocPackages = rootProject.file("${resources}/junit/")
allprojects {
project.tasks.withType(RenderJavadocTask) {
title = "${project.path.startsWith(':lucene') ? 'Lucene' : 'Solr'} ${project.version} ${project.name} API"
title = "Solr ${project.version} ${project.name} API"

offlineLinks += [
"https://docs.oracle.com/en/java/javase/11/docs/api/": javaJavadocPackages,
Expand Down Expand Up @@ -260,7 +260,7 @@ class RenderJavadocTask extends DefaultTask {
def opts = []
opts << [ '-overview', project.file("${srcDirs[0]}/overview.html") ]
opts << [ '-sourcepath', srcDirs.join(File.pathSeparator) ]
opts << [ '-subpackages', project.path.startsWith(':lucene') ? 'org.apache.lucene' : 'org.apache.solr' ]
opts << [ '-subpackages', 'org.apache.solr' ]
opts << [ '-d', outputDir ]
opts << '-protected'
opts << [ '-encoding', 'UTF-8' ]
Expand Down
3 changes: 1 addition & 2 deletions gradle/validation/check-broken-links.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -20,12 +20,11 @@ configure(rootProject) {
group 'Verification'
description 'Check broken links in the entire documentation'

dependsOn ':lucene:documentation:checkBrokenLinks'
dependsOn ':solr:documentation:checkBrokenLinks'
}
}

configure(subprojects.findAll { it.path in [':lucene:documentation', ':solr:documentation'] }) {
configure(project(':solr:documentation')) {
task checkBrokenLinks(type: CheckBrokenLinksTask, 'dependsOn': 'documentation')
check.dependsOn checkBrokenLinks
}
Expand Down

0 comments on commit 9ddba6f

Please sign in to comment.