Skip to content

Commit 0d3f8d6

Browse files
authored
[bq] spring boot starter
1 parent 41a29c7 commit 0d3f8d6

File tree

2 files changed

+70
-82
lines changed

2 files changed

+70
-82
lines changed

spring-batch-bigquery/.gitignore

+1
Original file line numberDiff line numberDiff line change
@@ -0,0 +1 @@
1+
.flattened-pom.xml

spring-batch-bigquery/pom.xml

+69-82
Original file line numberDiff line numberDiff line change
@@ -13,18 +13,31 @@
1313
~ WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
1414
~ See the License for the specific language governing permissions and
1515
~ limitations under the License.
16-
--><project xmlns="http://maven.apache.org/POM/4.0.0"
17-
xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance"
18-
xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
19-
16+
-->
17+
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 https://maven.apache.org/xsd/maven-4.0.0.xsd">
2018
<modelVersion>4.0.0</modelVersion>
2119

20+
<parent>
21+
<groupId>org.springframework.boot</groupId>
22+
<artifactId>spring-boot-starter-parent</artifactId>
23+
<version>3.4.1</version>
24+
<relativePath/>
25+
</parent>
26+
2227
<groupId>org.springframework.batch.extensions</groupId>
2328
<artifactId>spring-batch-bigquery</artifactId>
2429
<version>0.2.0-SNAPSHOT</version>
30+
2531
<name>Spring Batch BigQuery</name>
2632
<description>Spring Batch extension for Google BigQuery</description>
2733
<url>https://github.com/spring-projects/spring-batch-extensions/tree/main/spring-batch-bigquery</url>
34+
<licenses>
35+
<license>
36+
<name>Apache-2.0</name>
37+
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
38+
<distribution>repo</distribution>
39+
</license>
40+
</licenses>
2841

2942
<developers>
3043
<developer>
@@ -34,111 +47,86 @@
3447
</developer>
3548
</developers>
3649

37-
<licenses>
38-
<license>
39-
<name>Apache-2.0</name>
40-
<url>https://www.apache.org/licenses/LICENSE-2.0.txt</url>
41-
<distribution>repo</distribution>
42-
</license>
43-
</licenses>
44-
4550
<scm>
4651
<url>https://github.com/spring-projects/spring-batch-extensions</url>
4752
<connection>git://github.com/spring-projects/spring-batch-extensions.git</connection>
4853
<developerConnection>[email protected]:spring-projects/spring-batch-extensions.git</developerConnection>
4954
</scm>
5055

51-
<properties>
52-
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
53-
54-
<!-- Dependent on Spring Batch core -->
55-
<java.version>17</java.version>
56-
<logback.version>1.5.13</logback.version>
57-
</properties>
58-
5956
<dependencies>
57+
<!-- Compile -->
6058
<dependency>
61-
<groupId>org.springframework.batch</groupId>
62-
<artifactId>spring-batch-core</artifactId>
63-
<version>5.1.2</version>
59+
<groupId>com.fasterxml.jackson.dataformat</groupId>
60+
<artifactId>jackson-dataformat-csv</artifactId>
6461
</dependency>
65-
6662
<dependency>
6763
<groupId>com.google.cloud</groupId>
6864
<artifactId>google-cloud-bigquery</artifactId>
69-
<version>2.42.0</version>
70-
</dependency>
71-
<dependency>
72-
<groupId>com.fasterxml.jackson.dataformat</groupId>
73-
<artifactId>jackson-dataformat-csv</artifactId>
74-
<version>2.17.2</version>
65+
<version>2.45.0</version>
7566
</dependency>
76-
7767
<dependency>
7868
<groupId>org.apache.commons</groupId>
7969
<artifactId>commons-lang3</artifactId>
80-
<version>3.16.0</version>
8170
</dependency>
82-
83-
84-
<!-- Test Dependencies -->
8571
<dependency>
86-
<groupId>org.junit.jupiter</groupId>
87-
<artifactId>junit-jupiter-api</artifactId>
88-
<version>5.11.0</version>
89-
<scope>test</scope>
90-
</dependency>
91-
<dependency>
92-
<groupId>org.mockito</groupId>
93-
<artifactId>mockito-core</artifactId>
94-
<version>5.12.0</version>
95-
<scope>test</scope>
72+
<groupId>org.springframework.batch</groupId>
73+
<artifactId>spring-batch-core</artifactId>
9674
</dependency>
75+
76+
<!-- Test -->
9777
<dependency>
9878
<groupId>ch.qos.logback</groupId>
99-
<artifactId>logback-core</artifactId>
100-
<version>${logback.version}</version>
79+
<artifactId>logback-classic</artifactId>
10180
<scope>test</scope>
10281
</dependency>
10382
<dependency>
104-
<groupId>ch.qos.logback</groupId>
105-
<artifactId>logback-classic</artifactId>
106-
<version>${logback.version}</version>
83+
<groupId>org.junit.jupiter</groupId>
84+
<artifactId>junit-jupiter-api</artifactId>
10785
<scope>test</scope>
10886
</dependency>
10987
<dependency>
110-
<groupId>org.slf4j</groupId>
111-
<artifactId>slf4j-api</artifactId>
112-
<version>2.0.16</version>
88+
<groupId>org.mockito</groupId>
89+
<artifactId>mockito-core</artifactId>
11390
<scope>test</scope>
11491
</dependency>
11592
<dependency>
11693
<groupId>org.testcontainers</groupId>
11794
<artifactId>junit-jupiter</artifactId>
118-
<version>1.20.1</version>
11995
<scope>test</scope>
12096
</dependency>
121-
12297
</dependencies>
12398

