
60efceb upstream change flips the default version of java targeted to be
Java 7 rather than the EoL'd Java 6. Now we don't need to overwrite
Buck's own python methods to enforce Java 7 to be the default Java version.
[1] 60efceb523
Change-Id: I8735dc0bec74c55c88ddcd07fe035536e7f0ceff
59 lines
1.1 KiB
Python
59 lines
1.1 KiB
Python
COMMON = ['gerrit-gwtui-common/src/main/java/']
|
|
SRC = 'src/main/java/com/google/gerrit/'
|
|
SRCS = glob([SRC + '**/*.java'])
|
|
|
|
DEPS = [
|
|
'//lib/gwt:user',
|
|
'//lib/gwt:dev',
|
|
]
|
|
|
|
java_binary(
|
|
name = 'gwtui-api',
|
|
deps = [
|
|
':gwtui-api-lib',
|
|
'//gerrit-gwtui-common:client-lib',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'gwtui-api-lib',
|
|
exported_deps = [':gwtui-api-lib2'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library2(
|
|
name = 'gwtui-api-lib2',
|
|
srcs = SRCS,
|
|
resources = glob(['src/main/**/*']),
|
|
deps = ['//gerrit-gwtui-common:client-lib2'],
|
|
compile_deps = DEPS,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_binary(
|
|
name = 'gwtui-api-src',
|
|
deps = [
|
|
':gwtui-api-src-lib',
|
|
'//gerrit-gwtui-common:client-src-lib',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'gwtui-api-src-lib',
|
|
srcs = [],
|
|
resources = glob(['src/main/**/*']),
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_doc(
|
|
name = 'gwtui-api-javadoc',
|
|
title = 'Gerrit Review GWT Extension API Documentation',
|
|
pkg = 'com.google.gerrit',
|
|
paths = ['src/main/java'] + COMMON,
|
|
srcs = SRCS,
|
|
deps = DEPS + ['//gerrit-gwtui-common:client-lib2'],
|
|
visibility = ['PUBLIC'],
|
|
)
|