Skip to content

Commit 4e46fbb

Browse files
committed
first pass at disentangling maven plugins
1 parent 139f655 commit 4e46fbb

File tree

6 files changed

+46
-39
lines changed

6 files changed

+46
-39
lines changed

jdbc-grpc/pom.xml

Lines changed: 1 addition & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -34,13 +34,6 @@
3434
<groupId>javax.annotation</groupId>
3535
<artifactId>javax.annotation-api</artifactId>
3636
</dependency>
37-
<dependency>
38-
<groupId>com.salesforce.datacloud</groupId>
39-
<artifactId>jdbc-proto</artifactId>
40-
<version>${project.version}</version>
41-
<scope>provided</scope>
42-
<optional>true</optional>
43-
</dependency>
4437
</dependencies>
4538

4639
<build>
@@ -54,7 +47,7 @@
5447
<pluginId>grpc-java</pluginId>
5548
<pluginArtifact>io.grpc:protoc-gen-grpc-java:${grpc.version}:exe:${os.detected.classifier}</pluginArtifact>
5649
<attachProtoSources>false</attachProtoSources>
57-
<protoSourceRoot>${project.parent.basedir}/jdbc-proto/src/main/proto</protoSourceRoot>
50+
<protoSourceRoot>${project.basedir}/../jdbc-proto/src/main/proto</protoSourceRoot>
5851
</configuration>
5952
<executions>
6053
<execution>

jdbc-parent/pom.xml

Lines changed: 18 additions & 16 deletions
Original file line numberDiff line numberDiff line change
@@ -28,12 +28,13 @@
2828
<java.version>1.8</java.version>
2929
<jjwt.version>0.12.6</jjwt.version>
3030
<lombok.version>1.18.34</lombok.version>
31+
<maven-compiler-plugin.version>3.14.0</maven-compiler-plugin.version>
3132

32-
<maven.compiler.release>${java.version}</maven.compiler.release>
33+
<maven-javadoc-plugin.version>3.11.1</maven-javadoc-plugin.version>
34+
35+
<maven.compiler.release>8</maven.compiler.release>
3336
<maven.compiler.source>${java.version}</maven.compiler.source>
34-
<maven.compiler.source>{java.version}</maven.compiler.source>
3537
<maven.compiler.target>${java.version}</maven.compiler.target>
36-
<maven.compiler.target>{java.version}</maven.compiler.target>
3738
<mockito-bom.version>4.11.0</mockito-bom.version>
3839
<okhttp.version>4.12.0</okhttp.version>
3940
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
@@ -215,19 +216,6 @@
215216
</dependencies>
216217
</dependencyManagement>
217218

218-
<dependencies>
219-
<!-- <dependency>-->
220-
<!-- <groupId>com.salesforce.datacloud</groupId>-->
221-
<!-- <artifactId>jdbc-grpc</artifactId>-->
222-
<!-- <version>${project.version}</version>-->
223-
<!-- </dependency>-->
224-
<!-- <dependency>-->
225-
<!-- <groupId>com.salesforce.datacloud</groupId>-->
226-
<!-- <artifactId>jdbc-slim</artifactId>-->
227-
<!-- <version>${project.version}</version>-->
228-
<!-- </dependency>-->
229-
</dependencies>
230-
231219
<build>
232220
<pluginManagement>
233221
<plugins>
@@ -236,6 +224,20 @@
236224
<artifactId>jacoco-maven-plugin</artifactId>
237225
<version>${jacoco.maven.plugin.version}</version>
238226
</plugin>
227+
<plugin>
228+
<groupId>org.apache.maven.plugins</groupId>
229+
<artifactId>maven-compiler-plugin</artifactId>
230+
<version>${maven-compiler-plugin.version}</version>
231+
<configuration>
232+
<showDeprecation>true</showDeprecation>
233+
<showWarnings>true</showWarnings>
234+
</configuration>
235+
</plugin>
236+
<plugin>
237+
<groupId>org.apache.maven.plugins</groupId>
238+
<artifactId>maven-javadoc-plugin</artifactId>
239+
<version>3.11.1</version>
240+
</plugin>
239241
</plugins>
240242
</pluginManagement>
241243
</build>

