mirror of https://github.com/apache/lucene.git
33 lines
814 B
Groovy
33 lines
814 B
Groovy
allprojects {
|
|
apply plugin: 'base'
|
|
|
|
group "org.apache"
|
|
|
|
// Repositories to fetch dependencies from.
|
|
repositories {
|
|
mavenCentral()
|
|
maven {
|
|
url "https://maven.restlet.com"
|
|
}
|
|
}
|
|
|
|
// Artifacts will have names after full gradle project path
|
|
// so :solr:core will have solr-core.jar, etc.
|
|
project.archivesBaseName = project.path.replaceAll("^:", "").replace(':', '-')
|
|
|
|
ext {
|
|
// Utility method to support passing overrides via -P or -D.
|
|
propertyOrDefault = { propName, defValue ->
|
|
def result
|
|
if (project.hasProperty(propName)) {
|
|
result = project.getProperty(propName)
|
|
} else if (System.properties.containsKey(propName)) {
|
|
result = System.properties.get(propName)
|
|
} else {
|
|
result = defValue
|
|
}
|
|
return result
|
|
}
|
|
}
|
|
}
|