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
}
java {
withSourcesJar()
withJavadocJar()
}
tasks.withType(JavaCompile).configureEach {
options.compilerArgs << "-Xlint:unchecked" << "-Xlint:deprecation" << "-Xlint:-options" << "-parameters"
options.compilerArgs << '-XDenableSunApiLintControl'

View File

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

View File

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

View File

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

View File

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

View File

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

View File

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