2021-10-13 05:50:58 -04:00
|
|
|
/*
|
|
|
|
* Licensed to the Apache Software Foundation (ASF) under one or more
|
|
|
|
* contributor license agreements. See the NOTICE file distributed with
|
|
|
|
* this work for additional information regarding copyright ownership.
|
|
|
|
* The ASF licenses this file to You under the Apache License, Version 2.0
|
|
|
|
* (the "License"); you may not use this file except in compliance with
|
|
|
|
* the License. You may obtain a copy of the License at
|
|
|
|
*
|
|
|
|
* http://www.apache.org/licenses/LICENSE-2.0
|
|
|
|
*
|
|
|
|
* Unless required by applicable law or agreed to in writing, software
|
|
|
|
* distributed under the License is distributed on an "AS IS" BASIS,
|
|
|
|
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
|
|
|
* See the License for the specific language governing permissions and
|
|
|
|
* limitations under the License.
|
|
|
|
*/
|
|
|
|
|
|
|
|
/*
|
|
|
|
* This script configures aspects related to all project publications,
|
|
|
|
* this includes:
|
|
|
|
*
|
|
|
|
* - configuring maven artifacts,
|
|
|
|
* - setting up target maven repositories for publications to end up on,
|
|
|
|
* - configuring binary and source release artifacts,
|
|
|
|
* - other concerns related to publishing artifacts (signing, checksums).
|
|
|
|
*/
|
|
|
|
|
|
|
|
//
|
|
|
|
// An explicit list of projects to publish as Maven artifacts.
|
|
|
|
//
|
|
|
|
configure(rootProject) {
|
|
|
|
ext {
|
|
|
|
mavenProjects = project(":lucene").subprojects.findAll {subproject ->
|
2021-12-19 02:51:13 -05:00
|
|
|
def excluded = [
|
|
|
|
// Exclude distribution assembly, tests & documentation.
|
2021-10-13 05:50:58 -04:00
|
|
|
":lucene:distribution",
|
|
|
|
":lucene:documentation",
|
|
|
|
// Exclude the parent container project for analysis modules (no artifacts).
|
|
|
|
":lucene:analysis",
|
|
|
|
// Exclude the native module.
|
2022-01-05 14:42:02 -05:00
|
|
|
":lucene:misc:native",
|
|
|
|
// Exclude test fixtures.
|
|
|
|
":lucene:spatial-test-fixtures"
|
2021-12-19 02:51:13 -05:00
|
|
|
]
|
|
|
|
|
|
|
|
// Exclude all subprojects that are modular test projects and those explicitly
|
|
|
|
// excluded above.
|
|
|
|
return !(subproject.path.endsWith(".tests") || subproject.path in excluded)
|
2021-10-13 05:50:58 -04:00
|
|
|
}
|
|
|
|
}
|
|
|
|
}
|
|
|
|
|
2021-10-18 14:58:29 -04:00
|
|
|
// Configure the signing plugin.
|
|
|
|
apply from: buildscript.sourceFile.toPath().resolveSibling("signing.gradle")
|
|
|
|
|
2021-10-13 05:50:58 -04:00
|
|
|
// Configure projects for publishing Maven artifacts and set up metadata.
|
|
|
|
apply from: buildscript.sourceFile.toPath().resolveSibling("publications-maven.gradle")
|
|
|
|
|
|
|
|
// Configure on-demand maven publishing into ~/.m2 for developers' convenience.
|
|
|
|
apply from: buildscript.sourceFile.toPath().resolveSibling("maven-to-local-m2.gradle")
|
|
|
|
|
|
|
|
// Configure artifact push to apache nexus (snapshots repository, CI job).
|
|
|
|
apply from: buildscript.sourceFile.toPath().resolveSibling("maven-to-nexus-snapshots.gradle")
|
|
|
|
|
|
|
|
// Configure artifact push to apache nexus (releases repository).
|
|
|
|
apply from: buildscript.sourceFile.toPath().resolveSibling("maven-to-nexus-releases.gradle")
|