Skip to content

Commit 916fdf2

Browse files
authored
Merge pull request #18 from JacksonTian/fix
Fix maven compile issue
2 parents 98ac567 + 7495836 commit 916fdf2

File tree

5 files changed

+17
-8
lines changed

5 files changed

+17
-8
lines changed

.travis.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,9 @@
11
language: java
22
sudo: false # faster builds
33

4+
jdk:
5+
- oraclejdk11
6+
- oraclejdk14
7+
48
after_success:
59
- bash <(curl -s https://codecov.io/bash)

README.md

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,8 +1,8 @@
1-
2-
3-
41
# [Codecov][0] Java Example
52

3+
[![Build Status](https://travis-ci.org/codecov/example-java.svg?branch=master)](https://travis-ci.org/codecov/example-java)
4+
[![codecov](https://codecov.io/gh/codecov/example-java/branch/master/graph/badge.svg)](https://codecov.io/gh/codecov/example-java)
5+
66
## Guide
77

88
### Travis Setup

pom.xml

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,12 +1,12 @@
11
<?xml version="1.0" encoding="UTF-8"?>
22

3-
<!--
3+
<!--
44
Copyright (c) 2009, 2012 Mountainminds GmbH & Co. KG and Contributors
55
All rights reserved. This program and the accompanying materials
66
are made available under the terms of the Eclipse Public License v1.0
77
which accompanies this distribution, and is available at
88
http://www.eclipse.org/legal/epl-v10.html
9-
9+
1010
Contributors:
1111
Marc R. Hoffmann - initial API and implementation
1212
-->
@@ -22,6 +22,11 @@
2222

2323
<name>JaCoCo Maven plug-in example for Java project</name>
2424
<url>http://www.eclemma.org/jacoco</url>
25+
<properties>
26+
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
27+
<maven.compiler.source>1.8</maven.compiler.source>
28+
<maven.compiler.target>1.8</maven.compiler.target>
29+
</properties>
2530

2631
<dependencies>
2732
<dependency>

src/main/java/org/jacoco/examples/maven/java/HelloWorld.java

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,7 +1,7 @@
11
package org.jacoco.examples.maven.java;
22

33
public class HelloWorld {
4-
4+
55
public String getMessage(boolean bigger) {
66
if (bigger) {
77
return "Hello Universe!";

src/test/java/org/jacoco/examples/maven/java/HelloWorldTest.java

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -13,10 +13,10 @@ public class HelloWorldTest {
1313
public void setup() {
1414
subject = new HelloWorld();
1515
}
16-
16+
1717
@Test
1818
public void testGetMessage() {
1919
assertEquals("Hello World!", subject.getMessage(false));
2020
}
21-
21+
2222
}

0 commit comments

Comments
 (0)