Skip to content

Commit

Permalink
[Java] Rename aeron-version to aeron-annotations.
Browse files Browse the repository at this point in the history
  • Loading branch information
vyazelenko committed Nov 21, 2023
1 parent 0208214 commit ddcf165
Show file tree
Hide file tree
Showing 5 changed files with 67 additions and 6 deletions.
71 changes: 66 additions & 5 deletions build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -342,8 +342,56 @@ subprojects {
}
}

project(':aeron-version') {
project(':aeron-annotations') {
apply plugin: 'maven-publish'
apply plugin: 'signing'
apply plugin: 'biz.aQute.bnd.builder'

jar {
bundle {
bnd """
Automatic-Module-Name: io.aeron.annotations
Bundle-Name: io.aeron.annotations
Bundle-SymbolicName: io.aeron.annotations
Implementation-Title: Aeron
Implementation-Vendor: Real Logic Limited
Implementation-Version: ${aeronVersion}
-exportcontents: io.aeron.version
# Suppress headers that reduce reproducibility.
-reproducible: true
-noextraheaders: true
"""
}
}

java {
withSourcesJar()
withJavadocJar()
}

publishing {
publications {
aeronAnnotations(MavenPublication) {
from components.java
pom(projectPom)
}
}

repositories {
maven {
url(!isReleaseVersion ? snapshotsRepoUrl : releasesRepoUrl)
credentials {
username = ossrhUsername
password = ossrhPassword
}
}
}
}

signing {
sign publishing.publications.aeronAnnotations
}
}

Expand All @@ -359,7 +407,8 @@ project(':aeron-client') {
prefer(agronaVersion)
}
}
annotationProcessor project(':aeron-version')
implementation project(':aeron-annotations')
annotationProcessor project(':aeron-annotations')
testImplementation project(':aeron-test-support')
testImplementation "org.mockito:mockito-inline:${mockitoVersion}"
}
Expand Down Expand Up @@ -388,6 +437,10 @@ project(':aeron-client') {
withJavadocJar()
}

javadoc {
source += project(':aeron-annotations').sourceSets.main.allJava
}

publishing {
publications {
aeronClient(MavenPublication) {
Expand Down Expand Up @@ -422,7 +475,8 @@ project(':aeron-driver') {

dependencies {
api project(':aeron-client')
annotationProcessor project(':aeron-version')
implementation project(':aeron-annotations')
annotationProcessor project(':aeron-annotations')
testImplementation project(':aeron-test-support')
testImplementation "org.mockito:mockito-inline:${mockitoVersion}"
}
Expand Down Expand Up @@ -454,6 +508,7 @@ project(':aeron-driver') {
}

javadoc {
source += project(':aeron-annotations').sourceSets.main.allJava
source += project(':aeron-client').sourceSets.main.allJava
}

Expand Down Expand Up @@ -496,7 +551,8 @@ project(':aeron-archive') {
api project(':aeron-driver')
api files('build/classes/java/generated')
codecGeneration "uk.co.real-logic:sbe-tool:${sbeVersion}"
annotationProcessor project(':aeron-version')
implementation project(':aeron-annotations')
annotationProcessor project(':aeron-annotations')
testImplementation project(':aeron-test-support')
testImplementation "org.mockito:mockito-inline:${mockitoVersion}"
testImplementation files('build/classes/java/generatedTest')
Expand Down Expand Up @@ -601,6 +657,7 @@ project(':aeron-archive') {

javadoc {
source += sourceSets.generated.allJava
source += project(':aeron-annotations').sourceSets.main.allJava
source += project(':aeron-client').sourceSets.main.allJava
source += project(':aeron-driver').sourceSets.main.allJava
}
Expand Down Expand Up @@ -649,7 +706,8 @@ project(':aeron-cluster') {
api project(':aeron-archive')
api files('build/classes/java/generated')
codecGeneration "uk.co.real-logic:sbe-tool:${sbeVersion}"
annotationProcessor project(':aeron-version')
implementation project(':aeron-annotations')
annotationProcessor project(':aeron-annotations')
testImplementation project(':aeron-test-support')
testImplementation "org.mockito:mockito-inline:${mockitoVersion}"
}
Expand Down Expand Up @@ -714,6 +772,7 @@ project(':aeron-cluster') {

javadoc {
source += sourceSets.generated.allJava
source += project(':aeron-annotations').sourceSets.main.allJava
source += project(':aeron-client').sourceSets.main.allJava
source += project(':aeron-driver').sourceSets.main.allJava
source += project(':aeron-archive').sourceSets.main.allJava
Expand Down Expand Up @@ -808,6 +867,7 @@ project(':aeron-agent') {
}

javadoc {
source += project(':aeron-annotations').sourceSets.main.allJava
source += aeronClientProject.sourceSets.main.allJava
source += aeronDriverProject.sourceSets.main.allJava
source += aeronArchiveProject.sourceSets.main.allJava
Expand Down Expand Up @@ -884,6 +944,7 @@ project(':aeron-samples') {
}

javadoc {
source += project(':aeron-annotations').sourceSets.main.allJava
source += project(':aeron-client').sourceSets.main.allJava
source += project(':aeron-driver').sourceSets.main.allJava
source += project(':aeron-archive').sourceSets.main.allJava
Expand Down
2 changes: 1 addition & 1 deletion settings.gradle
Original file line number Diff line number Diff line change
@@ -1,5 +1,5 @@
include (
'aeron-version',
'aeron-annotations',
'aeron-client',
'aeron-driver',
'aeron-archive',
Expand Down

0 comments on commit ddcf165

Please sign in to comment.