mirror of
https://github.com/fankes/moshi.git
synced 2025-10-20 00:19:21 +08:00
Shade kotlinpoet-metadata and kotlinx-metadata (#936)
* Shade kotlinpoet-metadata and kotlinx-metadata * Relocate KotlinPoet's shaded autocommon dep too
This commit is contained in:
@@ -30,7 +30,7 @@
|
|||||||
<dependency>
|
<dependency>
|
||||||
<groupId>org.jetbrains.kotlinx</groupId>
|
<groupId>org.jetbrains.kotlinx</groupId>
|
||||||
<artifactId>kotlinx-metadata-jvm</artifactId>
|
<artifactId>kotlinx-metadata-jvm</artifactId>
|
||||||
<version>0.1.0</version>
|
<version>${kotlinx-metadata.version}</version>
|
||||||
</dependency>
|
</dependency>
|
||||||
<dependency>
|
<dependency>
|
||||||
<groupId>com.squareup</groupId>
|
<groupId>com.squareup</groupId>
|
||||||
@@ -185,6 +185,51 @@
|
|||||||
<useManifestOnlyJar>false</useManifestOnlyJar>
|
<useManifestOnlyJar>false</useManifestOnlyJar>
|
||||||
</configuration>
|
</configuration>
|
||||||
</plugin>
|
</plugin>
|
||||||
|
<plugin>
|
||||||
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
|
<artifactId>maven-shade-plugin</artifactId>
|
||||||
|
<version>3.2.0</version>
|
||||||
|
<executions>
|
||||||
|
<execution>
|
||||||
|
<phase>package</phase>
|
||||||
|
<goals>
|
||||||
|
<goal>shade</goal>
|
||||||
|
</goals>
|
||||||
|
<configuration>
|
||||||
|
<artifactSet>
|
||||||
|
<includes>
|
||||||
|
<include>com.squareup:kotlinpoet-metadata</include>
|
||||||
|
<include>com.squareup:kotlinpoet-metadata-specs</include>
|
||||||
|
<include>com.squareup:kotlinpoet-classinspector-elements</include>
|
||||||
|
<include>org.jetbrains.kotlinx:kotlinx-metadata-jvm</include>
|
||||||
|
</includes>
|
||||||
|
</artifactSet>
|
||||||
|
<transformers>
|
||||||
|
<transformer implementation="org.apache.maven.plugins.shade.resource.ServicesResourceTransformer" />
|
||||||
|
</transformers>
|
||||||
|
<relocations>
|
||||||
|
<!-- Repackage KotlinPoet-metadata and kotlinx-metadata until their APIs are stable. -->
|
||||||
|
<relocation>
|
||||||
|
<pattern>com.squareup.kotlinpoet.metadata</pattern>
|
||||||
|
<shadedPattern>com.squareup.moshi.kotlinpoet.metadata</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>com.squareup.kotlinpoet.classinspector</pattern>
|
||||||
|
<shadedPattern>com.squareup.moshi.kotlinpoet.classinspector</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>kotlinpoet.classinspector.elements.shaded</pattern>
|
||||||
|
<shadedPattern>com.squareup.moshi.kotlinpoet.classinspector.elements.shaded</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
<relocation>
|
||||||
|
<pattern>kotlinx.metadata</pattern>
|
||||||
|
<shadedPattern>com.squareup.moshi.kotlinx.metadata</shadedPattern>
|
||||||
|
</relocation>
|
||||||
|
</relocations>
|
||||||
|
</configuration>
|
||||||
|
</execution>
|
||||||
|
</executions>
|
||||||
|
</plugin>
|
||||||
<plugin>
|
<plugin>
|
||||||
<groupId>org.apache.maven.plugins</groupId>
|
<groupId>org.apache.maven.plugins</groupId>
|
||||||
<artifactId>maven-assembly-plugin</artifactId>
|
<artifactId>maven-assembly-plugin</artifactId>
|
||||||
|
1
pom.xml
1
pom.xml
@@ -38,6 +38,7 @@
|
|||||||
<okio2.version>2.1.0</okio2.version>
|
<okio2.version>2.1.0</okio2.version>
|
||||||
<kotlin.version>1.3.40</kotlin.version>
|
<kotlin.version>1.3.40</kotlin.version>
|
||||||
<kotlinpoet.version>1.4.0</kotlinpoet.version>
|
<kotlinpoet.version>1.4.0</kotlinpoet.version>
|
||||||
|
<kotlinx-metadata.version>0.1.0</kotlinx-metadata.version>
|
||||||
<maven-assembly.version>3.1.0</maven-assembly.version>
|
<maven-assembly.version>3.1.0</maven-assembly.version>
|
||||||
|
|
||||||
<!-- Test Dependencies -->
|
<!-- Test Dependencies -->
|
||||||
|
Reference in New Issue
Block a user