1
0
Fork 0
mirror of https://github.com/vanitasvitae/Smack.git synced 2024-10-18 20:25:59 +02:00

Merge pull request #612 from stokito/fix_gradle_plugins

Fix gradle plugins
This commit is contained in:
Florian Schmaus 2024-09-12 11:24:32 +00:00 committed by GitHub
commit 7024151f5d
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -1,12 +1,6 @@
buildscript { buildscript {
repositories { repositories {
jcenter() gradlePluginPortal()
maven { url 'https://plugins.gradle.org/m2/' }
maven { url 'https://dl.bintray.com/content/aalmiray/kordamp' }
}
dependencies {
classpath 'org.kordamp.gradle:clirr-gradle-plugin:0.2.2'
classpath "biz.aQute.bnd:biz.aQute.bnd.gradle:6.0.0"
} }
} }
@ -16,6 +10,7 @@ plugins {
// Use e.g. "gradle <task> taskTree" to show its dependency tree. // Use e.g. "gradle <task> taskTree" to show its dependency tree.
id 'com.dorongold.task-tree' version '1.5' id 'com.dorongold.task-tree' version '1.5'
id 'com.github.kt3k.coveralls' version '2.10.2' id 'com.github.kt3k.coveralls' version '2.10.2'
id 'biz.aQute.bnd.builder' version '6.4.0'
} }
ext { ext {
@ -450,7 +445,6 @@ subprojects {
apply plugin: 'maven-publish' apply plugin: 'maven-publish'
apply plugin: 'signing' apply plugin: 'signing'
apply plugin: 'checkstyle' apply plugin: 'checkstyle'
apply plugin: 'org.kordamp.gradle.clirr'
apply plugin: 'biz.aQute.bnd.builder' apply plugin: 'biz.aQute.bnd.builder'
checkstyle { checkstyle {
@ -559,16 +553,6 @@ subprojects {
sign publishing.publications.mavenJava sign publishing.publications.mavenJava
} }
clirr {
// 2018-08-14: Disabled Clirr because
// - It reports an breaking change in android.jar (seems right, but there is nothing we can do about it)
// - Only the first smack-* projects are correctly checked,
// the other ones have the output of a clirr report from a previous project
// (Look at the clirr reports).
enabled false
semver false
}
// Work around https://github.com/gradle/gradle/issues/4046 // Work around https://github.com/gradle/gradle/issues/4046
task copyJavadocDocFiles(type: Copy) { task copyJavadocDocFiles(type: Copy) {
from('src/javadoc') from('src/javadoc')
@ -601,18 +585,6 @@ configure (androidProjects + androidBootClasspathProjects) {
} }
} }
// There is no need to ever clirr integration test projects and the
// smack-repl project.
configure(integrationTestProjects + project(':smack-repl')) {
clirr {
enabled false
}
}
// Disable clirr on omemo modules
project(':smack-omemo').clirr.enabled = false
project(':smack-omemo-signal').clirr.enabled = false
subprojects*.jar { subprojects*.jar {
manifest { manifest {
from sharedManifest from sharedManifest
@ -697,12 +669,6 @@ task jacocoRootReport(type: org.gradle.testing.jacoco.tasks.JacocoReport) {
setOnlyIf { true } setOnlyIf { true }
} }
// Important to specify this task after the subprojects block
task clirrRootReport(type: org.kordamp.gradle.clirr.ClirrReportTask) {
dependsOn = subprojects.tasks.clirr
reports = files((subprojects.findAll { it.clirr.enabled == true }).tasks.clirr.xmlReport)
}
task integrationTest { task integrationTest {
description 'Verify correct functionality of Smack by running some integration tests.' description 'Verify correct functionality of Smack by running some integration tests.'
dependsOn project(':smack-integration-test').tasks.run dependsOn project(':smack-integration-test').tasks.run