File tree Expand file tree Collapse file tree 3 files changed +22
-10
lines changed
pulse.sample.bizcounter/java-sample
src/main/java/scouterx/pulse/sample/bizcounter Expand file tree Collapse file tree 3 files changed +22
-10
lines changed Original file line number Diff line number Diff line change 1010
1111 <properties >
1212 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
13- <maven .compiler.source>1.8</maven .compiler.source>
14- <maven .compiler.target>1.8</maven .compiler.target>
1513 </properties >
1614
1715 <dependencies >
3028 <artifactId >gson</artifactId >
3129 <version >2.6.2</version >
3230 </dependency >
33- <dependency >
34- <groupId >com.squareup.okhttp</groupId >
35- <artifactId >okhttp</artifactId >
36- <version >2.7.5</version >
37- </dependency >
3831 <dependency >
3932 <groupId >commons-cli</groupId >
4033 <artifactId >commons-cli</artifactId >
Original file line number Diff line number Diff line change 1212
1313 <properties >
1414 <project .build.sourceEncoding>UTF-8</project .build.sourceEncoding>
15- <maven .compiler.source>1.8</maven .compiler.source>
16- <maven .compiler.target>1.8</maven .compiler.target>
1715 </properties >
1816
1917 <dependencies >
4644 <target >1.8</target >
4745 </configuration >
4846 </plugin >
47+ <plugin >
48+ <groupId >org.apache.maven.plugins</groupId >
49+ <artifactId >maven-shade-plugin</artifactId >
50+ <version >2.4.3</version >
51+ <configuration >
52+ <transformers >
53+ <transformer
54+ implementation =" org.apache.maven.plugins.shade.resource.ManifestResourceTransformer" >
55+ <mainClass >scouterx.pulse.sample.bizcounter.App</mainClass >
56+ </transformer >
57+ </transformers >
58+ </configuration >
59+ <executions >
60+ <execution >
61+ <phase >package</phase >
62+ <goals >
63+ <goal >shade</goal >
64+ </goals >
65+ </execution >
66+ </executions >
67+ </plugin >
4968 <plugin >
5069 <groupId >org.apache.maven.plugins</groupId >
5170 <artifactId >maven-dependency-plugin</artifactId >
Original file line number Diff line number Diff line change @@ -118,7 +118,7 @@ private float getRandomSample2(String type) {
118118 prev .put (type , value );
119119 }
120120
121- value = value + (float ) Math .random () * value / 20 ;
121+ value = value + (float ) Math .random () * 30 ;
122122 prev2 .put (type , value );
123123
124124 return value ;
You can’t perform that action at this time.
0 commit comments