opentelemetry-java icon indicating copy to clipboard operation
opentelemetry-java copied to clipboard

Publish otel.spotless-conventions?

Open trask opened this issue 2 years ago • 2 comments

Pros:

This would enable us to use it across all 4 java repos (core, instrumentation, contrib, docs).

In particular, instrumentation repo has many standalone gradle modules, which currently requires copying spotless configuration across each one (https://github.com/open-telemetry/opentelemetry-java-instrumentation/pull/5058).

Cons:

It's really just for use on OpenTelemetry projects, given that it adds our license header, as opposed to something public for others to use:

/*
 * Copyright The OpenTelemetry Authors
 * SPDX-License-Identifier: Apache-2.0
 */

trask avatar Jan 10 '22 20:01 trask

How/where would we do this, do you think?

jkwatson avatar Jan 10 '22 22:01 jkwatson

It's always been a goal to publish all the conventions to use among our three repos to reduce code duplication. But keeping the code in sync hasn't been quite annoying enough to prioritize that yet, maybe it's important now though.

anuraaga avatar Jan 11 '22 02:01 anuraaga