<dependency>
<groupId>org.timbreframework</groupId>
<artifactId>timbre-core</artifactId>
<version>1.0.0</version>
</dependency>
groovy
dependencies {
implementation 'org.timbreframework:timbre-core:1.0.0'
}
import org.timbreframework.core.Timbre;
public class MyApp {
public static void main(String[] args) {
Timbre.run(MyApp.class);
}
}
import org.springframework.context.annotation.ComponentScan;
import org.springframework.context.annotation.Configuration;
@Configuration
@ComponentScan(basePackages = {"com.example.mylibrary"})
public class MyLibraryConfig {
}
import org.springframework.stereotype.Component;
@Component
public class MyComponent {
}
import org.springframework.beans.factory.annotation.Autowired;
@Component
public class MyComponent {
private AnotherComponent anotherComponent;
@Autowired
public void setAnotherComponent(AnotherComponent anotherComponent) {
this.anotherComponent = anotherComponent;
}
}