Skip to content

Commit

Permalink
Update example to follow current conventions. (#212)
Browse files Browse the repository at this point in the history
  • Loading branch information
anuraaga authored Jan 20, 2022
1 parent cf35e35 commit 66ecfdb
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 42 deletions.
12 changes: 0 additions & 12 deletions example/build.gradle

This file was deleted.

13 changes: 13 additions & 0 deletions example/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
plugins {
id("otel.java-conventions")
}

description = "An example OpenTelemetry Java Contrib library"

tasks {
jar {
manifest {
attributes["Main-Class"] = "io.opentelemetry.contrib.example.Library"
}
}
}

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1,19 @@
/*
* Copyright The OpenTelemetry Authors
* SPDX-License-Identifier: Apache-2.0
*/

package io.opentelemetry.contrib.example;

import static org.assertj.core.api.Assertions.assertThat;

import org.junit.jupiter.api.Test;

class LibraryTest {

@Test
void myMethod() {
Library library = new Library();
assertThat(library.myMethod()).isTrue();
}
}

0 comments on commit 66ecfdb

Please sign in to comment.