|
38 | 38 | <dependency> |
39 | 39 | <groupId>org.slf4j</groupId> |
40 | 40 | <artifactId>slf4j-jdk14</artifactId> |
| 41 | + <scope>test</scope> |
41 | 42 | </dependency> |
42 | 43 |
|
43 | 44 | <dependency> |
|
62 | 63 | <scope>import</scope> |
63 | 64 | </dependency> |
64 | 65 |
|
| 66 | + <!-- Test dependencies --> |
65 | 67 | <dependency> |
66 | 68 | <groupId>org.slf4j</groupId> |
67 | 69 | <artifactId>slf4j-jdk14</artifactId> |
68 | 70 | <version>${slf4j.version}</version> |
69 | 71 | </dependency> |
70 | | - |
71 | | - <!-- Test dependencies --> |
72 | 72 | <dependency> |
73 | 73 | <groupId>org.junit.jupiter</groupId> |
74 | 74 | <artifactId>junit-jupiter-params</artifactId> |
|
77 | 77 | </dependencies> |
78 | 78 | </dependencyManagement> |
79 | 79 |
|
| 80 | + <profiles> |
| 81 | + <profile> |
| 82 | + <id>uberjar</id> |
| 83 | + <build> |
| 84 | + <plugins> |
| 85 | + <!-- Uber JAR creation --> |
| 86 | + <plugin> |
| 87 | + <groupId>org.apache.maven.plugins</groupId> |
| 88 | + <artifactId>maven-shade-plugin</artifactId> |
| 89 | + </plugin> |
| 90 | + </plugins> |
| 91 | + </build> |
| 92 | + </profile> |
| 93 | + </profiles> |
| 94 | + |
80 | 95 | <build> |
81 | 96 | <resources> |
82 | 97 | <resource> |
|
85 | 100 | </resource> |
86 | 101 | </resources> |
87 | 102 | <plugins> |
88 | | - <!-- Uber JAR creation --> |
89 | | - <plugin> |
90 | | - <groupId>org.apache.maven.plugins</groupId> |
91 | | - <artifactId>maven-shade-plugin</artifactId> |
92 | | - </plugin> |
93 | | - |
94 | 103 | <!-- Code Coverage report generation --> |
95 | 104 | <plugin> |
96 | 105 | <groupId>org.jacoco</groupId> |
|
101 | 110 | <pluginManagement> |
102 | 111 | <plugins> |
103 | 112 | <plugin> |
| 113 | + <groupId>org.apache.maven.plugins</groupId> |
104 | 114 | <artifactId>maven-surefire-plugin</artifactId> |
105 | | - <version>3.0.0-M9</version> |
106 | | - |
| 115 | + <version>3.0.0</version> |
107 | 116 | <configuration> |
108 | 117 | <environmentVariables> |
109 | 118 | <TESTCONTAINERS_REUSE_ENABLE>true</TESTCONTAINERS_REUSE_ENABLE> |
|
131 | 140 | <artifactId>maven-shade-plugin</artifactId> |
132 | 141 | <version>3.4.0</version> |
133 | 142 | <configuration> |
| 143 | + <minimizeJar>true</minimizeJar> |
134 | 144 | <shadedArtifactAttached>true</shadedArtifactAttached> |
| 145 | + <shadedClassifierName>full</shadedClassifierName> |
135 | 146 | <promoteTransitiveDependencies>true</promoteTransitiveDependencies> |
136 | | - <shadedClassifierName>shaded</shadedClassifierName> |
137 | | - <createDependencyReducedPom>false</createDependencyReducedPom> |
| 147 | + <createDependencyReducedPom>true</createDependencyReducedPom> |
| 148 | + <dependencyReducedPomLocation>${project.build.directory}/dependency-reduced-pom.xml</dependencyReducedPomLocation> |
| 149 | + |
138 | 150 | <transformers> |
139 | 151 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheLicenseResourceTransformer" /> |
140 | 152 | <transformer implementation="org.apache.maven.plugins.shade.resource.ApacheNoticeResourceTransformer" /> |
|
169 | 181 | <exclude>META-INF/*.RSA</exclude> |
170 | 182 | </excludes> |
171 | 183 | </filter> |
172 | | - <filter> |
173 | | - <artifact>com.yandex.cloud:java-genproto</artifact> |
174 | | - <includes> |
175 | | - <include>yandex/cloud/api/*.class</include> |
176 | | - <include>yandex/cloud/api/iam/**</include> |
177 | | - </includes> |
178 | | - </filter> |
179 | | - <filter> |
180 | | - <artifact>tech.ydb:ydb-proto-api</artifact> |
181 | | - <includes> |
182 | | - <include>tech/ydb/*.class</include> |
183 | | - <include>tech/ydb/common/**</include> |
184 | | - <include>tech/ydb/discovery/**</include> |
185 | | - <include>tech/ydb/formats/**</include> |
186 | | - <include>tech/ydb/table/**</include> |
187 | | - <include>tech/ydb/scheme/**</include> |
188 | | - </includes> |
189 | | - </filter> |
190 | 184 | </filters> |
191 | 185 | </configuration> |
192 | 186 | <executions> |
|
0 commit comments