Skip to content

Commit f2c5db5

Browse files
committed
Add datasource-micrometer-bom module
Close #66
1 parent 114d76c commit f2c5db5

File tree

3 files changed

+104
-0
lines changed

3 files changed

+104
-0
lines changed

datasource-micrometer-bom/pom.xml

Lines changed: 70 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,70 @@
1+
<?xml version="1.0" encoding="UTF-8"?>
2+
<!--
3+
~ Copyright 2025 the original author or authors.
4+
~
5+
~ Licensed under the Apache License, Version 2.0 (the "License");
6+
~ you may not use this file except in compliance with the License.
7+
~ You may obtain a copy of the License at
8+
~
9+
~ https://www.apache.org/licenses/LICENSE-2.0
10+
~
11+
~ Unless required by applicable law or agreed to in writing, software
12+
~ distributed under the License is distributed on an "AS IS" BASIS,
13+
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
14+
~ See the License for the specific language governing permissions and
15+
~ limitations under the License.
16+
-->
17+
18+
<project xmlns="http://maven.apache.org/POM/4.0.0"
19+
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
20+
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
21+
<modelVersion>4.0.0</modelVersion>
22+
<parent>
23+
<groupId>net.ttddyy.observation</groupId>
24+
<artifactId>datasource-micrometer-parent</artifactId>
25+
<version>1.1.1-SNAPSHOT</version>
26+
</parent>
27+
28+
<artifactId>datasource-micrometer-bom</artifactId>
29+
<name>datasource-micrometer-bom</name>
30+
<packaging>pom</packaging>
31+
32+
<dependencyManagement>
33+
<dependencies>
34+
<dependency>
35+
<groupId>net.ttddyy.observation</groupId>
36+
<artifactId>datasource-micrometer</artifactId>
37+
<version>1.1.1-SNAPSHOT</version>
38+
</dependency>
39+
<dependency>
40+
<groupId>net.ttddyy.observation</groupId>
41+
<artifactId>datasource-micrometer-spring-boot</artifactId>
42+
<version>1.1.1-SNAPSHOT</version>
43+
</dependency>
44+
</dependencies>
45+
</dependencyManagement>
46+
47+
<build>
48+
<plugins>
49+
<plugin>
50+
<groupId>org.apache.maven.plugins</groupId>
51+
<artifactId>maven-deploy-plugin</artifactId>
52+
<configuration>
53+
<skip>false</skip>
54+
</configuration>
55+
</plugin>
56+
<plugin>
57+
<groupId>org.codehaus.mojo</groupId>
58+
<artifactId>flatten-maven-plugin</artifactId>
59+
<configuration>
60+
<flattenMode>bom</flattenMode>
61+
<pomElements>
62+
<properties>remove</properties>
63+
<distributionManagement>remove</distributionManagement>
64+
</pomElements>
65+
</configuration>
66+
</plugin>
67+
</plugins>
68+
</build>
69+
70+
</project>

docs/src/main/asciidoc/getting-started.adoc

Lines changed: 33 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -51,6 +51,11 @@ Non-spring applications can directly use this module.
5151

5252
This module provides an auto-configuration for the Spring Boot 3 applications.
5353

54+
*datasource-micrometer-bom*
55+
56+
This module provides a Bill of Materials (BOM) for dependency management.
57+
58+
5459
[[getting-started-installation]]
5560
== Installation
5661

@@ -100,6 +105,34 @@ dependencies {
100105
----
101106
====
102107

108+
*datasource-micrometer-bom*
109+
110+
====
111+
[source,xml,indent=0,subs="verbatim,attributes",role="primary"]
112+
.Maven
113+
----
114+
<dependencyManagement>
115+
<dependencies>
116+
<dependency>
117+
<groupId>net.ttddyy.observation</groupId>
118+
<artifactId>datasource-micrometer-bom</artifactId>
119+
<version>{project-version}</version>
120+
<type>pom</type>
121+
<scope>import</scope>
122+
</dependency>
123+
</dependencies>
124+
</dependencyManagement>
125+
----
126+
127+
[source,groovy,indent=0,subs="verbatim,attributes",role="secondary"]
128+
.Gradle
129+
----
130+
dependencies {
131+
implementation platform("net.ttddyy.observation:datasource-micrometer-bom:{project-version}")
132+
}
133+
----
134+
====
135+
103136
[[getting-started-installation-setup]]
104137
=== Setup
105138

pom.xml

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -65,6 +65,7 @@
6565
<modules>
6666
<module>datasource-micrometer</module>
6767
<module>datasource-micrometer-spring-boot</module>
68+
<module>datasource-micrometer-bom</module>
6869
<module>docs</module>
6970
</modules>
7071

0 commit comments

Comments
 (0)