Skip to content

Commit dcaccf8

Browse files
committed
Added CLIRR report to Gradle build
1 parent 97ab725 commit dcaccf8

2 files changed

Lines changed: 33 additions & 0 deletions

File tree

build.gradle

Lines changed: 21 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -17,14 +17,29 @@
1717
apply plugin: 'java'
1818
apply plugin: 'groovy'
1919
apply plugin: 'jacoco'
20+
apply plugin: 'clirr'
2021

2122
sourceCompatibility = '1.5'
2223
targetCompatibility = '1.5'
2324

25+
def configDir = new File(rootDir, 'config')
26+
27+
buildscript {
28+
repositories {
29+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
30+
mavenCentral()
31+
}
32+
dependencies {
33+
classpath 'me.trnl:clirr-gradle-plugin:0.4'
34+
}
35+
}
36+
2437
repositories {
38+
maven { url 'https://oss.sonatype.org/content/repositories/snapshots' }
2539
mavenCentral()
2640
}
2741

42+
2843
dependencies {
2944
testCompile 'junit:junit:4.11'
3045
testCompile 'org.codehaus.groovy:groovy-all:2.0.8'
@@ -43,6 +58,12 @@ sourceSets {
4358
}
4459
}
4560

61+
clirr {
62+
excludeFilter = new File("$configDir/clirr-exclude.yml")
63+
baseline 'org.mongodb:mongo-java-driver:2.11.3'
64+
}
65+
66+
4667
/* Compiling */
4768
tasks.withType(AbstractCompile) {
4869
options.encoding = 'ISO-8859-1'

config/clirr-exclude.yml

Lines changed: 12 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,12 @@
1+
---
2+
differenceTypes:
3+
- 5001 # Removed class from the list of superclasses
4+
5+
classes:
6+
- com.mongodb.util.MyAsserts
7+
- com.mongodb.util.MyAsserts$MyAssert
8+
9+
members:
10+
com.mongodb.DBPortPool:
11+
- getStatistics()
12+
- memSize(com.mongodb.DBPort)

0 commit comments

Comments
 (0)