jdbc-proto/pom.xml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -10,8 +10,20 @@
1010

1111
<artifactId>jdbc-proto</artifactId>
1212

13+
<description>Salesforce Data Cloud Query API proto files</description>
14+
1315
<properties>
1416
<rootDirectory>${project.basedir}/../</rootDirectory>
1517
</properties>
1618

19+
<build>
20+
<resources>
21+
<resource>
22+
<directory>src/main/proto</directory>
23+
<includes>
24+
<include>**/*.proto</include>
25+
</includes>
26+
</resource>
27+
</resources>
28+
</build>
1729
</project>

jdbc-slim/pom.xml

Lines changed: 13 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -14,6 +14,18 @@
1414
<rootDirectory>${project.basedir}/../</rootDirectory>
1515
</properties>
1616

17+
<dependencyManagement>
18+
<dependencies>
19+
<dependency>
20+
<groupId>com.salesforce.datacloud</groupId>
21+
<artifactId>jdbc-grpc</artifactId>
22+
<version>${project.version}</version>
23+
<scope>provided</scope>
24+
<optional>true</optional>
25+
</dependency>
26+
</dependencies>
27+
</dependencyManagement>
28+
1729
<dependencies>
1830
<dependency>
1931
<groupId>com.fasterxml.jackson.core</groupId>
@@ -68,8 +80,8 @@
6880
<dependency>
6981
<groupId>com.salesforce.datacloud</groupId>
7082
<artifactId>jdbc-grpc</artifactId>
71-
<version>${project.version}</version>
7283
<scope>provided</scope>
84+
<optional>true</optional>
7385
</dependency>
7486
<dependency>
7587
<groupId>org.projectlombok</groupId>

jdbc/pom.xml

Lines changed: 2 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -5,7 +5,7 @@
55
<groupId>com.salesforce.datacloud</groupId>
66
<artifactId>jdbc-parent</artifactId>
77
<version>0.24.1-SNAPSHOT</version>
8-
<!-- <relativePath>jdbc-parent</relativePath> -->
8+
<relativePath>../jdbc-parent</relativePath>
99
</parent>
1010

1111
<artifactId>jdbc</artifactId>
@@ -14,7 +14,7 @@
1414
<description>Salesforce Data Cloud JDBC Driver</description>
1515

1616
<properties>
17-
<!-- <rootDirectory>${project.basedir}/../</rootDirectory> -->
17+
<rootDirectory>${project.basedir}/../</rootDirectory>
1818
</properties>
1919

2020
<dependencies>
@@ -45,12 +45,8 @@
4545
<phase>package</phase>
4646
<configuration>
4747
<shadedArtifactAttached>true</shadedArtifactAttached>
48-
<!-- TODO: can we use the maven-shade-plugin to produce a jar com.salesforce.datacloud:jdbc that handles the provided/runtime issue with jdbc-grpc? -->
4948
<shadedArtifactId>jdbc</shadedArtifactId>
5049
<createDependencyReducedPom>false</createDependencyReducedPom>
51-
<!-- <extraArtifacts>-->
52-
<!-- <artifact>com.salesforce.datacloud:jdbc-grpc:0.23.0-SNAPSHOT</artifact>-->
53-
<!-- </extraArtifacts>-->
5450
<relocations>
5551
<relocation>
5652
<pattern>com.salesforce.datacloud</pattern>

pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -126,14 +126,6 @@
126126
</execution>
127127
</executions>
128128
</plugin>
129-
<plugin>
130-
<artifactId>maven-compiler-plugin</artifactId>
131-
<version>3.13.0</version>
132-
<configuration>
133-
<source>${java.version}</source>
134-
<target>${java.version}</target>
135-
</configuration>
136-
</plugin>
137129
<plugin>
138130
<groupId>org.apache.maven.plugins</groupId>
139131
<artifactId>maven-assembly-plugin</artifactId>

0 commit comments

Comments
 (0)