diff --git a/plugins/BUCK b/plugins/BUCK index a31237d1e0..9948720a8b 100644 --- a/plugins/BUCK +++ b/plugins/BUCK @@ -6,6 +6,9 @@ CORE = [ 'reviewnotes', 'singleusergroup' ] +CUSTOM = [ + # Add custom core plugins here +] # buck audit parses and resolves all deps even if not reachable # from the root(s) passed to audit. Filter dependencies to only @@ -20,7 +23,7 @@ def core_plugins(names): else: n.append(p) return h, n -HAVE, NEED = core_plugins(CORE) +HAVE, NEED = core_plugins(CORE + CUSTOM) genrule( name = 'core', diff --git a/tools/maven/BUCK b/tools/maven/BUCK index 98a7ade3a4..fcd77c0d55 100644 --- a/tools/maven/BUCK +++ b/tools/maven/BUCK @@ -1,12 +1,14 @@ include_defs('//VERSION') include_defs('//tools/maven/package.defs') +include_defs('//tools/maven/repository.defs') -URL = 'https://oss.sonatype.org/content/repositories/snapshots' \ - if GERRIT_VERSION.endswith('-SNAPSHOT') else \ - 'https://oss.sonatype.org/service/local/staging/deploy/maven2' +if GERRIT_VERSION.endswith('-SNAPSHOT'): + URL = MAVEN_SNAPSHOT_URL +else: + URL = MAVEN_RELEASE_URL maven_package( - repository = 'sonatype-nexus-staging', + repository = MAVEN_REPOSITORY, url = URL, version = GERRIT_VERSION, jar = { diff --git a/tools/maven/repository.defs b/tools/maven/repository.defs new file mode 100644 index 0000000000..c4e8fbf7d4 --- /dev/null +++ b/tools/maven/repository.defs @@ -0,0 +1,3 @@ +MAVEN_REPOSITORY = 'sonatype-nexus-staging' +MAVEN_SNAPSHOT_URL = 'https://oss.sonatype.org/content/repositories/snapshots' +MAVEN_RELEASE_URL = 'https://oss.sonatype.org/service/local/staging/deploy/maven2'