12499
<build>
125100
<plugins>
126-
<!-- Compiles source code -->
101+
<!-- Generate javadoc and source jars -->
127102
<plugin>
128103
<groupId>org.apache.maven.plugins</groupId>
129-
<artifactId>maven-compiler-plugin</artifactId>
130-
<version>3.13.0</version>
131-
<configuration>
132-
<source>${java.version}</source>
133-
<target>${java.version}</target>
134-
</configuration>
104+
<artifactId>maven-javadoc-plugin</artifactId>
105+
<executions>
106+
<execution>
107+
<id>attach-javadocs</id>
108+
<goals>
109+
<goal>jar</goal>
110+
</goals>
111+
</execution>
112+
</executions>
113+
</plugin>
114+
<plugin>
115+
<groupId>org.apache.maven.plugins</groupId>
116+
<artifactId>maven-source-plugin</artifactId>
117+
<executions>
118+
<execution>
119+
<id>attach-sources</id>
120+
<goals>
121+
<goal>jar</goal>
122+
</goals>
123+
</execution>
124+
</executions>
135125
</plugin>
136-
137126
<!-- Runs tests -->
138127
<plugin>
139128
<groupId>org.apache.maven.plugins</groupId>
140129
<artifactId>maven-surefire-plugin</artifactId>
141-
<version>3.3.1</version>
142130
<configuration>
143131
<includes>
144132
<!-- Google cloud tests are omitted because they are designed to be run locally -->
@@ -147,35 +135,34 @@
147135
</includes>
148136
</configuration>
149137
</plugin>
150-
151-
<!-- Generate javadoc and source jars -->
138+
<!-- Generates a flattened version of the pom.xml, used instead of the original -->
152139
<plugin>
153-
<groupId>org.apache.maven.plugins</groupId>
154-
<artifactId>maven-javadoc-plugin</artifactId>
155-
<version>3.8.0</version>
140+
<groupId>org.codehaus.mojo</groupId>
141+
<artifactId>flatten-maven-plugin</artifactId>
142+
<version>1.6.0</version>
156143
<executions>
157144
<execution>
158-
<id>attach-javadocs</id>
145+
<id>flatten</id>
146+
<phase>process-resources</phase>
159147
<goals>
160-
<goal>jar</goal>
148+
<goal>flatten</goal>
161149
</goals>
150+
<configuration>
151+
<flattenMode>ossrh</flattenMode>
152+
<pomElements>
153+
<profiles>remove</profiles>
154+
</pomElements>
155+
</configuration>
162156
</execution>
163-
</executions>
164-
</plugin>
165-
<plugin>
166-
<groupId>org.apache.maven.plugins</groupId>
167-
<artifactId>maven-source-plugin</artifactId>
168-
<version>3.3.1</version>
169-
<executions>
170157
<execution>
171-
<id>attach-sources</id>
158+
<id>flatten-clean</id>
159+
<phase>clean</phase>
172160
<goals>
173-
<goal>jar</goal>
161+
<goal>clean</goal>
174162
</goals>
175163
</execution>
176164
</executions>
177165
</plugin>
178166
</plugins>
179167
</build>
180-
181-
</project>
168+
</project>

0 commit comments

Comments
 (0)