mirror of
https://github.com/Guardsquare/proguard.git
synced 2026-03-13 09:50:34 +08:00
Remove the plugin instead
This commit is contained in:
@@ -1,6 +1,5 @@
|
||||
plugins {
|
||||
id 'java-library'
|
||||
id 'java-test-fixtures'
|
||||
id 'maven-publish'
|
||||
id "org.jetbrains.kotlin.jvm"
|
||||
id 'com.adarshr.test-logger' version '4.0.0'
|
||||
|
||||
15
build.gradle
15
build.gradle
@@ -115,19 +115,8 @@ allprojects { Project project ->
|
||||
}
|
||||
publishing {
|
||||
publications {
|
||||
named(project.name) {
|
||||
def javaComponent = components.java as AdhocComponentWithVariants
|
||||
// java-test-fixtures creates issues ans self-references in pom files.
|
||||
// See https://github.com/gradle/gradle/issues/14936.
|
||||
from(javaComponent)
|
||||
if (pluginManager.hasPlugin("java-test-fixtures")) {
|
||||
javaComponent.withVariantsFromConfiguration(configurations.testFixturesApiElements) {
|
||||
skip()
|
||||
}
|
||||
javaComponent.withVariantsFromConfiguration(configurations.testFixturesRuntimeElements) {
|
||||
skip()
|
||||
}
|
||||
}
|
||||
getByName(project.name) {
|
||||
from(components.java)
|
||||
}
|
||||
}
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user