blob: bcd6b5b8f832768ff9a1bca491b0f2028b87439c [file] [log] [blame]
def packageConfiguration(configurationName, configuration, target) {
println "Copy the ${configurationName} artifacts:"
configuration.each { File file -> println file.name }
println "to '${target}'."
copy {
from configuration into target
// TODO - gradle-build remove backward compatibility? Why an underscore?
// replace first hyphen with underscore
rename(/(.+?)-(.+)/, '$1_$2')
}
}
configure([
project(':packaging:nano'),
project(':packaging:kernel'),
project(':packaging:jetty-server'),
project(':packaging:tomcat-server'),
]) {
dependencies {
// TODO - rename to virgoLib, virgoLibPersistence, virgoLibEndorsed and virgoPickup?!
nanoLib project(':kernel:org.eclipse.virgo.kernel.equinox.extensions')
nanoLib project(':nano:org.eclipse.virgo.nano.authentication')
nanoLib project(':nano:org.eclipse.virgo.nano.shutdown')
nanoLib project(':util:org.eclipse.virgo.util.env')
nanoLib group: "org.eclipse.virgo.mirrored", name: "org.eclipse.equinox.launcher", version: equinoxLauncherVersion, configuration: "compile", ext: "jar"
nanoLibPersistence project(':web:org.eclipse.virgo.web.enterprise.openejb.jpa.integration')
nanoLibEndorsed group: "org.eclipse.virgo.mirrored", name: "javax.annotation", version: javaxAnnotationVersion, configuration: "compile", ext: "jar"
nanoLibEndorsed group: "org.eclipse.virgo.mirrored", name: "javax.transaction", version: javaxTransactionVersion, configuration: "compile", ext: "jar"
nanoPickup project(':kernel:org.eclipse.virgo.management.console')
}
}
project(':packaging:nano') {
dependencies {
}
}
if (System.properties['skip.smoke.tests'] != 'true') {
project(':packaging:nano:org.eclipse.virgo.nano.smoketest') { dependencies { } }
}
configure([
project(':packaging:kernel'),
project(':packaging:jetty-server'),
project(':packaging:tomcat-server'),
]) {
dependencies {
kernelPluginsExtras project(':kernel:org.eclipse.virgo.kernel.userregion')
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.eclipse.osgi.services", version: osgiServicesVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "osgi.enterprise", version: osgiEnterpriseVersion, configuration: "compile", ext: "jar" // contains org.osgi.jmx
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.eclipse.equinox.ds", version: equinoxDsVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.eclipse.equinox.util", version: equinoxUtilVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.eclipse.equinox.region", version: equinoxRegionVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.aopalliance", name: "com.springsource.org.aopalliance", version: orgAopAllianceVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.commons.codec", version: commonsCodecVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.aop", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.beans", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.context", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.core", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.expression", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.gemini", name: "org.eclipse.gemini.blueprint.core", version: geminiBlueprintVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.gemini", name: "org.eclipse.gemini.blueprint.extender", version: geminiBlueprintVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.gemini", name: "org.eclipse.gemini.blueprint.io", version: geminiBlueprintVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.gemini", name: "org.eclipse.gemini.management", version: geminiManagementVersion, configuration: "compile", ext: "jar"
repositoryExt project(':kernel:org.eclipse.virgo.management.fragment')
repositoryExt project(':kernel:org.eclipse.virgo.kernel.agent.dm')
repositoryExt project(':kernel:org.eclipse.virgo.kernel.deployer.dm')
repositoryExt project(':kernel:org.eclipse.virgo.kernel.dmfragment')
repositoryExt group: "org.apache.commons", name: "com.springsource.org.apache.commons.fileupload", version: commonsFileuploadVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.apache.commons", name: "com.springsource.org.apache.commons.io", version: commonsIoVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.jolokia", name: "org.jolokia.osgi", version: jolokiaVersion, configuration: "compile", ext: "jar"
}
}
configure([
project(':packaging:kernel'),
]) {
dependencies {
}
}
configure([
project(':packaging:jetty-server'),
project(':packaging:tomcat-server'),
]) {
dependencies {
repositoryExt project(':medic:org.eclipse.virgo.medic')
repositoryExt project(':medic:org.eclipse.virgo.medic.core')
repositoryExt project(':web:org.eclipse.virgo.web.dm')
// 3rd party dependencies from Spring Framework
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.jms", version: javaxJmsVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.servlet", version: javaxServletVersion, configuration: "compile", ext: "jar"
// missing Spring Framework dependencies
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.aspects", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.context.support", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.jdbc", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.messaging", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.jms", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.orm", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.oxm", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.transaction", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.web", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.webmvc", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.springframework.webmvc.portlet", version: springframeworkVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "com.springsource.org.aspectj.weaver", version: orgAspectjVersion, configuration: "compile", ext: "jar"
repositoryExt group: "javax.portlet", name: "com.springsource.javax.portlet", version: javaxPortletVersion, configuration: "compile", ext: "jar"
repositoryExt group: "javax.servlet", name: "com.springsource.javax.servlet.jsp.jstl", version: javaxServletJspJstlVersion, configuration: "compile", ext: "jar"
nanoPickup project(':apps:org.eclipse.virgo.apps.splash')
}
}
configure([
project(':packaging:jetty-server'),
]) {
dependencies { repositoryExt project(':web:org.eclipse.virgo.web.servlet.adapter') } }
configure([
project(':packaging:tomcat-server'),
]) {
dependencies {
repositoryExt project(':web:org.eclipse.virgo.web.core')
repositoryExt project(':web:org.eclipse.virgo.web.tomcat.support')
repositoryExt project(':web:org.eclipse.virgo.web.servlet.adapter')
repositoryExt project(':web:org.eclipse.virgo.web.spring.integration')
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.annotation", version: javaxAnnotationVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.ejb", version: javaxEjbVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.el", version: javaxElVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.mail", version: javaxMailVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.persistence", version: javaxPersistenceVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.servlet", version: javaxServletVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.servlet.jsp", version: javaxServletJspVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.xml.rpc", version: javaxXmlRpcVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.websocket", version: javaxWebsocketVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.eclipse.equinox.event", version: equinoxEventVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.apache.commons", name: "com.springsource.org.apache.commons.fileupload", version: commonsFileuploadVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.apache.commons", name: "com.springsource.org.apache.commons.io", version: commonsIoVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.apache.taglibs", name: "com.springsource.org.apache.taglibs.standard", version: apacheTaglibsStandardVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.eclipse.osgi.services", version: osgiServicesVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.slf4j.api", version: slf4jVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.slf4j.jcl", version: slf4jVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.slf4j.jul", version: slf4jVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.slf4j.log4j", version: slf4jVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.eclipse.jdt.core.compiler.batch", version: eclipseJdtCoreCompilerBatchVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "javax.websocket", version: javaxWebsocketVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.catalina", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.catalina.ha", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.catalina.tribes", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.coyote", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.el", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.jasper", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.juli.extras", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.tomcat.api", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.tomcat.util", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.virgo.mirrored", name: "org.apache.tomcat.websocket", version: apacheCatalinaVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.gemini", name: "org.eclipse.gemini.web.core", version: geminiWebVersion, configuration: "compile", ext: "jar"
repositoryExt group: "org.eclipse.gemini", name: "org.eclipse.gemini.web.tomcat", version: geminiWebVersion, configuration: "compile", ext: "jar"
// TODO - gradle-build build :apps:repository.par
// <dependency org="org.eclipse.virgo.apps" name="org.eclipse.virgo.apps.repository" rev="${org.eclipse.virgo.apps}" conf="pickup->runtime"/>
// nanoPickup project(':apps:org.eclipse.virgo.apps.repository')
}
}