Merge branch '3.1.x' into 4.0.x

This commit is contained in:
Marcin Grzejszczak
2023-06-26 12:04:58 +02:00
2 changed files with 17 additions and 4 deletions

View File

@@ -63,8 +63,8 @@ test {
}
task stubsJar(type: Jar, dependsOn: ['copySnippets', 'copySources', 'copyClasses']) {
baseName = project.name
classifier = 'stubs'
archiveBaseName = project.name
archiveClassifier = 'stubs'
from project.file("${project.buildDir}/stubs")
}
@@ -85,6 +85,13 @@ task copyClasses(type: Copy) {
into "${project.buildDir}/stubs/"
}
project.tasks.named("verifierStubsJar").get().dependsOn('copySnippets', 'copySources', 'stubsJar') // TODO: We need to fix this
project.tasks.named("copyContracts").get().dependsOn('stubsJar') // TODO: We need to fix this
afterEvaluate {
project.tasks.matching { it.name.contains("publish") }.each { it.dependsOn('verifierStubsJar') } // TODO: We need to fix this
}
publishing {
publications {
maven(MavenPublication) {

View File

@@ -64,8 +64,8 @@ test {
}
task stubsJar(type: Jar, dependsOn: ['copySnippets', 'copySources', 'copyClasses']) {
baseName = project.name
classifier = 'stubs'
archiveBaseName = project.name
archiveClassifier = 'stubs'
from project.file("${project.buildDir}/stubs")
}
@@ -86,6 +86,12 @@ task copyClasses(type: Copy) {
into "${project.buildDir}/stubs/"
}
project.tasks.named("verifierStubsJar").get().dependsOn('copySnippets', 'copySources', 'stubsJar') // TODO: We need to fix this
project.tasks.named("copyContracts").get().dependsOn('stubsJar') // TODO: We need to fix this
afterEvaluate {
project.tasks.matching { it.name.contains("publish") }.each { it.dependsOn('verifierStubsJar') } // TODO: We need to fix this
}
publishing {
publications {
maven(MavenPublication) {