Skip to content

Commit 66ecfdb

Browse files
authored
Update example to follow current conventions. (#212)
1 parent cf35e35 commit 66ecfdb

File tree

4 files changed

+32
-42
lines changed

4 files changed

+32
-42
lines changed

example/build.gradle

-12
This file was deleted.

example/build.gradle.kts

+13
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,13 @@
1+
plugins {
2+
id("otel.java-conventions")
3+
}
4+
5+
description = "An example OpenTelemetry Java Contrib library"
6+
7+
tasks {
8+
jar {
9+
manifest {
10+
attributes["Main-Class"] = "io.opentelemetry.contrib.example.Library"
11+
}
12+
}
13+
}

example/src/test/groovy/io/opentelemetry/contrib/example/LibraryTest.groovy

-30
This file was deleted.
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,19 @@
1+
/*
2+
* Copyright The OpenTelemetry Authors
3+
* SPDX-License-Identifier: Apache-2.0
4+
*/
5+
6+
package io.opentelemetry.contrib.example;
7+
8+
import static org.assertj.core.api.Assertions.assertThat;
9+
10+
import org.junit.jupiter.api.Test;
11+
12+
class LibraryTest {
13+
14+
@Test
15+
void myMethod() {
16+
Library library = new Library();
17+
assertThat(library.myMethod()).isTrue();
18+
}
19+
}

0 commit comments

Comments
 (0)