forked from pool/byte-buddy
This commit is contained in:
parent
4451e39718
commit
a07d793dcf
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:7ae2b39ac230be9e3e09ce020406c017ff8ceba06eaf078c62a88c218a0ff2b4
|
||||
size 4191680
|
@ -1,383 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/maven-v4_0_0.xsd">
|
||||
<parent>
|
||||
<artifactId>byte-buddy-parent</artifactId>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<version>1.14.4</version>
|
||||
</parent>
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
<artifactId>byte-buddy</artifactId>
|
||||
<name>Byte Buddy (without dependencies)</name>
|
||||
<description>Byte Buddy is a Java library for creating Java classes at run time.
|
||||
This artifact is a build of Byte Buddy with all ASM dependencies repackaged into its own name space.</description>
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<filtering>true</filtering>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
</resources>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${version.plugin.javadoc}</version>
|
||||
<configuration>
|
||||
<includeDependencySources>true</includeDependencySources>
|
||||
<dependencySourceIncludes>
|
||||
<dependencySourceInclude>${project.groupId}:byte-buddy-dep</dependencySourceInclude>
|
||||
</dependencySourceIncludes>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.pitest</groupId>
|
||||
<artifactId>pitest-maven</artifactId>
|
||||
<version>${version.plugin.pitest}</version>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>com.github.spotbugs</groupId>
|
||||
<artifactId>spotbugs-maven-plugin</artifactId>
|
||||
<version>${version.plugin.spotbugs}</version>
|
||||
<configuration>
|
||||
<skip>true</skip>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<artifactId>maven-jar-plugin</artifactId>
|
||||
<version>${version.plugin.jar}</version>
|
||||
<configuration>
|
||||
<archive>
|
||||
<manifestFile>${project.build.outputDirectory}/META-INF/MANIFEST.MF</manifestFile>
|
||||
</archive>
|
||||
</configuration>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>org.apache.felix</groupId>
|
||||
<artifactId>maven-bundle-plugin</artifactId>
|
||||
<version>${version.plugin.bundle}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>process-classes</phase>
|
||||
<goals>
|
||||
<goal>manifest</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<instructions>
|
||||
<Multi-Release>true</Multi-Release>
|
||||
<Export-Package>${packages.list.external}</Export-Package>
|
||||
</instructions>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
</plugin>
|
||||
<plugin>
|
||||
<groupId>codes.rafael.modulemaker</groupId>
|
||||
<artifactId>modulemaker-maven-plugin</artifactId>
|
||||
<version>${version.plugin.modulemaker}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>prepare-package</phase>
|
||||
<goals>
|
||||
<goal>make-module</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skip>${modulemaker.skip}</skip>
|
||||
<name>${project.groupId}</name>
|
||||
<version>${project.version}</version>
|
||||
<multirelease>true</multirelease>
|
||||
<packages>${packages.list.external},${packages.list.internal}</packages>
|
||||
<exports>${packages.list.external}</exports>
|
||||
<static-requires>java.instrument,
|
||||
java.management,
|
||||
jdk.unsupported,
|
||||
net.bytebuddy.agent,
|
||||
com.sun.jna,
|
||||
com.sun.jna.platform</static-requires>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>${version.asm}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
<profiles>
|
||||
<profile>
|
||||
<id>extras</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-source-plugin</artifactId>
|
||||
<version>3.2.1</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<goals>
|
||||
<goal>jar</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<skipSource>true</skipSource>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<configuration>
|
||||
<skipSource>true</skipSource>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>shade-current</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>3.3.0</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<shadedArtifactAttached>false</shadedArtifactAttached>
|
||||
<createDependencyReducedPom>true</createDependencyReducedPom>
|
||||
<createSourcesJar>true</createSourcesJar>
|
||||
<shadeSourcesContent>true</shadeSourcesContent>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>org.objectweb.asm</pattern>
|
||||
<shadedPattern>net.bytebuddy.jar.asm</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>net.bytebuddy:byte-buddy-dep:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
<exclude>META-INF/maven/**</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>org.ow2.asm:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
<exclude>**/module-info.class</exclude>
|
||||
<exclude>**/LICENSE</exclude>
|
||||
<exclude>**/NOTICE</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>org.ow2.asm:asm-commons</artifact>
|
||||
<includes>
|
||||
<include>org/objectweb/asm/commons/AnnotationRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/ClassRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/FieldRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/MethodRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/ModuleHashesAttribute.**</include>
|
||||
<include>org/objectweb/asm/commons/ModuleRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/RecordComponentRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/Remapper.**</include>
|
||||
<include>org/objectweb/asm/commons/SignatureRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/SimpleRemapper.**</include>
|
||||
</includes>
|
||||
</filter>
|
||||
</filters>
|
||||
<transformers>
|
||||
<transformer>
|
||||
<mainClass>net.bytebuddy.build.Plugin$Engine$Default</mainClass>
|
||||
</transformer>
|
||||
<transformer>
|
||||
<forShade>sources-jar</forShade>
|
||||
<manifestEntries />
|
||||
</transformer>
|
||||
<transformer>
|
||||
<resource>META-INF/LICENSE</resource>
|
||||
</transformer>
|
||||
</transformers>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>9.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-commons</artifactId>
|
||||
<version>9.5</version>
|
||||
<scope>compile</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
<profile>
|
||||
<id>shade-legacy</id>
|
||||
<build>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<artifactId>maven-shade-plugin</artifactId>
|
||||
<version>${version.plugin.shade}</version>
|
||||
<executions>
|
||||
<execution>
|
||||
<phase>package</phase>
|
||||
<goals>
|
||||
<goal>shade</goal>
|
||||
</goals>
|
||||
<configuration>
|
||||
<shadedArtifactAttached>false</shadedArtifactAttached>
|
||||
<createDependencyReducedPom>true</createDependencyReducedPom>
|
||||
<createSourcesJar>${bytebuddy.extras}</createSourcesJar>
|
||||
<shadeSourcesContent>true</shadeSourcesContent>
|
||||
<relocations>
|
||||
<relocation>
|
||||
<pattern>${shade.source}</pattern>
|
||||
<shadedPattern>${shade.target}</shadedPattern>
|
||||
</relocation>
|
||||
</relocations>
|
||||
<filters>
|
||||
<filter>
|
||||
<artifact>net.bytebuddy:byte-buddy-dep:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>org.ow2.asm:*</artifact>
|
||||
<excludes>
|
||||
<exclude>META-INF/MANIFEST.MF</exclude>
|
||||
<exclude>**/module-info.class</exclude>
|
||||
<exclude>**/LICENSE</exclude>
|
||||
<exclude>**/NOTICE</exclude>
|
||||
</excludes>
|
||||
</filter>
|
||||
<filter>
|
||||
<artifact>org.ow2.asm:asm-commons</artifact>
|
||||
<includes>
|
||||
<include>org/objectweb/asm/commons/AnnotationRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/ClassRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/FieldRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/MethodRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/ModuleHashesAttribute.**</include>
|
||||
<include>org/objectweb/asm/commons/ModuleRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/RecordComponentRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/Remapper.**</include>
|
||||
<include>org/objectweb/asm/commons/SignatureRemapper.**</include>
|
||||
<include>org/objectweb/asm/commons/SimpleRemapper.**</include>
|
||||
</includes>
|
||||
</filter>
|
||||
</filters>
|
||||
<transformers>
|
||||
<transformer>
|
||||
<mainClass>net.bytebuddy.build.Plugin$Engine$Default</mainClass>
|
||||
</transformer>
|
||||
<transformer>
|
||||
<resource>META-INF/LICENSE</resource>
|
||||
</transformer>
|
||||
</transformers>
|
||||
</configuration>
|
||||
</execution>
|
||||
</executions>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm</artifactId>
|
||||
<version>${version.asm}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.ow2.asm</groupId>
|
||||
<artifactId>asm-commons</artifactId>
|
||||
<version>${version.asm}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</build>
|
||||
</profile>
|
||||
</profiles>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>net.java.dev.jna</groupId>
|
||||
<artifactId>jna</artifactId>
|
||||
<version>5.12.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>net.java.dev.jna</groupId>
|
||||
<artifactId>jna-platform</artifactId>
|
||||
<version>5.12.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>findbugs-annotations</artifactId>
|
||||
<version>3.0.1</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.code.findbugs</groupId>
|
||||
<artifactId>jsr305</artifactId>
|
||||
<version>3.0.2</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
<properties>
|
||||
<japicmp.skip>true</japicmp.skip>
|
||||
<packages.list.external>net.bytebuddy,
|
||||
net.bytebuddy.agent.builder,
|
||||
net.bytebuddy.asm,
|
||||
net.bytebuddy.build,
|
||||
net.bytebuddy.description,
|
||||
net.bytebuddy.description.annotation,
|
||||
net.bytebuddy.description.enumeration,
|
||||
net.bytebuddy.description.field,
|
||||
net.bytebuddy.description.method,
|
||||
net.bytebuddy.description.modifier,
|
||||
net.bytebuddy.description.type,
|
||||
net.bytebuddy.dynamic,
|
||||
net.bytebuddy.dynamic.loading,
|
||||
net.bytebuddy.dynamic.scaffold,
|
||||
net.bytebuddy.dynamic.scaffold.inline,
|
||||
net.bytebuddy.dynamic.scaffold.subclass,
|
||||
net.bytebuddy.implementation,
|
||||
net.bytebuddy.implementation.attribute,
|
||||
net.bytebuddy.implementation.auxiliary,
|
||||
net.bytebuddy.implementation.bind,
|
||||
net.bytebuddy.implementation.bind.annotation,
|
||||
net.bytebuddy.implementation.bytecode,
|
||||
net.bytebuddy.implementation.bytecode.assign,
|
||||
net.bytebuddy.implementation.bytecode.assign.primitive,
|
||||
net.bytebuddy.implementation.bytecode.assign.reference,
|
||||
net.bytebuddy.implementation.bytecode.collection,
|
||||
net.bytebuddy.implementation.bytecode.constant,
|
||||
net.bytebuddy.implementation.bytecode.member,
|
||||
net.bytebuddy.matcher,
|
||||
net.bytebuddy.pool,
|
||||
net.bytebuddy.utility,
|
||||
net.bytebuddy.utility.nullability,
|
||||
net.bytebuddy.utility.privilege,
|
||||
net.bytebuddy.utility.visitor,
|
||||
${shade.target},
|
||||
${shade.target}.signature,
|
||||
${shade.target}.commons</packages.list.external>
|
||||
<shade.source>org.objectweb.asm</shade.source>
|
||||
<shade.target>net.bytebuddy.jar.asm</shade.target>
|
||||
<packages.list.internal>net.bytebuddy.utility.dispatcher</packages.list.internal>
|
||||
</properties>
|
||||
</project>
|
@ -1,3 +0,0 @@
|
||||
version https://git-lfs.github.com/spec/v1
|
||||
oid sha256:acdae6ef4609d3fbe7de4dfa8a5fe39a23386056ab67c16ead74e71519ddf477
|
||||
size 52145
|
@ -1,216 +0,0 @@
|
||||
<?xml version="1.0" encoding="UTF-8"?>
|
||||
<project xmlns="http://maven.apache.org/POM/4.0.0" xmlns:xsi="http://www.w3.org/2001/XMLSchema-instance" xsi:schemaLocation="http://maven.apache.org/POM/4.0.0 http://maven.apache.org/xsd/maven-4.0.0.xsd">
|
||||
<modelVersion>4.0.0</modelVersion>
|
||||
|
||||
<parent>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy-parent</artifactId>
|
||||
<version>1.14.4</version>
|
||||
</parent>
|
||||
|
||||
<artifactId>byte-buddy-maven-plugin</artifactId>
|
||||
<packaging>maven-plugin</packaging>
|
||||
|
||||
<name>Byte Buddy Maven plugin</name>
|
||||
<description>A plugin for post-processing class files via Byte Buddy in a Maven build.</description>
|
||||
|
||||
<properties>
|
||||
<version.maven>3.2.5</version.maven>
|
||||
<version.maven.annotation>3.5.2</version.maven.annotation>
|
||||
<version.maven.aether>1.1.0</version.maven.aether>
|
||||
<version.maven.plexus-build-api>0.0.7</version.maven.plexus-build-api>
|
||||
<version.maven.test>3.3.0</version.maven.test>
|
||||
<version.slf4j>1.7.36</version.slf4j>
|
||||
<version.maven.plexus-archiver>3.7.0</version.maven.plexus-archiver>
|
||||
<version.maven.plexus-util>3.4.2</version.maven.plexus-util>
|
||||
<version.commons-io>2.11.0</version.commons-io>
|
||||
<version.commons-compress>1.21</version.commons-compress>
|
||||
<version.guava>31.1-jre</version.guava>
|
||||
<japicmp.skip>true</japicmp.skip>
|
||||
</properties>
|
||||
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>${project.groupId}</groupId>
|
||||
<artifactId>byte-buddy</artifactId>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-plugin-api</artifactId>
|
||||
<version>${version.maven}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugin-tools</groupId>
|
||||
<artifactId>maven-plugin-annotations</artifactId>
|
||||
<version>${version.maven.annotation}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.aether</groupId>
|
||||
<artifactId>aether-api</artifactId>
|
||||
<version>${version.maven.aether}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-core</artifactId>
|
||||
<version>${version.maven}</version>
|
||||
<scope>provided</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.eclipse.aether</groupId>
|
||||
<artifactId>aether-util</artifactId>
|
||||
<version>${version.maven.aether}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.sonatype.plexus</groupId>
|
||||
<artifactId>plexus-build-api</artifactId>
|
||||
<version>${version.maven.plexus-build-api}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>junit</groupId>
|
||||
<artifactId>junit</artifactId>
|
||||
<version>${version.junit}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.mockito</groupId>
|
||||
<artifactId>mockito-core</artifactId>
|
||||
<version>${version.mockito}</version>
|
||||
<scope>test</scope>
|
||||
<exclusions>
|
||||
<exclusion>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy</artifactId>
|
||||
</exclusion>
|
||||
<exclusion>
|
||||
<groupId>net.bytebuddy</groupId>
|
||||
<artifactId>byte-buddy-agent</artifactId>
|
||||
</exclusion>
|
||||
</exclusions>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven</groupId>
|
||||
<artifactId>maven-compat</artifactId>
|
||||
<version>${version.maven}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.maven.plugin-testing</groupId>
|
||||
<artifactId>maven-plugin-testing-harness</artifactId>
|
||||
<version>${version.maven.test}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.slf4j</groupId>
|
||||
<artifactId>slf4j-nop</artifactId>
|
||||
<version>${version.slf4j}</version>
|
||||
<scope>test</scope>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
|
||||
<dependencyManagement>
|
||||
<dependencies>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-archiver</artifactId>
|
||||
<version>${version.maven.plexus-archiver}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.codehaus.plexus</groupId>
|
||||
<artifactId>plexus-utils</artifactId>
|
||||
<version>${version.maven.plexus-util}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>commons-io</groupId>
|
||||
<artifactId>commons-io</artifactId>
|
||||
<version>${version.commons-io}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>org.apache.commons</groupId>
|
||||
<artifactId>commons-compress</artifactId>
|
||||
<version>${version.commons-compress}</version>
|
||||
</dependency>
|
||||
<dependency>
|
||||
<groupId>com.google.guava</groupId>
|
||||
<artifactId>guava</artifactId>
|
||||
<version>${version.guava}</version>
|
||||
</dependency>
|
||||
</dependencies>
|
||||
</dependencyManagement>
|
||||
|
||||
<build>
|
||||
<resources>
|
||||
<resource>
|
||||
<directory>src/main/resources</directory>
|
||||
</resource>
|
||||
<resource>
|
||||
<directory>..</directory>
|
||||
<targetPath>META-INF</targetPath>
|
||||
<filtering>true</filtering>
|
||||
<includes>
|
||||
<include>LICENSE</include>
|
||||
<include>NOTICE</include>
|
||||
</includes>
|
||||
</resource>
|
||||
</resources>
|
||||
<pluginManagement>
|
||||
<plugins>
|
||||
<plugin>
|
||||
<groupId>org.apache.maven.plugins</groupId>
|
||||
<artifactId>maven-javadoc-plugin</artifactId>
|
||||
<version>${version.plugin.javadoc}</version>
|
||||
<configuration>
|
||||
<offlineLinks>
|
||||
<link>
|
||||
<url>https://javadoc.io/doc/net.bytebuddy/byte-buddy/${project.version}</url>
|
||||
<location>${project.basedir}/../byte-buddy/target/apidocs</location>
|
||||
</link>
|
||||
</offlineLinks>
|
||||
<links>
|
||||
<link>https://javadoc.io/doc/org.apache.maven/maven-core/${version.maven}</link>
|
||||
<link>https://javadoc.io/doc/org.apache.maven.plugin-tools/maven-plugin-annotations/${version.maven.annotation}</link>
|
||||
<link>https://javadoc.io/doc/org.eclipse.aether/aether-api/${version.maven.aether}</link>
|
||||
<link>https://javadoc.io/doc/org.sonatype.plexus/plexus-build-api/${version.maven.plexus-build-api}</link>
|
||||
</links>
|
||||
</configuration>
|
||||
</plugin>
|
||||
</plugins>
|
||||
</pluginManagement>
|
||||
</build>
|
||||
|
||||
<profiles>
|
||||
<!-- Runs the build with compatibility for Java 6 JVMs. -->
|
||||
<profile>
|
||||
<id>java6-compatibility</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<jdk>1.6</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<version.maven.plexus-archiver>2.1.1</version.maven.plexus-archiver>
|
||||
<version.maven.plexus-util>3.3.1</version.maven.plexus-util>
|
||||
<version.commons-io>2.5</version.commons-io>
|
||||
<version.commons-compress>1.12</version.commons-compress>
|
||||
<version.guava>20.0</version.guava>
|
||||
</properties>
|
||||
</profile>
|
||||
<!-- Runs the build with compatibility for Java 7 JVMs. -->
|
||||
<profile>
|
||||
<id>java7-compatibility</id>
|
||||
<activation>
|
||||
<activeByDefault>false</activeByDefault>
|
||||
<jdk>1.7</jdk>
|
||||
</activation>
|
||||
<properties>
|
||||
<version.maven.plexus-archiver>2.11</version.maven.plexus-archiver>
|
||||
<version.maven.plexus-util>3.3.1</version.maven.plexus-util>
|
||||
<version.commons-io>2.6</version.commons-io>
|
||||
<version.commons-compress>1.20</version.commons-compress>
|
||||
<version.guava>16.0.1</version.guava>
|
||||
<version.guava>20.0</version.guava>
|
||||
</properties>
|
||||
</profile>
|
||||
</profiles>
|
||||
|
||||
</project>
|
@ -24,11 +24,10 @@
|
||||
%bcond_with bootstrap
|
||||
%endif
|
||||
%if %{with bootstrap}
|
||||
%global name %{base_name}-%{flavor}
|
||||
Name: %{base_name}-bootstrap
|
||||
%else
|
||||
%global name %{base_name}
|
||||
Name: %{base_name}
|
||||
%endif
|
||||
Name: %{name}
|
||||
Version: 1.14.4
|
||||
Release: 0
|
||||
Summary: Runtime code generation for the Java virtual machine
|
||||
@ -36,25 +35,31 @@ License: Apache-2.0
|
||||
Group: Development/Libraries/Java
|
||||
URL: https://bytebuddy.net/
|
||||
Source0: https://github.com/raphw/%{base_name}/archive/refs/tags/%{base_name}-%{version}.tar.gz
|
||||
Source1: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}-maven-plugin/%{version}/%{base_name}-maven-plugin-%{version}.jar
|
||||
Source2: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}-maven-plugin/%{version}/%{base_name}-maven-plugin-%{version}.pom
|
||||
Source3: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}/%{version}/%{base_name}-%{version}.jar
|
||||
Source4: https://repo1.maven.org/maven2/net/bytebuddy/%{base_name}/%{version}/%{base_name}-%{version}.pom
|
||||
BuildRequires: maven-local
|
||||
BuildArch: noarch
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: %{base_name}-bootstrap
|
||||
BuildRequires: mvn(cglib:cglib-nodep)
|
||||
BuildRequires: maven-local
|
||||
BuildRequires: mvn(codes.rafael.modulemaker:modulemaker-maven-plugin)
|
||||
BuildRequires: mvn(com.google.code.findbugs:jsr305)
|
||||
BuildRequires: mvn(net.java.dev.jna:jna)
|
||||
BuildRequires: mvn(net.java.dev.jna:jna-platform)
|
||||
BuildRequires: mvn(net.sourceforge.findbugs:annotations)
|
||||
BuildRequires: mvn(org.apache.felix:maven-bundle-plugin)
|
||||
BuildRequires: mvn(org.apache.maven:maven-core)
|
||||
BuildRequires: mvn(org.apache.maven:maven-plugin-api)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-plugin-plugin)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin)
|
||||
BuildRequires: mvn(org.javassist:javassist)
|
||||
BuildRequires: mvn(org.openjdk.jmh:jmh-core)
|
||||
BuildRequires: mvn(org.openjdk.jmh:jmh-generator-annprocess)
|
||||
BuildRequires: mvn(org.apache.maven.plugins:maven-shade-plugin) >= 3.3.0
|
||||
BuildRequires: mvn(org.apache.maven.plugin-tools:maven-plugin-annotations)
|
||||
BuildRequires: mvn(org.eclipse.aether:aether-api)
|
||||
BuildRequires: mvn(org.eclipse.aether:aether-util)
|
||||
BuildRequires: mvn(org.ow2.asm:asm)
|
||||
BuildRequires: mvn(org.ow2.asm:asm-commons)
|
||||
BuildRequires: mvn(org.sonatype.plexus:plexus-build-api)
|
||||
%if %{without bootstrap}
|
||||
BuildRequires: %{base_name}-bootstrap
|
||||
Obsoletes: %{base_name}-bootstrap
|
||||
Conflicts: %{base_name}-bootstrap
|
||||
%else
|
||||
Conflicts: %{base_name}
|
||||
%endif
|
||||
|
||||
%description
|
||||
@ -77,56 +82,36 @@ API documentation for %{name}.
|
||||
%endif
|
||||
|
||||
%prep
|
||||
%setup -q -n %{base_name}-%{base_name}-%{version}
|
||||
|
||||
%pom_disable_module %{base_name}-android
|
||||
%pom_disable_module %{base_name}-android-test
|
||||
%pom_disable_module %{base_name}-benchmark
|
||||
%pom_disable_module %{base_name}-gradle-plugin
|
||||
%if %{with bootstrap}
|
||||
cp %{SOURCE2} %{SOURCE4} .
|
||||
%pom_xpath_set 'pom:project/pom:artifactId' '%{base_name}-maven-plugin-bootstrap' \
|
||||
%{base_name}-maven-plugin-%{version}.pom
|
||||
%pom_xpath_set 'pom:project/pom:artifactId' '%{base_name}-bootstrap' \
|
||||
%{base_name}-%{version}.pom
|
||||
|
||||
%pom_xpath_set 'pom:dependency/pom:artifactId[text()="%{base_name}"]' '%{base_name}-bootstrap' \
|
||||
%{base_name}-maven-plugin-%{version}.pom
|
||||
%else
|
||||
%setup -q -n %{name}-%{name}-%{version}
|
||||
|
||||
%pom_disable_module %{name}-android
|
||||
%pom_disable_module %{name}-android-test
|
||||
%pom_disable_module %{name}-benchmark
|
||||
%pom_disable_module %{name}-gradle-plugin
|
||||
%pom_disable_module %{base_name}-agent
|
||||
%pom_remove_plugin :%{base_name}-maven-plugin %{base_name}-dep
|
||||
%endif
|
||||
|
||||
%pom_remove_plugin org.sonatype.plugins:nexus-staging-maven-plugin
|
||||
%pom_remove_plugin com.mycila:license-maven-plugin
|
||||
|
||||
%pom_remove_dep com.google.code.findbugs:findbugs-annotations
|
||||
%pom_add_dep net.sourceforge.findbugs:annotations
|
||||
%pom_add_dep net.sourceforge.findbugs:annotations byte-buddy-dep
|
||||
|
||||
%pom_xpath_set 'pom:plugin/pom:artifactId[text()="byte-buddy-maven-plugin"]' \
|
||||
'%{base_name}-maven-plugin-bootstrap' %{base_name}-dep
|
||||
%pom_xpath_set 'pom:transformation/pom:artifactId[text()="byte-buddy"]' \
|
||||
'%{base_name}-bootstrap' %{base_name}-dep
|
||||
|
||||
%pom_xpath_remove 'pom:forShade' %{base_name}
|
||||
|
||||
%endif
|
||||
%pom_change_dep -r com.google.code.findbugs:findbugs-annotations \
|
||||
net.sourceforge.findbugs:annotations
|
||||
|
||||
%build
|
||||
%if %{without bootstrap}
|
||||
%{mvn_build} -f -- -Dsource=8
|
||||
%{mvn_build} -f \
|
||||
%if %{with bootstrap}
|
||||
-j \
|
||||
%endif
|
||||
-- -Dsource=8
|
||||
|
||||
%install
|
||||
%if %{with bootstrap}
|
||||
%{mvn_artifact} --skip-dependencies %{base_name}-maven-plugin-%{version}.pom %{SOURCE1}
|
||||
%{mvn_artifact} --skip-dependencies %{base_name}-%{version}.pom %{SOURCE3}
|
||||
%endif
|
||||
%mvn_install
|
||||
|
||||
%files -f .mfiles
|
||||
%if %{without bootstrap}
|
||||
%license LICENSE NOTICE
|
||||
%doc README.md
|
||||
%endif
|
||||
|
||||
%if %{without bootstrap}
|
||||
%files javadoc -f .mfiles-javadoc
|
||||
|
Loading…
Reference in New Issue
Block a user