From 460634f9977ceb1aae8a9860b34484d99bb454e5 Mon Sep 17 00:00:00 2001 From: Weimin Yu Date: Wed, 15 Apr 2020 12:21:41 -0400 Subject: [PATCH] Exclude proxy configs from the FOSS jar (#558) * Exclude proxy configs from the FOSS jar No sensitve data exposed. Added a todo to modify the release process and stop building the foss jar on the merged repo. --- core/build.gradle | 3 +++ 1 file changed, 3 insertions(+) diff --git a/core/build.gradle b/core/build.gradle index 1c51ce29c..8e16638ea 100644 --- a/core/build.gradle +++ b/core/build.gradle @@ -894,11 +894,14 @@ createUberJar('nomulus', 'nomulus', 'google.registry.tools.RegistryTool') // A jar with classes and resources from main sourceSet, excluding internal // data. See comments on configurations.nomulus_test above for details. +// TODO(weiminyu): release process should build this using the public repo to eliminate the need +// for excludes. task nomulusFossJar (type: Jar) { archiveBaseName = 'nomulus' archiveClassifier = 'public' from (project.sourceSets.main.output) { exclude 'google/registry/config/files/**' + exclude 'google/registry/proxy/config/**' } from (project.sourceSets.main.output) { include 'google/registry/config/files/default-config.yaml'