mirror of
https://github.com/yacy/yacy_search_server.git
synced 2024-09-19 00:01:41 +02:00
6c5b282919
- added multiproject in libbuild to compile and install all needed jars (reproduceing old maven build) - adjusted GitComInf (use a project version, build script with less hardcoded strings) - adjusted J7Zip-modified - include common version number for output jar - add task installJarToRoot to copy output jar to yacycore /lib - adjust main build with updated jar names as files are the same - updated also old build.xml And the Eclipse specific .classpath (with shall be deleted until complete move to gradle)
37 lines
1.0 KiB
Groovy
37 lines
1.0 KiB
Groovy
|
|
allprojects {
|
|
|
|
group = 'net.yacy.libbuild'
|
|
|
|
repositories {
|
|
mavenCentral()
|
|
}
|
|
}
|
|
|
|
subprojects {
|
|
apply plugin: 'java'
|
|
}
|
|
|
|
version = "1.0"
|
|
description = "Builds subprojects for yacycore and installs jars -> task: installExtLibJars"
|
|
|
|
dependencies {
|
|
project("GitComInf")
|
|
project("J7Zip-modified")
|
|
}
|
|
|
|
//--- build aliases : define a synonym here if you want a shortcut to run multiple targets
|
|
// workaround to run storeGitComInf after a build without adding arbitray dependencies
|
|
// this makes sure gitbuildnumber.properties is availabel and up-to-date
|
|
def buildAliases = [
|
|
'installExtLibJars' : ["J7Zip-modified:installJarToRoot","GitComInf:installJarToRoot"]
|
|
]
|
|
def expandedTaskList = []
|
|
gradle.startParameter.taskNames.each {
|
|
expandedTaskList << (buildAliases[it] ? buildAliases[it] : it)
|
|
}
|
|
gradle.startParameter.taskNames = expandedTaskList.flatten()
|
|
|
|
task installExtLibJars ( group: 'build') {
|
|
// we use above startParameter to install GitComInf.jar, as the shadow (uber) jar is used (not avail in normal subproject properties)
|
|
} |