-
Notifications
You must be signed in to change notification settings - Fork 41
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Update to latest gradle, remove shadow jar, updated copyright, genera…
…l tidy-up
- Loading branch information
Showing
218 changed files
with
1,704 additions
and
1,453 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,4 +1,3 @@ | ||
direnv 2.32.1 | ||
java zulu-17.38.21 | ||
docker-compose 1.29.2 | ||
gradle 7.6 | ||
direnv 2.32.2 | ||
java zulu-17.40.19 | ||
gradle 8.0.1 |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,70 @@ | ||
|
||
plugins { | ||
application | ||
checkstyle | ||
} | ||
|
||
val generatedDir = file("${buildDir}/generated/src/main/java") | ||
val codecGeneration = configurations.create("codecGeneration") | ||
|
||
dependencies { | ||
"codecGeneration"(libs.sbe) | ||
checkstyle(libs.checkstyle) | ||
implementation(libs.agrona) | ||
implementation(libs.aeron) | ||
implementation(libs.slf4j) | ||
implementation(libs.logback) | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java.srcDirs("src/main/java", generatedDir) | ||
} | ||
} | ||
|
||
tasks { | ||
|
||
task ("uberJar", Jar::class) { | ||
group = "uber" | ||
manifest { | ||
attributes["Main-Class"]="io.aeron.samples.admin.Admin" | ||
} | ||
archiveClassifier.set("uber") | ||
from(sourceSets.main.get().output) | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
dependsOn(configurations.runtimeClasspath) | ||
from({ | ||
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) } | ||
}) | ||
} | ||
|
||
task("generateCodecs", JavaExec::class) { | ||
group = "sbe" | ||
val codecsFile = "src/main/resources/messages.xml" | ||
val sbeFile = "src/main/resources/sbe/sbe.xsd" | ||
inputs.files(codecsFile, sbeFile) | ||
outputs.dir(generatedDir) | ||
classpath = codecGeneration | ||
mainClass.set("uk.co.real_logic.sbe.SbeTool") | ||
args = listOf(codecsFile) | ||
systemProperties["sbe.output.dir"] = generatedDir | ||
systemProperties["sbe.target.language"] = "Java" | ||
systemProperties["sbe.validation.xsd"] = sbeFile | ||
systemProperties["sbe.validation.stop.on.error"] = "true" | ||
outputs.dir(generatedDir) | ||
} | ||
|
||
compileJava { | ||
dependsOn("generateCodecs") | ||
} | ||
} | ||
|
||
testing { | ||
suites { | ||
// Configure the built-in test suite | ||
val test by getting(JvmTestSuite::class) { | ||
// Use JUnit Jupiter test framework | ||
useJUnitJupiter(libs.versions.junitVersion.get()) | ||
} | ||
} | ||
} |
2 changes: 1 addition & 1 deletion
2
aeron-core/src/main/java/com/aeroncookbook/aeron/rpc/Constants.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,41 @@ | ||
|
||
plugins { | ||
application | ||
checkstyle | ||
} | ||
|
||
dependencies { | ||
checkstyle(libs.checkstyle) | ||
implementation(libs.agrona) | ||
implementation(libs.aeron) | ||
implementation(libs.slf4j) | ||
implementation(libs.logback) | ||
} | ||
|
||
|
||
tasks { | ||
|
||
task("uberJar", Jar::class) { | ||
group = "uber" | ||
manifest { | ||
attributes["Main-Class"] = "com.aeroncookbook.aeron.mdc.MultiDestinationPublisher" | ||
} | ||
archiveClassifier.set("uber") | ||
from(sourceSets.main.get().output) | ||
duplicatesStrategy = DuplicatesStrategy.EXCLUDE | ||
dependsOn(configurations.runtimeClasspath) | ||
from({ | ||
configurations.runtimeClasspath.get().filter { it.name.endsWith("jar") }.map { zipTree(it) } | ||
}) | ||
} | ||
} | ||
|
||
testing { | ||
suites { | ||
// Configure the built-in test suite | ||
val test by getting(JvmTestSuite::class) { | ||
// Use JUnit Jupiter test framework | ||
useJUnitJupiter(libs.versions.junitVersion.get()) | ||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Oops, something went wrong.