Skip to content

Commit 56ef04f

Browse files
authored
revert (#595)
1 parent da2ee1a commit 56ef04f

File tree

4 files changed

+16
-131
lines changed

4 files changed

+16
-131
lines changed

.gitignore

Lines changed: 0 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -6,4 +6,3 @@ TestFile
66
logs/
77
*.log
88
*.pem
9-
dependency-reduced-pom.xml

bin/version_updater.py

Lines changed: 0 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -115,7 +115,6 @@ def main():
115115

116116
driver_util_file_path = "../src/main/java/com/databricks/jdbc/common/util/DriverUtil.java"
117117
pom_file_path = "../pom.xml"
118-
reduced_pom_file_path = "../uber-minimal-pom.xml"
119118
connection_test_file_path = "../src/test/java/com/databricks/jdbc/api/impl/DatabricksConnectionTest.java"
120119
database_metadata_test_file_path = ("../src/test/java/com/databricks/jdbc/api/impl/DatabricksDatabaseMetaDataTest"
121120
".java")
@@ -128,9 +127,6 @@ def main():
128127
_update_pom_xml(pom_file_path, version)
129128
print(f"Updated version in {pom_file_path}")
130129

131-
_update_pom_xml(reduced_pom_file_path, version)
132-
print(f"Updated version in {reduced_pom_file_path}")
133-
134130
_update_assertions_test_file(connection_test_file_path, version)
135131
print("Updated version in {}".format(connection_test_file_path))
136132

pom.xml

Lines changed: 16 additions & 84 deletions
Original file line numberDiff line numberDiff line change
@@ -25,18 +25,18 @@
2525
</developer>
2626
</developers>
2727
<scm>
28-
<connection>scm:git:https://github.com/databricks/databricks-jdbc.git</connection>
29-
<developerConnection>scm:git:https://github.com/databricks/databricks-jdbc.git</developerConnection>
30-
<url>https://github.com/databricks/databricks-jdbc</url>
28+
<connection>scm:git:https://github.com/databricks/databricks-jdbc.git</connection>
29+
<developerConnection>scm:git:https://github.com/databricks/databricks-jdbc.git</developerConnection>
30+
<url>https://github.com/databricks/databricks-jdbc</url>
3131
</scm>
3232
<issueManagement>
3333
<system>GitHub Issues</system>
3434
<url>https://github.com/databricks/databricks-jdbc/issues</url>
3535
</issueManagement>
3636
<distributionManagement>
3737
<repository>
38-
<id>local-test-repo</id>
39-
<url>file://${project.build.directory}/local-repo</url>
38+
<id>ossrh</id>
39+
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
4040
</repository>
4141
</distributionManagement>
4242
<properties>
@@ -389,6 +389,7 @@
389389
</goals>
390390
<configuration>
391391
<!-- The shaded uber jar is the default jar produced by this build -->
392+
<createDependencyReducedPom>false</createDependencyReducedPom>
392393
<shadedArtifactAttached>false</shadedArtifactAttached>
393394
<relocations>
394395
<relocation>
@@ -488,51 +489,6 @@
488489
</plugins>
489490
</build>
490491
<profiles>
491-
<profile>
492-
<!-- Local deploy for testing -->
493-
<id>local-deploy</id>
494-
<build>
495-
<plugins>
496-
<plugin>
497-
<groupId>org.apache.maven.plugins</groupId>
498-
<artifactId>maven-deploy-plugin</artifactId>
499-
<version>2.8.2</version>
500-
<executions>
501-
<!-- Skip the default deploy execution -->
502-
<execution>
503-
<id>skip-default-deploy</id>
504-
<phase>deploy</phase>
505-
<goals>
506-
<goal>deploy</goal>
507-
</goals>
508-
<configuration>
509-
<skip>true</skip>
510-
</configuration>
511-
</execution>
512-
<!-- Use deploy-file goal to deploy with custom POM -->
513-
<execution>
514-
<id>deploy-with-custom-pom</id>
515-
<phase>deploy</phase>
516-
<goals>
517-
<goal>deploy-file</goal>
518-
</goals>
519-
<configuration>
520-
<file>${project.build.directory}/${project.build.finalName}.jar</file>
521-
<pomFile>${project.basedir}/uber-minimal-pom.xml</pomFile>
522-
<!-- Include other artifacts like sources and javadocs -->
523-
<files>${project.build.directory}/${project.build.finalName}-thin.jar</files>
524-
<types>jar</types>
525-
<classifiers>thin</classifiers>
526-
<!-- Use repository details from distributionManagement -->
527-
<repositoryId>local-test-repo</repositoryId>
528-
<url>file://${project.build.directory}/local-repo</url>
529-
</configuration>
530-
</execution>
531-
</executions>
532-
</plugin>
533-
</plugins>
534-
</build>
535-
</profile>
536492
<profile>
537493
<id>release</id>
538494
<build>
@@ -571,41 +527,23 @@
571527
<groupId>org.apache.maven.plugins</groupId>
572528
<artifactId>maven-gpg-plugin</artifactId>
573529
<version>1.6</version>
530+
<configuration>
531+
<!-- Prevent gpg from using pinentry programs -->
532+
<gpgArguments>
533+
<arg>--pinentry-mode</arg>
534+
<arg>loopback</arg>
535+
</gpgArguments>
536+
</configuration>
574537
<executions>
575538
<execution>
539+
<id>sign-artifacts</id>
576540
<goals>
577-
<!-- Refer: https://maven.apache.org/plugins/maven-gpg-plugin/sign-and-deploy-file-mojo.html -->
578-
<goal>sign-and-deploy-file</goal>
541+
<goal>sign</goal>
579542
</goals>
580-
<phase>deploy</phase>
581-
<configuration>
582-
<file>${project.build.directory}/${project.build.finalName}.jar</file>
583-
<repositoryId>ossrh</repositoryId>
584-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
585-
<!-- Prevent gpg from using pinentry programs -->
586-
<gpgArguments>
587-
<arg>--pinentry-mode</arg>
588-
<arg>loopback</arg>
589-
</gpgArguments>
590-
<!-- Custom reduced pom file for fat jar -->
591-
<pomFile>${project.basedir}/uber-minimal-pom.xml</pomFile>
592-
<sources>${project.build.directory}/${project.build.finalName}-sources.jar</sources>
593-
<javadoc>${project.build.directory}/${project.build.finalName}-javadoc.jar</javadoc>
594-
<files>${project.build.directory}/${project.build.finalName}-thin.jar</files>
595-
<types>jar</types>
596-
<classifiers>thin</classifiers>
597-
</configuration>
543+
<phase>verify</phase>
598544
</execution>
599545
</executions>
600546
</plugin>
601-
<plugin>
602-
<groupId>org.apache.maven.plugins</groupId>
603-
<artifactId>maven-deploy-plugin</artifactId>
604-
<version>2.8.2</version>
605-
<configuration>
606-
<skip>true</skip>
607-
</configuration>
608-
</plugin>
609547
<plugin>
610548
<groupId>org.sonatype.plugins</groupId>
611549
<artifactId>nexus-staging-maven-plugin</artifactId>
@@ -619,12 +557,6 @@
619557
</plugin>
620558
</plugins>
621559
</build>
622-
<distributionManagement>
623-
<repository>
624-
<id>ossrh</id>
625-
<url>https://oss.sonatype.org/service/local/staging/deploy/maven2/</url>
626-
</repository>
627-
</distributionManagement>
628560
</profile>
629561
</profiles>
630562
</project>

uber-minimal-pom.xml

Lines changed: 0 additions & 42 deletions
This file was deleted.

0 commit comments

Comments
 (0)