Merge pull request #7612 from corda/arshadm/feature/ent-11253-publish-sources-and-javadoc

ENT-11253 Publish sources and javadoc
This commit is contained in:
Adel El-Beik 2023-12-15 18:04:56 +00:00 committed by GitHub
commit 10e005b072
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23
7 changed files with 13 additions and 4 deletions

View File

@ -287,6 +287,11 @@ allprojects {
jvmArgs test_add_exports jvmArgs test_add_exports
} }
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile).configureEach { tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options" << "-parameters" options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options" << "-parameters"
options.compilerArgs << '-XDenableSunApiLintControl' options.compilerArgs << '-XDenableSunApiLintControl'

View File

@ -189,8 +189,8 @@ publishing {
publications { publications {
maven(MavenPublication) { maven(MavenPublication) {
artifactId 'corda-core' artifactId 'corda-core'
artifact(testJar) artifact testJar
artifact(jar) from components.java
} }
} }
} }

View File

@ -93,6 +93,7 @@ publishing {
artifact(buildCordaJAR) { artifact(buildCordaJAR) {
classifier '' classifier ''
} }
from components.java
} }
} }
} }

View File

@ -25,7 +25,8 @@ publishing {
publications { publications {
shadow(MavenPublication) { publication -> shadow(MavenPublication) { publication ->
artifactId 'corda-opentelemetry-driver' artifactId 'corda-opentelemetry-driver'
project.shadow.component(publication) artifact shadowJar
from components.java
} }
} }
} }

View File

@ -75,7 +75,7 @@ publishing {
maven(MavenPublication) { maven(MavenPublication) {
artifactId 'corda-serialization' artifactId 'corda-serialization'
artifact(testJar) artifact(testJar)
artifact(jar) from components.java
} }
} }
} }

View File

@ -72,6 +72,7 @@ publishing {
artifact(buildWebserverJar) { artifact(buildWebserverJar) {
classifier '' classifier ''
} }
from components.java
} }
} }
} }

View File

@ -47,6 +47,7 @@ publishing {
artifact(buildExplorerJAR) { artifact(buildExplorerJAR) {
classifier '' classifier ''
} }
from components.java
} }
} }
} }