Repository navigation
Expand file tree
/
Copy pathpom.xml
More file actions
executable file
·269 lines (250 loc) · 12.2 KB
/
Copy pathpom.xml
File metadata and controls
executable file
·269 lines (250 loc) · 12.2 KB
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
195
196
197
198
199
200
201
202
203
204
205
206
207
208
209
210
211
212
213
214
215
216
217
218
219
220
221
222
223
224
225
226
227
228
229
230
231
232
233
234
235
236
237
238
239
240
241
242
243
244
245
246
247
248
249
250
251
252
253
254
255
256
257
258
259
260
261
262
263
264
265
266
267
268
269
<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>
<groupId>org.cloudsimplus</groupId>
<artifactId>cloudsimplus-benchmarks</artifactId>
<!--
The module version defines the version of CloudSim Plus to be used.
This way, it cannot be a version number which doesn't exist for CloudSim Plus.
-->
<version>9.0.0-SNAPSHOT</version>
<name>CloudSim Plus Benchmarks</name>
<description>A module containing benchmarks created using JMH (Java Microbenchmark Harness framework) to assess CloudSim Plus performance</description>
<url>https://cloudsimplus.org</url>
<inceptionYear>2016</inceptionYear>
<licenses>
<license>
<name>GPLv3</name>
<url>http://www.gnu.org/licenses/gpl-3.0.txt</url>
</license>
</licenses>
<developers>
<developer>
<name>Manoel Campos da Silva Filho</name>
<email>manoelcampos@gmail.com</email>
<organization>Instituto Federal de Educação Ciência e Tecnologia do Tocantins (IFTO)</organization>
<organizationUrl>http://www.ifto.edu.br</organizationUrl>
</developer>
</developers>
<scm>
<connection>scm:git:git@github.com:cloudsimplus/cloudsimplus-benchmarks.git</connection>
<developerConnection>scm:git:git@github.com:cloudsimplus/cloudsimplus-benchmarks.git</developerConnection>
<url>git@github.com:cloudsimplus/cloudsimplus-benchmarks.git</url>
</scm>
<issueManagement>
<url>https://github.com/cloudsimplus/cloudsimplus-benchmarks/issues</url>
<system>GitHub Issues</system>
</issueManagement>
<repositories>
<repository>
<!--
Maven Central repository for SNAPSHOT versions, enabling the use of CloudSim Plus
SNAPSHOT versions (such as 9.0.0-SNAPSHOT) before they are released.
Final versions are still downloaded from Maven Central, since releases are disabled here.
https://central.sonatype.org/publish/publish-portal-snapshots/
-->
<name>Central Portal Snapshots</name>
<id>central-portal-snapshots</id>
<url>https://central.sonatype.com/repository/maven-snapshots/</url>
<releases>
<enabled>false</enabled>
</releases>
<snapshots>
<enabled>true</enabled>
</snapshots>
</repository>
</repositories>
<dependencies>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-core</artifactId>
<version>1.35</version>
</dependency>
<dependency>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.35</version>
<scope>provided</scope>
</dependency>
<dependency>
<groupId>org.cloudsimplus</groupId>
<artifactId>cloudsimplus</artifactId>
<version>${cloudsimplus.version}</version>
<!-- Also brings logback (and slf4j-api), with the versions each CloudSim Plus version was built with -->
</dependency>
<dependency>
<!--
JSpecify annotations (such as @Nullable) to indicate values that may be null.
They are checked by NullAway at compile time.
https://jspecify.dev
-->
<groupId>org.jspecify</groupId>
<artifactId>jspecify</artifactId>
<version>${jspecify.version}</version>
</dependency>
</dependencies>
<properties>
<!-- CloudSim Plus version to benchmark. It can be changed by the cloudsimplus-8 profile. -->
<cloudsimplus.version>${project.version}</cloudsimplus.version>
<errorprone.version>2.50.0</errorprone.version>
<nullaway.version>0.14.2</nullaway.version>
<jspecify.version>1.0.0</jspecify.version>
<!-- Error Prone arguments (see maven-compiler-plugin). -->
<errorprone.args>-XepDisableWarningsInGeneratedCode -XepExcludedPaths:.*/target/generated-sources/.* -Xep:StringConcatToTextBlock:OFF</errorprone.args>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<!--
Name of the benchmark Uber-JAR to generate.
-->
<uberjar.name>${project.build.finalName}-uber</uberjar.name>
<license-maven-plugin.version>3.0</license-maven-plugin.version>
<!-- License file to be used by the com.mycila.license-maven-plugin -->
<copyrightfile>../COPYRIGHT</copyrightfile>
</properties>
<build>
<plugins>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>3.14.0</version>
<configuration>
<release>25</release>
<annotationProcessorPaths>
<path>
<groupId>org.openjdk.jmh</groupId>
<artifactId>jmh-generator-annprocess</artifactId>
<version>1.35</version>
</path>
<path>
<!--
Error Prone: Google's static analyzer that runs as a javac plugin,
finding common mistakes at compile time.
It is also the base to run NullAway.
StringConcatToTextBlock is disabled because it crashes on some string concatenations.
Requires the options in .mvn/jvm.config to work on JDK 16+.
https://errorprone.info
-->
<groupId>com.google.errorprone</groupId>
<artifactId>error_prone_core</artifactId>
<version>${errorprone.version}</version>
</path>
<path>
<!--
NullAway: Error Prone check that fails the build when a value
that may be null is used without a check, avoiding NullPointerException.
Just packages annotated with JSpecify @NullMarked (see package-info.java files) are checked.
Inside them, everything is considered non-null by default, unless annotated with @Nullable.
This way, classes from dependencies (such as CloudSim Plus) are considered unannotated.
https://github.com/uber/NullAway
-->
<groupId>com.uber.nullaway</groupId>
<artifactId>nullaway</artifactId>
<version>${nullaway.version}</version>
</path>
</annotationProcessorPaths>
<compilerArgs>
<!-- Error Prone and NullAway settings (see the comments in annotationProcessorPaths above). -->
<arg>-XDcompilePolicy=simple</arg>
<arg>--should-stop=ifError=FLOW</arg>
<arg>-Xplugin:ErrorProne ${errorprone.args} -Xep:NullAway:ERROR -XepOpt:NullAway:OnlyNullMarked=true</arg>
</compilerArgs>
</configuration>
</plugin>
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-shade-plugin</artifactId>
<version>3.2.4</version>
<executions>
<execution>
<phase>package</phase>
<goals>
<goal>shade</goal>
</goals>
<configuration>
<finalName>${uberjar.name}</finalName>
<transformers>
<transformer implementation="org.apache.maven.plugins.shade.resource.ManifestResourceTransformer">
<mainClass>org.openjdk.jmh.Main</mainClass>
</transformer>
</transformers>
<filters>
<filter>
<!--
Shading signed JARs will fail without this.
http://stackoverflow.com/questions/999489/invalid-signature-file-when-attempting-to-run-a-jar
-->
<artifact>*:*</artifact>
<excludes>
<exclude>META-INF/*.SF</exclude>
<exclude>META-INF/*.DSA</exclude>
<exclude>META-INF/*.RSA</exclude>
</excludes>
</filter>
</filters>
<shadedArtifactAttached>true</shadedArtifactAttached>
<!-- https://maven.apache.org/plugins/maven-shade-plugin/examples/attached-artifact.html -->
<!-- Can be any name that makes sense -->
<shadedClassifierName>jhm</shadedClassifierName>
</configuration>
</execution>
</executions>
</plugin>
<!-- Inherited from the parent pom. See the plugin there for more details. -->
<plugin>
<groupId>com.mycila</groupId>
<artifactId>license-maven-plugin</artifactId>
<version>${license-maven-plugin.version}</version>
<configuration>
<header>${copyrightfile}</header>
<mapping>
<java>SLASHSTAR_STYLE</java>
</mapping>
<strictCheck>true</strictCheck>
<failIfMissing>false</failIfMissing>
<excludes>
<exclude>**/src/main/resources/**</exclude>
<exclude>**/*.md</exclude>
<exclude>**/*.xml</exclude>
<exclude>**/package-info.java</exclude>
</excludes>
</configuration>
</plugin>
<plugin>
<!-- Checks if a required Maven version is being used to build the project -->
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-enforcer-plugin</artifactId>
<version>3.0.0-M3</version>
<executions>
<execution>
<id>enforce-versions</id>
<goals>
<goal>enforce</goal>
</goals>
<configuration>
<rules>
<requireMavenVersion>
<version>3.0.0</version>
</requireMavenVersion>
<requireJavaVersion>
<version>17</version>
</requireJavaVersion>
</rules>
</configuration>
</execution>
</executions>
</plugin>
</plugins>
</build>
<profiles>
<profile>
<!--
Builds the benchmarks with CloudSim Plus 8.5.1, to compare it with the current version
(e.g., to measure memory before the changes from cloudsimplus#586 using ListenersMemoryBenchmark):
./mvnw clean package -Pcloudsimplus-8
-->
<id>cloudsimplus-8</id>
<properties>
<cloudsimplus.version>8.5.1</cloudsimplus.version>
</properties>
</profile>
</profiles>
</project>