mirror of
https://codeberg.org/Mercury-IM/Smack
synced 2024-11-29 17:52:06 +01:00
Add support for clirr to the build system
This commit is contained in:
parent
50cf7f42f3
commit
0279677883
2 changed files with 18 additions and 1 deletions
14
build.gradle
14
build.gradle
|
@ -7,6 +7,7 @@ buildscript {
|
||||||
}
|
}
|
||||||
dependencies {
|
dependencies {
|
||||||
classpath 'org.kordamp:markdown-gradle-plugin:0.1.1'
|
classpath 'org.kordamp:markdown-gradle-plugin:0.1.1'
|
||||||
|
classpath 'org.kordamp.gradle:clirr-gradle-plugin:0.1.0'
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
apply plugin: 'org.kordamp.gradle.markdown'
|
apply plugin: 'org.kordamp.gradle.markdown'
|
||||||
|
@ -95,7 +96,6 @@ allprojects {
|
||||||
options.addStringOption('Xdoclint:none', '-quiet')
|
options.addStringOption('Xdoclint:none', '-quiet')
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
}
|
}
|
||||||
|
|
||||||
gradle.taskGraph.whenReady { taskGraph ->
|
gradle.taskGraph.whenReady { taskGraph ->
|
||||||
|
@ -181,6 +181,7 @@ subprojects {
|
||||||
apply plugin: 'osgi'
|
apply plugin: 'osgi'
|
||||||
apply plugin: 'signing'
|
apply plugin: 'signing'
|
||||||
apply plugin: 'checkstyle'
|
apply plugin: 'checkstyle'
|
||||||
|
apply plugin: 'org.kordamp.gradle.clirr'
|
||||||
|
|
||||||
checkstyle {
|
checkstyle {
|
||||||
configFile = new File(rootConfigDir, 'checkstyle.xml')
|
configFile = new File(rootConfigDir, 'checkstyle.xml')
|
||||||
|
@ -280,6 +281,11 @@ subprojects {
|
||||||
required { signingRequired }
|
required { signingRequired }
|
||||||
sign configurations.archives
|
sign configurations.archives
|
||||||
}
|
}
|
||||||
|
|
||||||
|
clirr {
|
||||||
|
baseline = [group, name, clirrBaseline].join(':')
|
||||||
|
failOnErrors clirrFailOnErrors
|
||||||
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
subprojects*.jar {
|
subprojects*.jar {
|
||||||
|
@ -288,6 +294,12 @@ subprojects*.jar {
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// Important to specify this task after the subprojects block
|
||||||
|
task clirrRootReport(type: org.kordamp.gradle.clirr.ClirrReportTask) {
|
||||||
|
dependsOn = subprojects.tasks.clirr
|
||||||
|
reports = files(subprojects.tasks.clirr.xmlReport)
|
||||||
|
}
|
||||||
|
|
||||||
def getGitCommit() {
|
def getGitCommit() {
|
||||||
def dotGit = new File("$projectDir/.git")
|
def dotGit = new File("$projectDir/.git")
|
||||||
if (!dotGit.isDirectory()) return 'non-git build'
|
if (!dotGit.isDirectory()) return 'non-git build'
|
||||||
|
|
|
@ -4,5 +4,10 @@ allprojects {
|
||||||
isSnapshot = true
|
isSnapshot = true
|
||||||
jxmppVersion = '0.4.2-beta1'
|
jxmppVersion = '0.4.2-beta1'
|
||||||
smackMinAndroidSdk = 8
|
smackMinAndroidSdk = 8
|
||||||
|
|
||||||
|
// The baseline version to check the API's binary
|
||||||
|
// compatibility against with Clirr.
|
||||||
|
clirrBaseline = '4.1.0-rc2'
|
||||||
|
clirrFailOnErrors = false
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue