Browse Source

Remove Buck build

Buck will be replaced with Bazel

Change-Id: I3cf07d7aaaa2a58bac34e16c50af5416693254ac
Signed-off-by: Matthias Sohn <matthias.sohn@sap.com>
tags/v4.7.0.201704051617-r
David Pursehouse 7 years ago
parent
commit
2d0ce094b4

+ 0
- 26
.buckconfig View File

@@ -1,26 +0,0 @@
[alias]
all = //:all
jgit = //org.eclipse.jgit:jgit
jgit-archive = //org.eclipse.jgit.archive:jgit-archive
jgit_bin = //:jgit_bin
jgit-lfs = //org.eclipse.jgit.lfs:jgit-lfs
jgit-lfs-server = //org.eclipse.jgit.lfs.server:jgit-lfs-server
jgit-servlet = //org.eclipse.jgit.http.server:jgit-servlet

[buildfile]
includes = //tools/default.defs

[java]
src_roots = src, resources, tst
source_level = 8
target_level = 8

[project]
ignore = .git

[cache]
mode = dir

[download]
maven_repo = http://repo1.maven.org/maven2
in_build = true

+ 0
- 1
.buckversion View File

@@ -1 +0,0 @@
e27df656657f93f8d57a7aaac69a5ae0e298a292

+ 0
- 3
.gitignore View File

@@ -1,7 +1,4 @@
/.buckd
/.project
/buck-cache
/buck-out
/target
infer-out
bazel-bin

+ 0
- 18
BUCK View File

@@ -1,18 +0,0 @@
DEPS = [
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.archive:jgit-archive',
'//org.eclipse.jgit.http.server:jgit-servlet',
'//org.eclipse.jgit.lfs:jgit-lfs',
'//org.eclipse.jgit.lfs.server:jgit-lfs-server',
'//org.eclipse.jgit.pgm:jgit',
]

zip_file(
name = 'all',
srcs = DEPS,
)

sh_binary(
name = 'jgit_bin',
main = '//org.eclipse.jgit.pgm:jgit',
)

+ 0
- 134
lib/BUCK View File

@@ -1,134 +0,0 @@
maven_jar(
name = 'jsch',
bin_sha1 = '658b682d5c817b27ae795637dfec047c63d29935',
src_sha1 = '791359d94d6edcace686a56d0727ee093a2f7c33',
group = 'com.jcraft',
artifact = 'jsch',
version = '0.1.53',
)

maven_jar(
name = 'javaewah',
bin_sha1 = '94ad16d728b374d65bd897625f3fbb3da223a2b6',
src_sha1 = 'ca2745e91c6a51f8e6809d1579bda36ad83f1f58',
group = 'com.googlecode.javaewah',
artifact = 'JavaEWAH',
version = '1.1.6',
)

maven_jar(
name = 'httpcomponents',
bin_sha1 = '4c47155e3e6c9a41a28db36680b828ced53b8af4',
src_sha1 = 'af4d76be0c46ee26b0d9d1d4a34d244a633cac84',
group = 'org.apache.httpcomponents',
artifact = 'httpclient',
version = '4.3.6',
)

maven_jar(
name = 'httpcore',
bin_sha1 = 'f91b7a4aadc5cf486df6e4634748d7dd7a73f06d',
src_sha1 = '1b0aa62a6a91e9fa00c16f0a4a2c874804ed3b1e',
group = 'org.apache.httpcomponents',
artifact = 'httpcore',
version = '4.3.3',
)

maven_jar(
name = 'commons-logging',
bin_sha1 = 'f6f66e966c70a83ffbdb6f17a0919eaf7c8aca7f',
src_sha1 = '28bb0405fddaf04f15058fbfbe01fe2780d7d3b6',
group = 'commons-logging',
artifact = 'commons-logging',
version = '1.1.3',
)

maven_jar(
name = 'slf4j-api',
bin_sha1 = '0081d61b7f33ebeab314e07de0cc596f8e858d97',
src_sha1 = '58d38f68d4a867d4552ae27960bb348d7eaa1297',
group = 'org.slf4j',
artifact = 'slf4j-api',
version = '1.7.2',
)

maven_jar(
name = 'slf4j-simple',
bin_sha1 = '760055906d7353ba4f7ce1b8908bc6b2e91f39fa',
src_sha1 = '09474919128b3a7fcf21a5f9c907f5251f234544',
group = 'org.slf4j',
artifact = 'slf4j-simple',
version = '1.7.2',
)

maven_jar(
name = 'servlet-api',
bin_sha1 = '3cd63d075497751784b2fa84be59432f4905bf7c',
src_sha1 = 'ab3976d4574c48d22dc1abf6a9e8bd0fdf928223',
group = 'javax.servlet',
artifact = 'javax.servlet-api',
version = '3.1.0',
)

maven_jar(
name = 'commons-compress',
bin_sha1 = 'c7d9b580aff9e9f1998361f16578e63e5c064699',
src_sha1 = '396b81bdfd0fb617178e1707ef64832215307c78',
group = 'org.apache.commons',
artifact = 'commons-compress',
version = '1.6',
)

maven_jar(
name = 'tukaani-xz',
bin_sha1 = '66db21c8484120cb6a51b5b3ea47b6f383942bec',
src_sha1 = '6396220725701d767c553902c41120d7bf38e9f5',
group = 'org.tukaani',
artifact = 'xz',
version = '1.3',
)

maven_jar(
name = 'args4j',
bin_sha1 = '139441471327b9cc6d56436cb2a31e60eb6ed2ba',
src_sha1 = '22631b78cc8f60a6918557e8cbdb33e90f63a77f',
group = 'args4j',
artifact = 'args4j',
version = '2.0.15',
)

maven_jar(
name = 'junit',
bin_sha1 = '4e031bb61df09069aeb2bffb4019e7a5034a4ee0',
src_sha1 = '28e0ad201304e4a4abf999ca0570b7cffc352c3c',
group = 'junit',
artifact = 'junit',
version = '4.11',
)

maven_jar(
name = 'hamcrest-library',
bin_sha1 = '4785a3c21320980282f9f33d0d1264a69040538f',
src_sha1 = '047a7ee46628ab7133129cd7cef1e92657bc275e',
group = 'org.hamcrest',
artifact = 'hamcrest-library',
version = '1.3',
)

maven_jar(
name = 'hamcrest-core',
bin_sha1 = '42a25dc3219429f0e5d060061f71acb49bf010a0',
src_sha1 = '1dc37250fbc78e23a65a67fbbaf71d2e9cbc3c0b',
group = 'org.hamcrest',
artifact = 'hamcrest-core',
version = '1.3',
)

maven_jar(
name = 'gson',
bin_sha1 = 'a60a5e993c98c864010053cb901b7eab25306568',
src_sha1 = 'a6dc5db8a12928e583bd3f23e72d3ab611ecd58f',
group = 'com.google.code.gson',
artifact = 'gson',
version = '2.2.4',
)

+ 0
- 56
lib/jetty/BUCK View File

@@ -1,56 +0,0 @@
VERSION = '9.4.1.v20170120'
GROUP = 'org.eclipse.jetty'

maven_jar(
name = 'servlet',
bin_sha1 = '406a6edc22311629b41e98ab26901574d243d408',
src_sha1 = '57cf143c4110e0d43635406a1052013bbf29a4da',
group = GROUP,
artifact = 'jetty-servlet',
version = VERSION,
)

maven_jar(
name = 'security',
bin_sha1 = '677aa94298f42d322e2f19045693a233613537b6',
src_sha1 = '933928163506a8d366652fb895e770fcf3f9e8fe',
group = GROUP,
artifact = 'jetty-security',
version = VERSION,
)

maven_jar(
name = 'server',
bin_sha1 = '4cf4bea26592de98b9126ac60bc91fb669176a63',
src_sha1 = '2035ab117da534f9a525adfaa9f3a5634d202707',
group = GROUP,
artifact = 'jetty-server',
version = VERSION,
)

maven_jar(
name = 'http',
bin_sha1 = 'c9c9d5b15b3bb41ae9ae588b7aede301b42186f6',
src_sha1 = 'f1cbf0e1329ed722bf8eba74e4c4b94619dfe8a8',
group = GROUP,
artifact = 'jetty-http',
version = VERSION,
)

maven_jar(
name = 'io',
bin_sha1 = '6d2d7c82a4b5306ec7bf2d6eb4b67460fce77240',
src_sha1 = '404b560a0d289c904b72d02e2dbb3b9ad73db219',
group = GROUP,
artifact = 'jetty-io',
version = VERSION,
)

maven_jar(
name = 'util',
bin_sha1 = '810c4e4275e399feaf6e8bc51aa72645bdc06205',
src_sha1 = 'b0dea459e5646e9ccf250a236718d720fba7717c',
group = GROUP,
artifact = 'jetty-util',
version = VERSION,
)

+ 0
- 13
org.eclipse.jgit.archive/BUCK View File

@@ -1,13 +0,0 @@
java_library(
name = 'jgit-archive',
srcs = glob(
['src/**'],
excludes = ['src/org/eclipse/jgit/archive/FormatActivator.java'],
),
resources = glob(['resources/**']),
provided_deps = [
'//org.eclipse.jgit:jgit',
'//lib:commons-compress',
],
visibility = ['PUBLIC'],
)

+ 0
- 11
org.eclipse.jgit.http.apache/BUCK View File

@@ -1,11 +0,0 @@
java_library(
name = 'http-apache',
srcs = glob(['src/**']),
resources = glob(['resources/**']),
deps = [
'//org.eclipse.jgit:jgit',
'//lib:httpcomponents',
'//lib:httpcore',
],
visibility = ['PUBLIC'],
)

+ 0
- 10
org.eclipse.jgit.http.server/BUCK View File

@@ -1,10 +0,0 @@
java_library(
name = 'jgit-servlet',
srcs = glob(['src/**']),
resources = glob(['resources/**']),
provided_deps = [
'//org.eclipse.jgit:jgit',
'//lib:servlet-api',
],
visibility = ['PUBLIC'],
)

+ 0
- 41
org.eclipse.jgit.http.test/BUCK View File

@@ -1,41 +0,0 @@
TESTS = glob(['tst/**/*.java'])

for t in TESTS:
n = t[len('tst/'):len(t)-len('.java')].replace('/', '.')
java_test(
name = n,
labels = ['http'],
srcs = [t],
deps = [
':helpers',
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.http.apache:http-apache',
'//org.eclipse.jgit.http.server:jgit-servlet',
'//org.eclipse.jgit.junit:junit',
'//org.eclipse.jgit.junit.http:junit-http',
'//lib:hamcrest-core',
'//lib:hamcrest-library',
'//lib:junit',
'//lib:servlet-api',
'//lib/jetty:http',
'//lib/jetty:io',
'//lib/jetty:server',
'//lib/jetty:servlet',
'//lib/jetty:security',
'//lib/jetty:util',
'//lib:commons-logging',
],
vm_args = ['-Djava.io.tmpdir=buck-out'],
)

java_library(
name = 'helpers',
srcs = glob(['src/**/*.java']),
deps = [
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.http.server:jgit-servlet',
'//org.eclipse.jgit.junit:junit',
'//org.eclipse.jgit.junit.http:junit-http',
'//lib:junit',
],
)

+ 0
- 19
org.eclipse.jgit.junit.http/BUCK View File

@@ -1,19 +0,0 @@
java_library(
name = 'junit-http',
srcs = glob(['src/**']),
resources = glob(['resources/**']),
provided_deps = [
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.http.server:jgit-servlet',
'//org.eclipse.jgit.junit:junit',
'//lib:junit',
'//lib:servlet-api',
'//lib:slf4j-api',
'//lib/jetty:http',
'//lib/jetty:server',
'//lib/jetty:servlet',
'//lib/jetty:security',
'//lib/jetty:util',
],
visibility = ['PUBLIC'],
)

+ 0
- 10
org.eclipse.jgit.junit/BUCK View File

@@ -1,10 +0,0 @@
java_library(
name = 'junit',
srcs = glob(['src/**']),
resources = glob(['resources/**']),
provided_deps = [
'//org.eclipse.jgit:jgit',
'//lib:junit',
],
visibility = ['PUBLIC'],
)

+ 0
- 34
org.eclipse.jgit.lfs.server.test/BUCK View File

@@ -1,34 +0,0 @@
TEST_BASE = ['tst/org/eclipse/jgit/lfs/server/fs/LfsServerTest.java']
TESTS = glob(['tst/**/*.java'],
excludes = TEST_BASE
)

for t in TESTS:
n = t[len('tst/'):len(t)-len('.java')].replace('/', '.')
java_test(
name = n,
labels = ['lfs-server'],
srcs = [t] + TEST_BASE,
deps = [
'//org.eclipse.jgit.lfs.test:helpers',
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.junit:junit',
'//org.eclipse.jgit.junit.http:junit-http',
'//org.eclipse.jgit.lfs:jgit-lfs',
'//org.eclipse.jgit.lfs.server:jgit-lfs-server',
'//lib:hamcrest-core',
'//lib:hamcrest-library',
'//lib:httpcore',
'//lib:httpcomponents',
'//lib:junit',
'//lib/jetty:http',
'//lib/jetty:io',
'//lib/jetty:server',
'//lib/jetty:servlet',
'//lib/jetty:security',
'//lib/jetty:util',
'//lib:servlet-api',
'//lib:commons-logging',
],
vm_args = ['-Xmx256m', '-Dfile.encoding=UTF-8'],
)

+ 0
- 23
org.eclipse.jgit.lfs.server/BUCK View File

@@ -1,23 +0,0 @@
SRCS = glob(['src/**'])
RESOURCES = glob(['resources/**'])

java_library(
name = 'jgit-lfs-server',
srcs = SRCS,
resources = RESOURCES,
deps = [
'//org.eclipse.jgit.http.apache:http-apache',
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.lfs:jgit-lfs',
'//lib:gson',
'//lib:httpcore',
'//lib:servlet-api',
'//lib:slf4j-api'
],
visibility = ['PUBLIC'],
)

java_sources(
name = 'jgit-lfs-server_src',
srcs = SRCS + RESOURCES,
)

+ 0
- 30
org.eclipse.jgit.lfs.test/BUCK View File

@@ -1,30 +0,0 @@
TESTS = glob(['tst/**/*.java'])

for t in TESTS:
n = t[len('tst/'):len(t)-len('.java')].replace('/', '.')
java_test(
name = n,
labels = ['lfs'],
srcs = [t],
deps = [
':helpers',
'//org.eclipse.jgit.junit:junit',
'//org.eclipse.jgit.lfs:jgit-lfs',
'//org.eclipse.jgit:jgit',
'//lib:hamcrest-core',
'//lib:hamcrest-library',
'//lib:junit',
],
)

java_library(
name = 'helpers',
srcs = glob(['src/**/*.java']),
deps = [
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.lfs:jgit-lfs',
'//org.eclipse.jgit.junit:junit',
'//lib:junit',
],
visibility = ['PUBLIC']
)

+ 0
- 17
org.eclipse.jgit.lfs/BUCK View File

@@ -1,17 +0,0 @@
SRCS = glob(['src/**'])
RESOURCES = glob(['resources/**'])

java_library(
name = 'jgit-lfs',
srcs = SRCS,
resources = RESOURCES,
deps = [
'//org.eclipse.jgit:jgit'
],
visibility = ['PUBLIC'],
)

java_sources(
name = 'jgit-lfs_src',
srcs = SRCS + RESOURCES,
)

+ 0
- 37
org.eclipse.jgit.pgm.test/BUCK View File

@@ -1,37 +0,0 @@
TESTS = glob(['tst/**/*.java'])

for t in TESTS:
n = t[len('tst/'):len(t)-len('.java')].replace('/', '.')
java_test(
name = n,
labels = ['pgm'],
srcs = [t],
deps = [
':helpers',
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.archive:jgit-archive',
'//org.eclipse.jgit.junit:junit',
'//org.eclipse.jgit.pgm:pgm',
'//lib:hamcrest-core',
'//lib:hamcrest-library',
'//lib:javaewah',
'//lib:junit',
'//lib:slf4j-api',
'//lib:slf4j-simple',
'//lib:commons-compress',
'//lib:tukaani-xz',
],
vm_args = ['-Xmx256m', '-Dfile.encoding=UTF-8'],
)

java_library(
name = 'helpers',
srcs = glob(['src/**/*.java']),
deps = [
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.pgm:pgm',
'//org.eclipse.jgit.junit:junit',
'//lib:args4j',
'//lib:junit',
],
)

+ 0
- 81
org.eclipse.jgit.pgm/BUCK View File

@@ -1,81 +0,0 @@
include_defs('//tools/git.defs')

java_library(
name = 'pgm',
srcs = glob(['src/**']),
resources = glob(['resources/**']),
deps = [
':services',
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.archive:jgit-archive',
'//org.eclipse.jgit.http.apache:http-apache',
'//org.eclipse.jgit.lfs:jgit-lfs',
'//org.eclipse.jgit.lfs.server:jgit-lfs-server',
'//org.eclipse.jgit.ui:ui',
'//lib:args4j',
'//lib:httpcomponents',
'//lib:httpcore',
'//lib/jetty:http',
'//lib/jetty:io',
'//lib/jetty:server',
'//lib/jetty:servlet',
'//lib/jetty:security',
'//lib/jetty:util',
'//lib:servlet-api'
],
visibility = ['PUBLIC'],
)

prebuilt_jar(
name = 'services',
binary_jar = ':services__jar',
)

genrule(
name = 'services__jar',
cmd = 'cd $SRCDIR ; zip -qr $OUT .',
srcs = glob(['META-INF/services/*']),
out = 'services.jar',
)

genrule(
name = 'jgit',
cmd = ''.join([
'mkdir $TMP/META-INF &&',
'cp $(location :binary_manifest) $TMP/META-INF/MANIFEST.MF &&',
'cp $(location :jgit_jar) $TMP/jgit.jar &&',
'cd $TMP && zip $TMP/jgit.jar META-INF/MANIFEST.MF &&',
'cat $SRCDIR/jgit.sh $TMP/jgit.jar >$OUT &&',
'chmod a+x $OUT',
]),
srcs = ['jgit.sh'],
out = 'jgit',
visibility = ['PUBLIC'],
)

java_binary(
name = 'jgit_jar',
deps = [
':pgm',
'//lib:slf4j-simple',
'//lib:tukaani-xz',
],
blacklist = [
'META-INF/DEPENDENCIES',
'META-INF/maven/.*',
],
)

genrule(
name = 'binary_manifest',
cmd = ';'.join(['echo "%s: %s" >>$OUT' % e for e in [
('Manifest-Version', '1.0'),
('Main-Class', 'org.eclipse.jgit.pgm.Main'),
('Bundle-Version', git_version()),
('Implementation-Title', 'JGit Command Line Interface'),
('Implementation-Vendor', 'Eclipse.org - JGit'),
('Implementation-Vendor-URL', 'http://www.eclipse.org/jgit/'),
('Implementation-Vendor-Id', 'org.eclipse.jgit'),
]] + ['echo >>$OUT']),
out = 'MANIFEST.MF',
)

