Added explicit publishing configuration for projects bundled as jars, this change was required when upgrading to kotlin 1.9.0

This commit is contained in:
Arshad Mahmood 2023-11-08 08:44:05 +00:00
parent 73fce5fa36
commit 1b4189b2b3
17 changed files with 149 additions and 1 deletions

View File

@ -46,3 +46,12 @@ jar {
attributes 'Automatic-Module-Name': 'net.corda.client.jackson'
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -90,3 +90,12 @@ jar {
attributes 'Automatic-Module-Name': 'net.corda.client.jfx'
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -37,3 +37,12 @@ jar {
)
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -85,3 +85,12 @@ jar {
attributes 'Automatic-Module-Name': 'net.corda.client.rpc'
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -23,3 +23,12 @@ jar {
baseName 'corda-common-configuration-parsing'
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -36,3 +36,12 @@ jar {
baseName 'corda-common-logging'
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -8,3 +8,12 @@ dependencies {
jar {
baseName 'corda-common-validation'
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -1,7 +1,6 @@
import org.apache.tools.ant.taskdefs.condition.Os
apply plugin: 'org.jetbrains.dokka'
apply plugin: 'corda.common-publishing'
dependencies {
implementation rootProject
@ -24,6 +23,10 @@ ext {
archivedApiDocsBaseFilename = 'api-docs'
}
jar {
enabled = false
}
dokkaHtml {
outputDirectory = file("${rootProject.rootDir}/docs/build/html/api/html")
}
@ -94,6 +97,8 @@ task archiveApiDocs(type: Tar) {
publishing {
publications {
if (System.getProperty('publishApiDocs') != null) {
apply plugin: 'corda.common-publishing'
archivedApiDocs(MavenPublication) {
artifact archiveApiDocs {
artifactId archivedApiDocsBaseFilename

View File

@ -106,3 +106,12 @@ jar {
attributes('Add-Opens': 'java.base/java.io java.base/java.time java.base/java.util java.base/java.lang.invoke java.base/java.security')
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -338,3 +338,12 @@ tasks.named('test', Test) {
maxHeapSize = "3g"
maxParallelForks = (System.env.CORDA_NODE_TESTING_FORKS == null) ? 1 : "$System.env.CORDA_NODE_TESTING_FORKS".toInteger()
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -44,3 +44,12 @@ jar {
attributes('Corda-Testing': true)
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -139,3 +139,12 @@ scanApi {
]
]
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -29,3 +29,12 @@ jar {
attributes('Corda-Testing': true)
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -20,3 +20,12 @@ jar {
attributes('Corda-Testing': true)
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -55,3 +55,12 @@ jar {
attributes('Corda-Testing': true)
}
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -89,3 +89,12 @@ task integrationTest(type: Test) {
jar {
baseName 'corda-testserver-impl'
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}

View File

@ -23,3 +23,11 @@ jar {
archiveBaseName = "corda-tools-cliutils"
}
publishing {
publications {
maven(MavenPublication) {
artifactId jar.baseName
from components.java
}
}
}