Permalink
Switch branches/tags
xwiki-xar-plugin-1.14 xwiki-xar-plugin-1.13 xwiki-xar-plugin-1.12 xwiki-xar-plugin-1.11 xwiki-xar-plugin-1.10 xwiki-xar-plugin-1.9 xwiki-xar-plugin-1.8 xwiki-xar-handlers-1.9 xwiki-xar-handlers-1.8 xwiki-commons-verification-resources-1.16 xwiki-commons-license-resources-1.2 xwiki-commons-core-3.0 xwiki-commons-core-3.0-rc-1 xwiki-commons-core-3.0-milestone-3 xwiki-commons-41 xwiki-commons-40 xwiki-commons-10.8-rc-1 xwiki-commons-10.7.1 xwiki-commons-10.7 xwiki-commons-10.7-rc-1 xwiki-commons-10.6.1 xwiki-commons-10.6 xwiki-commons-10.6-rc-1 xwiki-commons-10.5 xwiki-commons-10.5-rc-1 xwiki-commons-10.4 xwiki-commons-10.4-rc-1 xwiki-commons-10.3 xwiki-commons-10.2 xwiki-commons-10.1 xwiki-commons-10.1-rc-1 xwiki-commons-10.1-RC-1 xwiki-commons-10.0 xwiki-commons-9.11.7 xwiki-commons-9.11.6 xwiki-commons-9.11.5 xwiki-commons-9.11.4 xwiki-commons-9.11.3 xwiki-commons-9.11.2 xwiki-commons-9.11.1 xwiki-commons-9.11 xwiki-commons-9.11-rc-1 xwiki-commons-9.10.1 xwiki-commons-9.10 xwiki-commons-9.10-rc-1 xwiki-commons-9.9 xwiki-commons-9.9-rc-2 xwiki-commons-9.8.1 xwiki-commons-9.8 xwiki-commons-9.8-rc-1 xwiki-commons-9.7 xwiki-commons-9.7-rc-1 xwiki-commons-9.6 xwiki-commons-9.6-rc-1 xwiki-commons-9.5.1 xwiki-commons-9.5 xwiki-commons-9.5-rc-1 xwiki-commons-9.4 xwiki-commons-9.4-rc-1 xwiki-commons-9.3.1 xwiki-commons-9.3 xwiki-commons-9.3-rc-1 xwiki-commons-9.2 xwiki-commons-9.2-rc-1 xwiki-commons-9.1.2 xwiki-commons-9.1.1 xwiki-commons-9.1 xwiki-commons-9.1-rc-1 xwiki-commons-9.0 xwiki-commons-9.0-rc-1 xwiki-commons-8.4.6 xwiki-commons-8.4.5 xwiki-commons-8.4.4 xwiki-commons-8.4.3 xwiki-commons-8.4.2 xwiki-commons-8.4.1 xwiki-commons-8.4 xwiki-commons-8.4-rc-1 xwiki-commons-8.3 xwiki-commons-8.3-rc-1 xwiki-commons-8.3-milestone-2 xwiki-commons-8.3-milestone-1 xwiki-commons-8.2.2 xwiki-commons-8.2.1 xwiki-commons-8.2 xwiki-commons-8.2-rc-1 xwiki-commons-8.2-milestone-2 xwiki-commons-8.2-milestone-1 xwiki-commons-8.1 xwiki-commons-8.1-rc-1 xwiki-commons-8.1-milestone-2 xwiki-commons-8.1-milestone-1 xwiki-commons-8.0 xwiki-commons-8.0-rc-1 xwiki-commons-8.0-milestone-2 xwiki-commons-8.0-milestone-1 xwiki-commons-7.4.6 xwiki-commons-7.4.5 xwiki-commons-7.4.4 xwiki-commons-7.4.3
Nothing to show
Find file Copy path
Fetching contributors…
Cannot retrieve contributors at this time
56 lines (48 sloc) 2.05 KB
/*
* See the NOTICE file distributed with this work for additional
* information regarding copyright ownership.
*
* This is free software; you can redistribute it and/or modify it
* under the terms of the GNU Lesser General Public License as
* published by the Free Software Foundation; either version 2.1 of
* the License, or (at your option) any later version.
*
* This software is distributed in the hope that it will be useful,
* but WITHOUT ANY WARRANTY; without even the implied warranty of
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU
* Lesser General Public License for more details.
*
* You should have received a copy of the GNU Lesser General Public
* License along with this software; if not, write to the Free
* Software Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA
* 02110-1301 USA, or see the FSF site: http://www.fsf.org.
*/
// WARNING: NOT WORKING, WORK IN PROGRESS. USE THE MAVEN BUILD WHICH IS THE XWIKI OFFICIAL BUILD TOOL.
if ( !JavaVersion.current().java8Compatible ) {
throw new GradleException( "Gradle must be run with Java 8" )
}
includeCoreDir("blame", "blame-api")
includeCoreDir("component", "component-api")
includeCoreDir("stability")
includeCoreDir("text")
includeCoreDir("component", "component-default")
includeCoreDir("component", "component-observation")
includeCoreDir("configuration", "configuration-api")
includeCoreDir("context")
includeCoreDir("observation", "observation-api")
includeToolDir("test", "test-component")
includeToolDir("test", "test-simple")
void includeCoreDir(String... path) {
includeDir('xwiki-commons-core', 'xwiki-commons', path)
}
void includeToolDir(String... path) {
includeDir('xwiki-commons-tools', 'xwiki-commons-tool', path)
}
void includeDir(String rootPath, String prefix, String... path) {
StringBuilder builder = new StringBuilder(rootPath)
path.each() {
builder.append("/${prefix}-${it}")
}
include("xwiki-${path.last()}")
project(":xwiki-${path.last()}").projectDir = new File(rootProject.projectDir, builder.toString())
}