+ 0
- 95
org.eclipse.jgit.test/BUCK View File

@@ -1,95 +0,0 @@
PKG = 'tst/org/eclipse/jgit/'
HELPERS = glob(['src/**/*.java']) + [PKG + c for c in [
'api/AbstractRemoteCommandTest.java',
'diff/AbstractDiffTestCase.java',
'internal/storage/file/GcTestCase.java',
'internal/storage/file/PackIndexTestCase.java',
'internal/storage/file/XInputStream.java',
'nls/GermanTranslatedBundle.java',
'nls/MissingPropertyBundle.java',
'nls/NoPropertiesBundle.java',
'nls/NonTranslatedBundle.java',
'revwalk/RevQueueTestCase.java',
'revwalk/RevWalkTestCase.java',
'transport/SpiTransport.java',
'treewalk/FileTreeIteratorWithTimeControl.java',
'treewalk/filter/AlwaysCloneTreeFilter.java',
'test/resources/SampleDataRepositoryTestCase.java',
'util/CPUTimeStopWatch.java',
'util/io/Strings.java',
]]

DATA = [
PKG + 'lib/empty.gitindex.dat',
PKG + 'lib/sorttest.gitindex.dat',
]

TESTS = glob(
['tst/**/*.java'],
excludes = HELPERS + DATA,
)

DEPS = {
PKG + 'nls/RootLocaleTest.java': [
'//org.eclipse.jgit.pgm:pgm',
'//org.eclipse.jgit.ui:ui',
],
}

for src in TESTS:
name = src[len('tst/'):len(src)-len('.java')].replace('/', '.')
labels = []
if name.startswith('org.eclipse.jgit.'):
l = name[len('org.eclipse.jgit.'):]
if l.startswith('internal.storage.'):
l = l[len('internal.storage.'):]
i = l.find('.')
if i > 0:
labels.append(l[:i])
else:
labels.append(i)
if 'lib' not in labels:
labels.append('lib')

java_test(
name = name,
labels = labels,
srcs = [src],
deps = [
':helpers',
':tst_rsrc',
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.junit:junit',
'//org.eclipse.jgit.lfs:jgit-lfs',
'//lib:hamcrest-core',
'//lib:hamcrest-library',
'//lib:javaewah',
'//lib:junit',
'//lib:slf4j-api',
'//lib:slf4j-simple',
] + DEPS.get(src, []),
vm_args = ['-Xmx256m', '-Dfile.encoding=UTF-8'],
)

java_library(
name = 'helpers',
srcs = HELPERS,
resources = DATA,
deps = [
'//org.eclipse.jgit:jgit',
'//org.eclipse.jgit.junit:junit',
'//lib:junit',
],
)

prebuilt_jar(
name = 'tst_rsrc',
binary_jar = ':tst_rsrc_jar',
)

genrule(
name = 'tst_rsrc_jar',
cmd = 'cd $SRCDIR/tst-rsrc ; zip -qr $OUT .',
srcs = glob(['tst-rsrc/**']),
out = 'tst_rsrc.jar',
)

+ 0
- 7
org.eclipse.jgit.ui/BUCK View File

@@ -1,7 +0,0 @@
java_library(
name = 'ui',
srcs = glob(['src/**']),
resources = glob(['resources/**']),
deps = ['//org.eclipse.jgit:jgit'],
visibility = ['PUBLIC'],
)

+ 0
- 20
org.eclipse.jgit/BUCK View File

@@ -1,20 +0,0 @@
SRCS = glob(['src/**'])
RESOURCES = glob(['resources/**'])

java_library(
name = 'jgit',
srcs = SRCS,
resources = RESOURCES,
deps = [
'//lib:javaewah',
'//lib:jsch',
'//lib:httpcomponents',
'//lib:slf4j-api',
],
visibility = ['PUBLIC'],
)

java_sources(
name = 'jgit_src',
srcs = SRCS + RESOURCES,
)

Loading…
Cancel
Save