File tree Expand file tree Collapse file tree 6 files changed +8
-8
lines changed
src/main/java/fvarrui/maven/plugin/javapackager Expand file tree Collapse file tree 6 files changed +8
-8
lines changed Original file line number Diff line number Diff line change 47
47
<version >2.3.0</version >
48
48
</dependency >
49
49
<dependency >
50
- <groupId >commons-lang </groupId >
51
- <artifactId >commons-lang </artifactId >
52
- <version >2.2 </version >
50
+ <groupId >org.apache. commons</groupId >
51
+ <artifactId >commons-lang3 </artifactId >
52
+ <version >3.9 </version >
53
53
</dependency >
54
54
<dependency >
55
55
<groupId >commons-io</groupId >
Original file line number Diff line number Diff line change 1
1
package fvarrui .maven .plugin .javapackager ;
2
2
3
- import org .apache .commons .lang .SystemUtils ;
3
+ import org .apache .commons .lang3 .SystemUtils ;
4
4
5
5
public class Main {
6
6
Original file line number Diff line number Diff line change 17
17
import java .util .List ;
18
18
import java .util .Map ;
19
19
20
- import org .apache .commons .lang .SystemUtils ;
20
+ import org .apache .commons .lang3 .SystemUtils ;
21
21
import org .apache .maven .execution .MavenSession ;
22
22
import org .apache .maven .plugin .AbstractMojo ;
23
23
import org .apache .maven .plugin .BuildPluginManager ;
Original file line number Diff line number Diff line change 16
16
import java .nio .file .Files ;
17
17
18
18
import org .apache .commons .io .IOUtils ;
19
- import org .apache .commons .lang .StringUtils ;
19
+ import org .apache .commons .lang3 .StringUtils ;
20
20
import org .apache .maven .plugin .MojoExecutionException ;
21
21
22
22
Original file line number Diff line number Diff line change @@ -4,7 +4,7 @@ public class JavaUtils {
4
4
5
5
public static int getJavaMajorVersion () {
6
6
String version = System .getProperty ("java.version" );
7
- return Integer .parseInt (version .substring ( 0 , version . indexOf ( " ." )) );
7
+ return Integer .parseInt (version .split ( " \\ ." )[ 0 ] );
8
8
}
9
9
10
10
}
Original file line number Diff line number Diff line change 8
8
import java .util .Arrays ;
9
9
import java .util .List ;
10
10
11
- import org .apache .commons .lang .StringUtils ;
11
+ import org .apache .commons .lang3 .StringUtils ;
12
12
import org .apache .maven .plugin .MojoExecutionException ;
13
13
import org .codehaus .plexus .util .cli .CommandLineException ;
14
14
import org .codehaus .plexus .util .cli .Commandline ;
You can’t perform that action at this time.
0 commit comments