File tree Expand file tree Collapse file tree 5 files changed +47
-5
lines changed Expand file tree Collapse file tree 5 files changed +47
-5
lines changed Original file line number Diff line number Diff line change
1
+ version : 2
2
+
3
+ jobs :
4
+ build :
5
+ docker :
6
+ - image : circleci/openjdk:8
7
+ steps :
8
+ - checkout
9
+ - restore_cache :
10
+ key : java-snapshot-matcher-{{ checksum "snapshot-matcher/pom.xml" }}-{{ checksum "snapshot-matcher-example/pom.xml" }}
11
+ - run : cd snapshot-matcher && mvn dependency:go-offline
12
+ - run : cd snapshot-matcher && mvn install
13
+ - run : cd snapshot-matcher-example && mvn dependency:go-offline
14
+ - run : cd snapshot-matcher-example && mvn test
15
+ - save_cache :
16
+ paths :
17
+ - ~/.m2
18
+ key : java-snapshot-matcher-{{ checksum "snapshot-matcher/pom.xml" }}-{{ checksum "snapshot-matcher-example/pom.xml" }}
19
+ - store_test_results :
20
+ path : snapshot-matcher-example/target/surefire-reports
Original file line number Diff line number Diff line change 8
8
<artifactId >snapshot-matcher-example</artifactId >
9
9
<version >1.0-SNAPSHOT</version >
10
10
11
+ <properties >
12
+ <jdk .version>1.8</jdk .version>
13
+ <maven-compiler-plugin .version>3.1</maven-compiler-plugin .version>
14
+ </properties >
15
+
16
+ <build >
17
+ <plugins >
18
+ <plugin >
19
+ <groupId >org.apache.maven.plugins</groupId >
20
+ <artifactId >maven-compiler-plugin</artifactId >
21
+ <version >${maven-compiler-plugin.version} </version >
22
+ <configuration >
23
+ <source >${jdk.version} </source >
24
+ <target >${jdk.version} </target >
25
+ </configuration >
26
+ </plugin >
27
+ </plugins >
28
+ </build >
29
+
11
30
<dependencies >
12
31
<dependency >
13
32
<groupId >junit</groupId >
14
33
<artifactId >junit</artifactId >
15
- <version >RELEASE</version >
34
+ <version >4.12</version >
35
+ <scope >test</scope >
16
36
</dependency >
17
37
18
38
<dependency >
Original file line number Diff line number Diff line change 1
1
<?xml version =" 1.0" encoding =" UTF-8" ?>
2
2
<module org.jetbrains.idea.maven.project.MavenProjectsManager.isMavenModule=" true" type =" JAVA_MODULE" version =" 4" >
3
- <component name =" NewModuleRootManager" LANGUAGE_LEVEL =" JDK_1_5 " >
3
+ <component name =" NewModuleRootManager" LANGUAGE_LEVEL =" JDK_1_8 " >
4
4
<output url =" file://$MODULE_DIR$/target/classes" />
5
5
<output-test url =" file://$MODULE_DIR$/target/test-classes" />
6
6
<content url =" file://$MODULE_DIR$" >
12
12
</content >
13
13
<orderEntry type =" inheritedJdk" />
14
14
<orderEntry type =" sourceFolder" forTests =" false" />
15
- <orderEntry type =" library" name =" Maven: junit:junit:4.12" level =" project" />
16
- <orderEntry type =" library" name =" Maven: org.hamcrest:hamcrest-core:1.3" level =" project" />
15
+ <orderEntry type =" library" scope = " TEST " name =" Maven: junit:junit:4.12" level =" project" />
16
+ <orderEntry type =" library" scope = " TEST " name =" Maven: org.hamcrest:hamcrest-core:1.3" level =" project" />
17
17
<orderEntry type =" module" module-name =" snapshot-matcher" />
18
18
<orderEntry type =" library" name =" Maven: com.googlecode.java-diff-utils:diffutils:1.3.0" level =" project" />
19
19
<orderEntry type =" library" name =" Maven: org.hamcrest:hamcrest-all:1.3" level =" project" />
Original file line number Diff line number Diff line change 14
14
<jackson .version>2.4.6</jackson .version>
15
15
<diffutils .version>1.3.0</diffutils .version>
16
16
<hamcrest .version>1.3</hamcrest .version>
17
+ <maven-compiler-plugin .version>3.1</maven-compiler-plugin .version>
17
18
</properties >
18
19
19
20
<build >
20
21
<plugins >
21
22
<plugin >
22
23
<groupId >org.apache.maven.plugins</groupId >
23
24
<artifactId >maven-compiler-plugin</artifactId >
25
+ <version >${maven-compiler-plugin.version} </version >
24
26
<configuration >
25
27
<source >${jdk.version} </source >
26
28
<target >${jdk.version} </target >
You can’t perform that action at this time.
0 commit comments