```ruby
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

BuildrPlus::Roles.role(:replicant_qa_support, :requires => [:role_replicant_shared]) do

  project.publish = BuildrPlus::Artifacts.replicant_client?

  if BuildrPlus::FeatureManager.activated?(:domgen)
    generators = []
    generators += [:imit_client_test_qa_external, :imit_client_main_qa_external]  if BuildrPlus::FeatureManager.activated?(:replicant)
    generators += project.additional_domgen_generators
    Domgen::Build.define_generate_task(generators, :buildr_project => project) do |t|
      t.filter = project.domgen_filter
    end
  end

  compile.with BuildrPlus::Libs.replicant_client_qa_support

  BuildrPlus::Roles.merge_projects_with_role(project.compile, :replicant_shared)

  package(:jar)
  package(:sources)
end
```

Stop duplicate generation of code
user
```ruby
#
# Licensed under the Apache License, Version 2.0 (the "License");
# you may not use this file except in compliance with the License.
# You may obtain a copy of the License at
#
#     http://www.apache.org/licenses/LICENSE-2.0
#
# Unless required by applicable law or agreed to in writing, software
# distributed under the License is distributed on an "AS IS" BASIS,
# WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
# See the License for the specific language governing permissions and
# limitations under the License.
#

BuildrPlus::Roles.role(:replicant_qa_support, :requires => [:role_replicant_shared]) do

  project.publish = BuildrPlus::Artifacts.replicant_client?

  if BuildrPlus::FeatureManager.activated?(:domgen)
    generators = []
    generators += [:imit_client_main_qa_external]  if BuildrPlus::FeatureManager.activated?(:replicant)
    generators += project.additional_domgen_generators
    Domgen::Build.define_generate_task(generators, :buildr_project => project) do |t|
      t.filter = project.domgen_filter
    end
  end

  compile.with BuildrPlus::Libs.replicant_client_qa_support

  BuildrPlus::Roles.merge_projects_with_role(project.compile, :replicant_shared)

  package(:jar)
  package(:sources)
end
```
assistant