Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- buildscript {
- repositories {
- mavenCentral()
- mavenLocal()
- maven {
- url 'https://plugins.gradle.org/m2/'
- }
- }
- dependencies {
- classpath 'org.dm.gradle:gradle-bundle-plugin:0.8.5', 'net.ltgt.gradle:gradle-apt-plugin:0.9'
- }
- }
- repositories {
- mavenLocal()
- jcenter()
- maven {
- url "http://cdn.repository.liferay.com/nexus/content/groups/public"
- }
- }
- dependencies {
- compileOnly project(':modules:hive-extdb:hive-extdb-api')
- compileOnly 'org.osgi:org.osgi.service.component.annotations:1.3.0'
- compileOnly 'com.liferay.portal:com.liferay.portal.kernel:2.0.0'
- compileOnly 'javax.portlet:portlet-api:2.0'
- compileOnly 'javax.ws.rs:javax.ws.rs-api:2.0.1'
- compileOnly 'javax.servlet:servlet-api:2.5'
- // https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc
- compileOnly group: 'org.apache.hive', name: 'hive-jdbc', version: '2.1.1'
- //compile 'hadoop:hadoop:2.7.4'
- //compile 'hive:hive:2.1.1'
- // https://mvnrepository.com/artifact/au.com.bytecode/opencsv
- //compile group: 'au.com.bytecode', name: 'opencsv', version: '2.4'
- // https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
- //compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
- // https://mvnrepository.com/artifact/com.codahale.metrics/metrics-healthchecks
- //compile group: 'com.codahale.metrics', name: 'metrics-healthchecks', version: '3.0.1'
- // https://mvnrepository.com/artifact/com.codahale.metrics/metrics-servlet
- //compile group: 'com.codahale.metrics', name: 'metrics-servlets', version: '3.0.1'
- // https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml
- //compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: '2.9.5'
- }
- /*
- The logic below is used during the bundle task that generates the OSGi JAR. It allows us to
- automatically include dependencies from the 'compile' configuration (both in terms of packaging
- and classpath) without having to manage continuous updating of a bnd.bnd file
- */
- def bundleClassPath() {
- def list = []
- configurations.compile.each {
- list += 'OSGI-INF/lib/' + it.name
- }
- return list.join(',')
- }
- def includeResource() {
- def list = []
- configurations.compile.each {
- list += 'OSGI-INF/lib/' + it.name + "=" + it.path
- }
- return list.join(',')
- }
- bundle {
- instructions << [
- 'Bundle-Name' : 'hive.portlet',
- 'Bundle-SymbolicName': 'com.maiden.hive',
- 'Bundle-Version' : '1.0.0',
- '-metatype' : '*',
- '-buildpath' : 'osgi.annotation; version=6.0.1,osgi.core; version=6.0,osgi.cmpn; version=6.0',
- 'Export-Package' : '',
- 'Import-Package' : '!org.apache.avalon.framework.logger,!org.apache.log,javax.servlet.http,javax.servlet,javax.security.sasl,org.apache.hive.jdbc,*',
- 'Bundle-ClassPath' : bundleClassPath(),
- '-includeresource' : includeResource(),
- '-wab' : ''
- ]
- }
- /*
- Bundle-Name: hive.portlet
- Bundle-SymbolicName: com.maiden.hive
- Bundle-Version: 1.0.0
- Import-Package: org.apache.hive.jdbc.*, *
- Bundle-Classpath:\
- .,\
- lib/hadoop-common-2.7.4.jar,\
- lib/hive-jdbc-2.1.1-standalone.jar
- Include-Resource:\
- @hadoop-common-2.7.4.jar,\
- @hive-jdbc-2.1.1-standalone.jar
- -includeresource:\
- lib/hadoop-common-2.7.4.jar,\
- lib/hive-jdbc-2.1.1-standalone.jar,\
- lib:=true
- */
- /*
- dependencies {
- compile project(':modules:hive-extdb:hive-extdb-api')
- //compile project(':modules:hive-extdb:hive-extdb-service')
- compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
- compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
- compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
- compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
- compileOnly group: "jstl", name: "jstl", version: "1.2"
- compileOnly group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
- }
- */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement