Skip to content

Commit

Permalink
[ethomson#45] Bump libgit2 version to v0.28.2, and support jdk upto 11
Browse files Browse the repository at this point in the history
  • Loading branch information
shijinglu committed Aug 14, 2019
1 parent 62f4ddb commit d7235bb
Show file tree
Hide file tree
Showing 5 changed files with 15 additions and 17 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.idea/
.classpath
.project
.settings/
Expand Down
2 changes: 1 addition & 1 deletion .travis.yml
Original file line number Diff line number Diff line change
@@ -1,7 +1,7 @@
language: java

jdk:
- oraclejdk7
- oraclejdk8

script: scripts/build.sh

Expand Down
23 changes: 10 additions & 13 deletions pom.xml
Original file line number Diff line number Diff line change
Expand Up @@ -9,7 +9,11 @@
<name>org.libgit2.jagged</name>

<properties>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<project.build.sourceEncoding>UTF-8</project.build.sourceEncoding>
<jdk.version>1.8</jdk.version>
<maven.compiler.source>${jdk.version}</maven.compiler.source>
<maven.compiler.target>${jdk.version}</maven.compiler.target>

</properties>

<dependencies>
Expand All @@ -26,36 +30,29 @@
<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-compiler-plugin</artifactId>
<version>2.3.1</version>
<version>3.7.0</version>
<configuration>
<source>1.5</source>
<target>1.5</target>
<source>${jdk.version}</source>
</configuration>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-jar-plugin</artifactId>
<version>2.4</version>
<configuration>
<archive>
<addMavenDescriptor>false</addMavenDescriptor>
</archive>
</configuration>
<version>3.1.0</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-surefire-plugin</artifactId>
<version>2.15</version>
<version>3.0.0-M3</version>
</plugin>

<plugin>
<groupId>org.apache.maven.plugins</groupId>
<artifactId>maven-javadoc-plugin</artifactId>
<version>2.9.1</version>
<version>3.1.1</version>
<configuration>
<aggregate>true</aggregate>
<show>public</show>
<nohelp>true</nohelp>
<header>Jagged ${project.version}</header>
Expand Down
2 changes: 1 addition & 1 deletion src/main/native/libgit2
Submodule libgit2 updated 7023 files
4 changes: 2 additions & 2 deletions src/test/java/org/libgit2/jagged/VersionTest.java
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ public void testGetLibGit2Version()
Version libGit2Version = Version.getLibGit2Version();

Assert.assertEquals(0, libGit2Version.getMajor());
Assert.assertEquals(25, libGit2Version.getMinor());
Assert.assertEquals(1, libGit2Version.getRevision());
Assert.assertEquals(28, libGit2Version.getMinor());
Assert.assertEquals(2, libGit2Version.getRevision());
}
}

0 comments on commit d7235bb

Please sign in to comment.