add a new version of jsr166y, and add jsr166e

This commit is contained in:
Shay Banon 2011-08-20 21:52:52 +03:00
parent 6afbfad089
commit e67427d4af
1 changed files with 5 additions and 2 deletions

View File

@ -6,7 +6,8 @@ dependencies {
runtime 'com.googlecode.concurrentlinkedhashmap:concurrentlinkedhashmap-lru:1.2'
runtime 'com.google.guava:guava:r09'
runtime 'org.elasticsearch:es-trove:3.0.0rc2'
runtime 'org.elasticsearch:es-jsr166y:20110710'
runtime 'org.elasticsearch:es-jsr166y:20110820'
runtime 'org.elasticsearch:es-jsr166e:20110820'
runtime 'commons-codec:commons-codec:1.5'
@ -36,7 +37,7 @@ jar << {
jarjar(jarfile: jarjarArchivePath) {
zipfileset(src: jar.archivePath)
configurations.runtime.files.findAll {file ->
['inject', 'codec', 'mvel', 'jackson', 'joda', 'snakeyaml', 'netty', 'guice', 'javax.inject', 'aopalliance', 'guava', 'concurrentlinkedhashmap', 'trove', 'jsr166y'].any { file.name.contains(it) }
['inject', 'codec', 'mvel', 'jackson', 'joda', 'snakeyaml', 'netty', 'guice', 'javax.inject', 'aopalliance', 'guava', 'concurrentlinkedhashmap', 'trove', 'jsr166y', 'jsr166e'].any { file.name.contains(it) }
}.each { jarjarFile ->
zipfileset(src: jarjarFile) {
exclude(name: "META-INF/**")
@ -46,6 +47,7 @@ jar << {
rule pattern: "com.google.common.**", result: "org.elasticsearch.common.@1"
rule pattern: "gnu.trove.**", result: "org.elasticsearch.common.trove.@1"
rule pattern: "jsr166y.**", result: "org.elasticsearch.common.util.concurrent.jsr166y.@1"
rule pattern: "jsr166e.**", result: "org.elasticsearch.common.util.concurrent.jsr166e.@1"
rule pattern: "org.aopalliance.**", result: "org.elasticsearch.common.aopalliance.@1"
rule pattern: "javax.inject.**", result: "org.elasticsearch.common.inject.jex.@1"
@ -72,6 +74,7 @@ jar << {
delete(file: "build/tmp/extracted/LICENSE")
delete(file: "build/tmp/extracted/build.properties")
delete(dir: "build/tmp/extracted/jsr166y")
delete(dir: "build/tmp/extracted/jsr166e")
delete(dir: "build/tmp/extracted/gnu")
delete(dir: "build/tmp/extracted/org/codehaus")
delete(dir: "build/tmp/extracted/org/aopalliance")