7066cc064e
Plugin contributed SSH commands and UiActions can now be annotated with plugin-owned capabilities. Capability scope was introduced to differentiate between plugin-owned capabilities and core capabilities. Per default the scope of @RequiresCapability annotation is CapabilityScope.CONTEXT, i. e. when @RequiresCapability is used within a plugin the scope of the capability is assumed to be that plugin. If @RequiresCapability is used within the core Gerrit Code Review server (and thus is outside of a plugin) the scope is the core server and will use the GlobalCapability known to Gerrit Code Review server. If a plugin needs to use a core capability name (e.g. "administrateServer") this can be specified by setting scope = CapabilityScope.CORE: @RequiresCapability(value="administrateServer", scope=CapabilityScope.CORE) Change-Id: I82f7a6fef2a47613a1fd9c7474ff568db3ca84a2
41 lines
883 B
Python
41 lines
883 B
Python
SRCS = glob(['src/main/java/**/*.java'])
|
|
|
|
java_library2(
|
|
name = 'sshd',
|
|
srcs = SRCS,
|
|
deps = [
|
|
'//gerrit-extension-api:api',
|
|
'//gerrit-cache-h2:cache-h2',
|
|
'//gerrit-common:server',
|
|
'//gerrit-patch-jgit:server',
|
|
'//gerrit-reviewdb:server',
|
|
'//gerrit-server:server',
|
|
'//gerrit-util-cli:cli',
|
|
'//lib:args4j',
|
|
'//lib:gson',
|
|
'//lib:guava',
|
|
'//lib:gwtorm',
|
|
'//lib:jsch',
|
|
'//lib:jsr305',
|
|
'//lib/commons:codec',
|
|
'//lib/guice:guice',
|
|
'//lib/guice:guice-assistedinject',
|
|
'//lib/guice:guice-servlet', # SSH should not depend on servlet
|
|
'//lib/log:api',
|
|
'//lib/log:log4j',
|
|
'//lib/mina:core',
|
|
'//lib/mina:sshd',
|
|
'//lib/jgit:jgit',
|
|
],
|
|
compile_deps = [
|
|
'//lib/bouncycastle:bcprov',
|
|
],
|
|
visibility = ['PUBLIC'],
|
|
)
|
|
|
|
java_sources(
|
|
name = 'sshd-src',
|
|
srcs = SRCS,
|
|
visibility = ['PUBLIC'],
|
|
)
|