|
33 | 33 | <url>https://github.com/operator-framework/java-operator-sdk/tree/master</url>
|
34 | 34 | </scm>
|
35 | 35 |
|
36 |
| - <distributionManagement> |
37 |
| - <snapshotRepository> |
38 |
| - <id>ossrh</id> |
39 |
| - <url>https://oss.sonatype.org/content/repositories/snapshots</url> |
40 |
| - </snapshotRepository> |
41 |
| - </distributionManagement> |
42 |
| - |
43 | 36 | <properties>
|
44 |
| - <nexus-staging-maven-plugin.version>1.7.0</nexus-staging-maven-plugin.version> |
45 | 37 | <maven-gpg-plugin.version>3.2.8</maven-gpg-plugin.version>
|
46 | 38 | <maven-source-plugin.version>3.3.1</maven-source-plugin.version>
|
47 | 39 | <maven-javadoc-plugin.version>3.11.2</maven-javadoc-plugin.version>
|
48 | 40 | <spotless.version>2.44.3</spotless.version>
|
| 41 | + <central-publishing-maven-plugin.version>0.8.0</central-publishing-maven-plugin.version> |
49 | 42 | </properties>
|
50 | 43 |
|
51 | 44 | <dependencyManagement>
|
|
109 | 102 | </plugin>
|
110 | 103 | </plugins>
|
111 | 104 | </build>
|
| 105 | + |
| 106 | + <profiles> |
| 107 | + <profile> |
| 108 | + <id>release</id> |
| 109 | + <build> |
| 110 | + <plugins> |
| 111 | + <plugin> |
| 112 | + <groupId>org.apache.maven.plugins</groupId> |
| 113 | + <artifactId>maven-surefire-plugin</artifactId> |
| 114 | + <configuration> |
| 115 | + <excludes> |
| 116 | + <exclude>**/*IT.java</exclude> |
| 117 | + <exclude>**/*E2E.java</exclude> |
| 118 | + <exclude>**/InformerRelatedBehaviorTest.java</exclude> |
| 119 | + </excludes> |
| 120 | + </configuration> |
| 121 | + </plugin> |
| 122 | + <plugin> |
| 123 | + <groupId>org.apache.maven.plugins</groupId> |
| 124 | + <artifactId>maven-javadoc-plugin</artifactId> |
| 125 | + <version>${maven-javadoc-plugin.version}</version> |
| 126 | + <executions> |
| 127 | + <execution> |
| 128 | + <id>attach-javadocs</id> |
| 129 | + <goals> |
| 130 | + <goal>jar</goal> |
| 131 | + </goals> |
| 132 | + </execution> |
| 133 | + </executions> |
| 134 | + </plugin> |
| 135 | + <plugin> |
| 136 | + <groupId>org.apache.maven.plugins</groupId> |
| 137 | + <artifactId>maven-source-plugin</artifactId> |
| 138 | + <version>${maven-source-plugin.version}</version> |
| 139 | + <executions> |
| 140 | + <execution> |
| 141 | + <id>attach-sources</id> |
| 142 | + <goals> |
| 143 | + <goal>jar</goal> |
| 144 | + </goals> |
| 145 | + <phase>verify</phase> |
| 146 | + </execution> |
| 147 | + </executions> |
| 148 | + </plugin> |
| 149 | + <plugin> |
| 150 | + <groupId>org.apache.maven.plugins</groupId> |
| 151 | + <artifactId>maven-gpg-plugin</artifactId> |
| 152 | + <executions> |
| 153 | + <execution> |
| 154 | + <id>sign-artifacts</id> |
| 155 | + <goals> |
| 156 | + <goal>sign</goal> |
| 157 | + </goals> |
| 158 | + <phase>verify</phase> |
| 159 | + <configuration> |
| 160 | + <gpgArguments> |
| 161 | + <arg>--pinentry-mode</arg> |
| 162 | + <arg>loopback</arg> |
| 163 | + </gpgArguments> |
| 164 | + </configuration> |
| 165 | + </execution> |
| 166 | + </executions> |
| 167 | + </plugin> |
| 168 | + <plugin> |
| 169 | + <groupId>org.sonatype.central</groupId> |
| 170 | + <artifactId>central-publishing-maven-plugin</artifactId> |
| 171 | + <version>${central-publishing-maven-plugin.version}</version> |
| 172 | + <extensions>true</extensions> |
| 173 | + <configuration> |
| 174 | + <publishingServerId>central</publishingServerId> |
| 175 | + <tokenAuth>true</tokenAuth> |
| 176 | + <autoPublish>true</autoPublish> |
| 177 | + <waitUntil>published</waitUntil> |
| 178 | + </configuration> |
| 179 | + </plugin> |
| 180 | + </plugins> |
| 181 | + </build> |
| 182 | + </profile> |
| 183 | + </profiles> |
112 | 184 | </project>
|
0 commit comments