This is a refactoring change to expose comments and drafts to plugin API. - remove own DraftInput class from server package and reuse existing one from the extensions package - remove Side enum and reuse the existing enum from extensions package - replace CommentRange with Range in CommentInfo class This is needed to simplify mapping from server side CommentInfo class to one from extensions package. It cannot be used directly because of AccountInfo class and needs to be mapped in plugin API layer. Change-Id: If6c4cbce715f89f84459a6cd97073d1de31b0312
63 lines
1.3 KiB
Python
63 lines
1.3 KiB
Python
SRC = 'src/main/java/com/google/gerrit/extensions/'
|
|
SRCS = glob([SRC + '**/*.java'])
|
|
|
|
gwt_module(
|
|
name = 'client',
|
|
srcs = glob([
|
|
SRC + 'api/projects/ProjectState.java',
|
|
SRC + 'common/ChangeStatus.java',
|
|
SRC + 'common/Comment.java',
|
|
SRC + 'common/InheritableBoolean.java',
|
|
SRC + 'common/ListChangesOption.java',
|
|
SRC + 'common/Side.java',
|
|
SRC + 'common/SubmitType.java',
|
|
SRC + 'common/Theme.java',
|
|
SRC + 'webui/GerritTopMenu.java',
|
|
]),
|
|
gwt_xml = SRC + 'Extensions.gwt.xml',
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_binary(
|
|
name = 'extension-api',
|
|
deps = [':lib'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'lib',
|
|
exported_deps = [
|
|
':api',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-servlet',
|
|
'//lib:servlet-api-3_1',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_library(
|
|
name = 'api',
|
|
srcs = glob([SRC + '**/*.java']),
|
|
provided_deps = ['//lib/guice:guice'],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_sources(
|
|
name = 'extension-api-src',
|
|
srcs = SRCS,
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_doc(
|
|
name = 'extension-api-javadoc',
|
|
title = 'Gerrit Review Extension API Documentation',
|
|
pkgs = ['com.google.gerrit.extensions'],
|
|
paths = ['src/main/java'],
|
|
srcs = SRCS,
|
|
deps = [
|
|
'//lib/guice:javax-inject',
|
|
'//lib/guice:guice_library'
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|