Skip to content

Commit

Permalink
Updating dependencies + adding build and run scripts
Browse files Browse the repository at this point in the history
  • Loading branch information
jbarrez committed Jun 24, 2015
1 parent 05e94c9 commit 90b6bdc
Show file tree
Hide file tree
Showing 4 changed files with 32 additions and 13 deletions.
4 changes: 3 additions & 1 deletion .gitignore
@@ -1 +1,3 @@
target/*
target/*
.idea
basic-benchmark.iml
1 change: 1 addition & 0 deletions build.sh
@@ -0,0 +1 @@
mvn clean package shade:shade
36 changes: 24 additions & 12 deletions pom.xml
Expand Up @@ -5,16 +5,28 @@
<artifactId>basic-benchmark</artifactId>
<version>1.0</version>

<properties>
<activiti.version>5.17.0</activiti.version>
<spring.version>4.1.5.RELEASE</spring.version>
</properties>

<dependencies>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-engine</artifactId>
<version>5.16.4</version>
<version>${activiti.version}</version>
<exclusions>
<exclusion>
<!-- Got some issues with the shaded jar and email. Excluded it, as email is not used in benchmark -->
<groupId>org.apache.commons</groupId>
<artifactId>commons-email</artifactId>
</exclusion>
</exclusions>
</dependency>
<dependency>
<groupId>org.activiti</groupId>
<artifactId>activiti-spring</artifactId>
<version>5.16.4</version>
<version>${activiti.version}</version>
</dependency>
<dependency>
<groupId>com.h2database</groupId>
Expand All @@ -24,7 +36,7 @@
<dependency>
<groupId>mysql</groupId>
<artifactId>mysql-connector-java</artifactId>
<version>5.1.27</version>
<version>5.1.35</version>
</dependency>
<dependency>
<groupId>postgresql</groupId>
Expand All @@ -34,22 +46,22 @@
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-context</artifactId>
<version>4.0.6.RELEASE</version>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-jdbc</artifactId>
<version>4.0.6.RELEASE</version>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-tx</artifactId>
<version>4.0.6.RELEASE</version>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.springframework</groupId>
<artifactId>spring-orm</artifactId>
<version>4.0.6.RELEASE</version>
<version>${spring.version}</version>
</dependency>
<dependency>
<groupId>org.apache.commons</groupId>
Expand All @@ -62,9 +74,9 @@
<version>1.4</version>
</dependency>
<dependency>
<groupId>c3p0</groupId>
<groupId>com.mchange</groupId>
<artifactId>c3p0</artifactId>
<version>0.9.1.2</version>
<version>0.9.5.1</version>
</dependency>
<dependency>
<groupId>com.jolbox</groupId>
Expand All @@ -89,7 +101,7 @@
<dependency>
<groupId>com.fasterxml.uuid</groupId>
<artifactId>java-uuid-generator</artifactId>
<version>3.1.3</version>
<version>3.1.4</version>
</dependency>
</dependencies>

Expand All @@ -109,8 +121,8 @@
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.2</version>
<configuration>
<source>1.6</source>
<target>1.6</target>
<source>1.8</source>
<target>1.8</target>
<showDeprecation>true</showDeprecation>
<showWarnings>true</showWarnings>
<optimize>true</optimize>
Expand Down
4 changes: 4 additions & 0 deletions run.sh
@@ -0,0 +1,4 @@
cd target
mysql -u alfresco -palfresco -e "DROP SCHEMA benchmark"
mysql -u alfresco -palfresco -e "CREATE SCHEMA benchmark DEFAULT CHARACTER SET utf8 COLLATE utf8_bin"
java -Xms512M -Xmx2048M -DjdbcUrl=jdbc:mysql://localhost:3306/benchmark?characterEncoding=UTF-8 -DjdbcUsername=alfresco -DjdbcPassword=alfresco -DjdbcDriver=com.mysql.jdbc.Driver -Dhistory=none -Dconfig=spring -jar activiti-basic-benchmark.jar 500 8

0 comments on commit 90b6bdc

Please sign in to comment.