Advertisement
Guest User

Untitled

a guest
Apr 23rd, 2018
90
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 3.97 KB | None | 0 0
  1. buildscript {
  2. repositories {
  3. mavenCentral()
  4. mavenLocal()
  5. maven {
  6. url 'https://plugins.gradle.org/m2/'
  7. }
  8. }
  9. dependencies {
  10. classpath 'org.dm.gradle:gradle-bundle-plugin:0.8.5', 'net.ltgt.gradle:gradle-apt-plugin:0.9'
  11. }
  12. }
  13.  
  14. repositories {
  15. mavenLocal()
  16. jcenter()
  17. maven {
  18. url "http://cdn.repository.liferay.com/nexus/content/groups/public"
  19. }
  20. }
  21.  
  22. dependencies {
  23.  
  24. compileOnly project(':modules:hive-extdb:hive-extdb-api')
  25.  
  26. compileOnly 'org.osgi:org.osgi.service.component.annotations:1.3.0'
  27. compileOnly 'com.liferay.portal:com.liferay.portal.kernel:2.0.0'
  28. compileOnly 'javax.portlet:portlet-api:2.0'
  29. compileOnly 'javax.ws.rs:javax.ws.rs-api:2.0.1'
  30. compileOnly 'javax.servlet:servlet-api:2.5'
  31.  
  32. // https://mvnrepository.com/artifact/org.apache.hive/hive-jdbc
  33. compileOnly group: 'org.apache.hive', name: 'hive-jdbc', version: '2.1.1'
  34.  
  35. //compile 'hadoop:hadoop:2.7.4'
  36. //compile 'hive:hive:2.1.1'
  37.  
  38. // https://mvnrepository.com/artifact/au.com.bytecode/opencsv
  39. //compile group: 'au.com.bytecode', name: 'opencsv', version: '2.4'
  40.  
  41. // https://mvnrepository.com/artifact/ch.qos.logback/logback-classic
  42. //compile group: 'ch.qos.logback', name: 'logback-classic', version: '1.2.3'
  43.  
  44. // https://mvnrepository.com/artifact/com.codahale.metrics/metrics-healthchecks
  45. //compile group: 'com.codahale.metrics', name: 'metrics-healthchecks', version: '3.0.1'
  46.  
  47. // https://mvnrepository.com/artifact/com.codahale.metrics/metrics-servlet
  48. //compile group: 'com.codahale.metrics', name: 'metrics-servlets', version: '3.0.1'
  49.  
  50. // https://mvnrepository.com/artifact/com.fasterxml.jackson.dataformat/jackson-dataformat-xml
  51. //compile group: 'com.fasterxml.jackson.dataformat', name: 'jackson-dataformat-xml', version: '2.9.5'
  52.  
  53. }
  54.  
  55. /*
  56. The logic below is used during the bundle task that generates the OSGi JAR. It allows us to
  57. automatically include dependencies from the 'compile' configuration (both in terms of packaging
  58. and classpath) without having to manage continuous updating of a bnd.bnd file
  59. */
  60.  
  61. def bundleClassPath() {
  62. def list = []
  63. configurations.compile.each {
  64. list += 'OSGI-INF/lib/' + it.name
  65. }
  66. return list.join(',')
  67. }
  68.  
  69. def includeResource() {
  70. def list = []
  71. configurations.compile.each {
  72. list += 'OSGI-INF/lib/' + it.name + "=" + it.path
  73. }
  74. return list.join(',')
  75. }
  76.  
  77. bundle {
  78. instructions << [
  79. 'Bundle-Name' : 'hive.portlet',
  80. 'Bundle-SymbolicName': 'com.maiden.hive',
  81. 'Bundle-Version' : '1.0.0',
  82. '-metatype' : '*',
  83. '-buildpath' : 'osgi.annotation; version=6.0.1,osgi.core; version=6.0,osgi.cmpn; version=6.0',
  84. 'Export-Package' : '',
  85. 'Import-Package' : '!org.apache.avalon.framework.logger,!org.apache.log,javax.servlet.http,javax.servlet,javax.security.sasl,org.apache.hive.jdbc,*',
  86. 'Bundle-ClassPath' : bundleClassPath(),
  87. '-includeresource' : includeResource(),
  88. '-wab' : ''
  89. ]
  90. }
  91.  
  92. /*
  93. Bundle-Name: hive.portlet
  94. Bundle-SymbolicName: com.maiden.hive
  95. Bundle-Version: 1.0.0
  96.  
  97. Import-Package: org.apache.hive.jdbc.*, *
  98.  
  99. Bundle-Classpath:\
  100. .,\
  101. lib/hadoop-common-2.7.4.jar,\
  102. lib/hive-jdbc-2.1.1-standalone.jar
  103.  
  104. Include-Resource:\
  105. @hadoop-common-2.7.4.jar,\
  106. @hive-jdbc-2.1.1-standalone.jar
  107.  
  108. -includeresource:\
  109. lib/hadoop-common-2.7.4.jar,\
  110. lib/hive-jdbc-2.1.1-standalone.jar,\
  111. lib:=true
  112. */
  113.  
  114. /*
  115. dependencies {
  116. compile project(':modules:hive-extdb:hive-extdb-api')
  117. //compile project(':modules:hive-extdb:hive-extdb-service')
  118. compileOnly group: "com.liferay.portal", name: "com.liferay.portal.kernel", version: "2.0.0"
  119. compileOnly group: "com.liferay.portal", name: "com.liferay.util.taglib", version: "2.0.0"
  120. compileOnly group: "javax.portlet", name: "portlet-api", version: "2.0"
  121. compileOnly group: "javax.servlet", name: "javax.servlet-api", version: "3.0.1"
  122. compileOnly group: "jstl", name: "jstl", version: "1.2"
  123. compileOnly group: "org.osgi", name: "org.osgi.compendium", version: "5.0.0"
  124. }
  125. */
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement