time-transformer-agent
Used in:
components
- OverviewOverview
- VersionsVersions
- DependentsDependents
- DependenciesDependencies
<dependency> <groupId>com.topdesk</groupId> <artifactId>time-transformer-agent</artifactId> <version>2.1.0</version> </dependency>
<?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>open-source-parent</artifactId> <groupId>com.topdesk</groupId> <version>4.0.0</version> <relativePath>../pom.xml/pom.xml</relativePath> </parent> <modelVersion>4.0.0</modelVersion> <artifactId>time-transformer-agent</artifactId> <name>Time Transformer Agent</name> <version>2.1.0</version> <description>Instrumentation agent to change System.currentTimeMillis() and System.nanoTime() for testing purposes</description> <issueManagement> <system>GitHub</system> <url>https://github.com/TOPdesk/time-transformer-agent/issues</url> </issueManagement> <developers> <developer> <name>Joep Weijers</name> <email>j.weijers@topdesk.com</email> <organization>TOPdesk</organization> <organizationUrl>https://www.topdesk.com</organizationUrl> </developer> </developers> <scm> <connection>scm:git:https://github.com/TOPdesk/time-transformer-agent.git</connection> <developerConnection>scm:git:https://github.com/TOPdesk/time-transformer-agent.git</developerConnection> <tag>time-transformer-agent-2.1.0</tag> <url>https://github.com/topdesk/time-transformer-agent</url> </scm> <build> <plugins> <plugin> <artifactId>maven-dependency-plugin</artifactId> <executions> <execution> <goals> <goal>properties</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-failsafe-plugin</artifactId> <executions> <execution> <id>integration-test</id> <goals> <goal>integration-test</goal> </goals> <configuration> <excludes> <exclude>*ITWithTimeManipulation.java</exclude> </excludes> <argLine>-javaagent:${org.mockito:mockito-core:jar} -XX:+EnableDynamicAgentLoading</argLine> </configuration> </execution> <execution> <id>time-manipulated-integration-test</id> <goals> <goal>integration-test</goal> </goals> <configuration> <includes> <include>*ITWithTimeManipulation.java</include> </includes> <argLine>-javaagent:${project.build.directory}/${project.artifactId}-${project.version}.jar</argLine> </configuration> </execution> <execution> <id>verify</id> <goals> <goal>verify</goal> </goals> </execution> </executions> </plugin> <plugin> <artifactId>maven-jar-plugin</artifactId> <configuration> <archive> <manifest> <addClasspath>false</addClasspath> </manifest> <manifestEntries> <Premain-Class>com.topdesk.timetransformer.agent.InstrumentationAgent</Premain-Class> <Boot-Class-Path>${project.artifactId}-${project.version}.jar</Boot-Class-Path> <Can-Retransform-Classes>true</Can-Retransform-Classes> </manifestEntries> </archive> </configuration> </plugin> <plugin> <artifactId>maven-shade-plugin</artifactId> <version>3.6.0</version> <executions> <execution> <phase>package</phase> <goals> <goal>shade</goal> </goals> <configuration> <artifactSet> <includes> <include>org.ow2.asm:asm</include> </includes> </artifactSet> <relocations> <relocation> <pattern>org.objectweb.asm</pattern> <shadedPattern>org.shaded.asm</shadedPattern> </relocation> </relocations> <filters> <filter> <artifact>org.ow2.asm:asm</artifact> <excludes> <exclude>module-info.class</exclude> <exclude>META-INF/MANIFEST.MF</exclude> </excludes> </filter> </filters> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-enforcer-plugin</artifactId> <executions> <execution> <id>enforce-maven</id> <goals> <goal>enforce</goal> </goals> <configuration> <rules> <requireMavenVersion> <version>3.2.5</version> </requireMavenVersion> </rules> </configuration> </execution> </executions> </plugin> <plugin> <artifactId>maven-javadoc-plugin</artifactId> <configuration> <source>8</source> <doclint>all,-missing</doclint> </configuration> </plugin> </plugins> </build> <dependencies> <dependency> <groupId>org.junit.jupiter</groupId> <artifactId>junit-jupiter</artifactId> <version>5.11.4</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>junit-jupiter-api</artifactId> <groupId>org.junit.jupiter</groupId> </exclusion> <exclusion> <artifactId>junit-jupiter-params</artifactId> <groupId>org.junit.jupiter</groupId> </exclusion> <exclusion> <artifactId>junit-jupiter-engine</artifactId> <groupId>org.junit.jupiter</groupId> </exclusion> </exclusions> </dependency> <dependency> <groupId>net.bytebuddy</groupId> <artifactId>byte-buddy-agent</artifactId> <version>1.15.4</version> <scope>test</scope> </dependency> <dependency> <groupId>org.mockito</groupId> <artifactId>mockito-core</artifactId> <version>5.14.2</version> <scope>test</scope> <exclusions> <exclusion> <artifactId>byte-buddy</artifactId> <groupId>net.bytebuddy</groupId> </exclusion> <exclusion> <artifactId>objenesis</artifactId> <groupId>org.objenesis</groupId> </exclusion> </exclusions> </dependency> </dependencies> <dependencyManagement> <dependencies> <dependency> <groupId>org.junit</groupId> <artifactId>junit-bom</artifactId> <version>5.11.4</version> <type>pom</type> <scope>import</scope> </dependency> </dependencies> </dependencyManagement> <properties> <java.version>11</java.version> </properties> </project>