|
29 | 29 | < developerConnection>scm:git: [email protected]:sendgrid/sendgrid-java.git</ developerConnection>
|
30 | 30 | <tag>4.4.2</tag>
|
31 | 31 | </scm>
|
| 32 | + <profiles> |
| 33 | + <profile> |
| 34 | + <id>gpg</id> |
| 35 | + <activation> |
| 36 | + <activeByDefault>false</activeByDefault> |
| 37 | + </activation> |
| 38 | + <build> |
| 39 | + <plugins> |
| 40 | + <plugin> |
| 41 | + <groupId>org.apache.maven.plugins</groupId> |
| 42 | + <artifactId>maven-gpg-plugin</artifactId> |
| 43 | + <version>1.6</version> |
| 44 | + <executions> |
| 45 | + <execution> |
| 46 | + <id>sign-artifacts</id> |
| 47 | + <phase>verify</phase> |
| 48 | + <goals> |
| 49 | + <goal>sign</goal> |
| 50 | + </goals> |
| 51 | + </execution> |
| 52 | + </executions> |
| 53 | + <configuration> |
| 54 | + <keyname>${gpg.keyname}</keyname> |
| 55 | + <passphrase>${gpg.passphrase}</passphrase> |
| 56 | + <gpgArguments> |
| 57 | + <arg>--pinentry-mode</arg> |
| 58 | + <arg>loopback</arg> |
| 59 | + </gpgArguments> |
| 60 | + </configuration> |
| 61 | + </plugin> |
| 62 | + </plugins> |
| 63 | + </build> |
| 64 | + </profile> |
| 65 | + <profile> |
| 66 | + <id>release</id> |
| 67 | + <activation> |
| 68 | + <property> |
| 69 | + <name>release</name> |
| 70 | + </property> |
| 71 | + </activation> |
| 72 | + <build> |
| 73 | + <plugins> |
| 74 | + <plugin> |
| 75 | + <groupId>org.sonatype.plugins</groupId> |
| 76 | + <artifactId>nexus-staging-maven-plugin</artifactId> |
| 77 | + <version>1.6.8</version> |
| 78 | + <extensions>true</extensions> |
| 79 | + <configuration> |
| 80 | + <serverId>ossrh</serverId> |
| 81 | + <nexusUrl>https://oss.sonatype.org/</nexusUrl> |
| 82 | + <autoReleaseAfterClose>true</autoReleaseAfterClose> |
| 83 | + </configuration> |
| 84 | + </plugin> |
| 85 | + <plugin> |
| 86 | + <groupId>org.apache.maven.plugins</groupId> |
| 87 | + <artifactId>maven-source-plugin</artifactId> |
| 88 | + <version>3.0.1</version> |
| 89 | + <executions> |
| 90 | + <execution> |
| 91 | + <id>attach-sources</id> |
| 92 | + <goals> |
| 93 | + <goal>jar-no-fork</goal> |
| 94 | + </goals> |
| 95 | + </execution> |
| 96 | + </executions> |
| 97 | + </plugin> |
| 98 | + <plugin> |
| 99 | + <groupId>org.apache.maven.plugins</groupId> |
| 100 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 101 | + <version>2.10.4</version> |
| 102 | + <executions> |
| 103 | + <execution> |
| 104 | + <id>attach-javadocs</id> |
| 105 | + <goals> |
| 106 | + <goal>jar</goal> |
| 107 | + </goals> |
| 108 | + </execution> |
| 109 | + </executions> |
| 110 | + </plugin> |
| 111 | + <plugin> |
| 112 | + <groupId>org.apache.maven.plugins</groupId> |
| 113 | + <artifactId>maven-gpg-plugin</artifactId> |
| 114 | + <version>1.6</version> |
| 115 | + <executions> |
| 116 | + <execution> |
| 117 | + <id>sign-artifacts</id> |
| 118 | + <phase>verify</phase> |
| 119 | + <goals> |
| 120 | + <goal>sign</goal> |
| 121 | + </goals> |
| 122 | + </execution> |
| 123 | + </executions> |
| 124 | + </plugin> |
| 125 | + <plugin> |
| 126 | + <groupId>org.apache.maven.plugins</groupId> |
| 127 | + <artifactId>maven-shade-plugin</artifactId> |
| 128 | + <version>3.2.1</version> |
| 129 | + <configuration> |
| 130 | + <relocations> |
| 131 | + <relocation> |
| 132 | + <pattern>com.sendgrid.helpers.mail.objects</pattern> |
| 133 | + <shadedPattern>com.sendgrid</shadedPattern> |
| 134 | + </relocation> |
| 135 | + <relocation> |
| 136 | + <pattern>com.sendgrid.helpers.mail</pattern> |
| 137 | + <shadedPattern>com.sendgrid</shadedPattern> |
| 138 | + </relocation> |
| 139 | + </relocations> |
| 140 | + </configuration> |
| 141 | + <executions> |
| 142 | + <execution> |
| 143 | + <phase>package</phase> |
| 144 | + <goals> |
| 145 | + <goal>shade</goal> |
| 146 | + </goals> |
| 147 | + </execution> |
| 148 | + </executions> |
| 149 | + </plugin> |
| 150 | + </plugins> |
| 151 | + </build> |
| 152 | + </profile> |
| 153 | + </profiles> |
32 | 154 | <build>
|
33 | 155 | <resources>
|
34 | 156 | <resource>
|
|
0 commit comments