Skip to content

Commit 361525e

Browse files
committed
Use maven shade plugin. Remove unused dependencies. Reformat classes
1 parent ef4b6fb commit 361525e

File tree

13 files changed

+44
-149
lines changed

13 files changed

+44
-149
lines changed

.gitignore

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -8,8 +8,9 @@
88
# virtual machine crash logs, see http://www.java.com/en/download/help/error_hotspot.xml
99
hs_err_pid*
1010

11-
#Maven Target
11+
#Maven
1212
target/
13+
dependency-reduced-pom.xml
1314

1415
#Eclipse files
1516
.project

allocations/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@
2929
<packaging>jar</packaging>
3030
<name>allocations</name>
3131

32-
<dependencies>
33-
<dependency>
34-
<groupId>com.beust</groupId>
35-
<artifactId>jcommander</artifactId>
36-
</dependency>
37-
</dependencies>
38-
39-
4032
<properties>
4133
<fully.qualified.main.class>com.github.chrishantha.sample.allocations.App</fully.qualified.main.class>
4234
</properties>

allocations/src/main/java/com/github/chrishantha/sample/allocations/App.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright 2017 M. Isuru Tharanga Chrishantha Perera
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

highcpu/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@
2929
<packaging>jar</packaging>
3030
<name>highcpu</name>
3131

32-
<dependencies>
33-
<dependency>
34-
<groupId>com.beust</groupId>
35-
<artifactId>jcommander</artifactId>
36-
</dependency>
37-
</dependencies>
38-
39-
4032
<properties>
4133
<fully.qualified.main.class>com.github.chrishantha.sample.highcpu.App</fully.qualified.main.class>
4234
</properties>

highcpu/src/main/java/com/github/chrishantha/sample/highcpu/App.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright 2015 M. Isuru Tharanga Chrishantha Perera
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

highcpu/src/main/java/com/github/chrishantha/sample/highcpu/HashingWorker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright 2015 M. Isuru Tharanga Chrishantha Perera
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

highcpu/src/main/java/com/github/chrishantha/sample/highcpu/MathWorker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright 2015 M. Isuru Tharanga Chrishantha Perera
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

highcpu/src/main/java/com/github/chrishantha/sample/highcpu/SleepingWorker.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright 2015 M. Isuru Tharanga Chrishantha Perera
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

hotmethods/pom.xml

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -29,14 +29,6 @@
2929
<packaging>jar</packaging>
3030
<name>hotmethods</name>
3131

32-
<dependencies>
33-
<dependency>
34-
<groupId>com.beust</groupId>
35-
<artifactId>jcommander</artifactId>
36-
</dependency>
37-
</dependencies>
38-
39-
4032
<properties>
4133
<fully.qualified.main.class>com.github.chrishantha.sample.hotmethods.App</fully.qualified.main.class>
4234
</properties>

hotmethods/src/main/java/com/github/chrishantha/sample/hotmethods/App.java

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
/*
22
* Copyright 2017 M. Isuru Tharanga Chrishantha Perera
3-
*
3+
*
44
* Licensed under the Apache License, Version 2.0 (the "License");
55
* you may not use this file except in compliance with the License.
66
* You may obtain a copy of the License at
7-
*
7+
*
88
* http://www.apache.org/licenses/LICENSE-2.0
9-
*
9+
*
1010
* Unless required by applicable law or agreed to in writing, software
1111
* distributed under the License is distributed on an "AS IS" BASIS,
1212
* WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.

0 commit comments

Comments
 (0)