generated from micronaut-projects/micronaut-project-template
-
Notifications
You must be signed in to change notification settings - Fork 14
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Use test resources, fix GraalVM metadata and add GraalVM tests (#355)
- Loading branch information
1 parent
e9c49e6
commit bb146a8
Showing
33 changed files
with
626 additions
and
410 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
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,3 +1,4 @@ | ||
rootProject.name = 'jms-parent' | ||
dependencyResolutionManagement { | ||
versionCatalogs { | ||
libs { | ||
|
25 changes: 25 additions & 0 deletions
25
buildSrc/src/main/groovy/io.micronaut.build.internal.jms-application.gradle
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,25 @@ | ||
plugins { | ||
id 'io.micronaut.build.internal.jms-base' | ||
id 'io.micronaut.application' | ||
} | ||
configurations.all { | ||
resolutionStrategy.dependencySubstitution { | ||
substitute module('io.micronaut.jms:micronaut-jms-core') using project(':micronaut-jms-core') | ||
substitute module('io.micronaut.jms:micronaut-jms-activemq-classic') using project(':micronaut-jms-activemq-classic') | ||
substitute module('io.micronaut.jms:micronaut-jms-activemq-artemis') using project(':micronaut-jms-activemq-artemis') | ||
substitute module('io.micronaut.jms:micronaut-jms-sqs') using project(':micronaut-jms-sqs') | ||
} | ||
} | ||
micronaut { | ||
version libs.versions.micronaut.platform.get() | ||
runtime "netty" | ||
} | ||
|
||
application { | ||
mainClass = 'example.Application' | ||
} | ||
|
||
dependencies { | ||
runtimeOnly(mn.snakeyaml) | ||
testImplementation(mn.logback.classic) | ||
} |
9 changes: 2 additions & 7 deletions
9
buildSrc/src/main/groovy/io.micronaut.build.internal.jms-examples.gradle
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,15 +1,10 @@ | ||
plugins { | ||
id 'io.micronaut.build.internal.jms-base' | ||
id 'io.micronaut.minimal.application' | ||
} | ||
|
||
micronaut { | ||
version libs.versions.micronaut | ||
runtime 'netty' | ||
id 'io.micronaut.build.internal.jms-application' | ||
} | ||
|
||
dependencies { | ||
testCompileOnly libs.jsr305 // for "warning: unknown enum constant When.MAYBE" | ||
testImplementation projects.micronautJmsActivemqClassic | ||
testImplementation libs.activemq.broker | ||
testImplementation(mn.logback.classic) | ||
} |
12 changes: 12 additions & 0 deletions
12
buildSrc/src/main/groovy/io.micronaut.build.internal.jms-native-tests.gradle
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,12 @@ | ||
plugins { | ||
id 'io.micronaut.build.internal.jms-application' | ||
} | ||
|
||
tasks.named("check") { task -> | ||
def graal = ["jvmci.Compiler", "java.vendor.version", "java.vendor"].any { | ||
System.getProperty(it)?.toLowerCase(Locale.ENGLISH)?.contains("graal") | ||
} | ||
if (graal) { | ||
task.dependsOn("nativeTest") | ||
} | ||
} |
17 changes: 5 additions & 12 deletions
17
buildSrc/src/main/groovy/io.micronaut.build.internal.jms-tests.gradle
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 |
---|---|---|
|
@@ -4,7 +4,6 @@ plugins { | |
} | ||
|
||
micronaut { | ||
version = '4.0.0-SNAPSHOT' | ||
testRuntime 'spock' | ||
} | ||
|
||
|
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 |
---|---|---|
|
@@ -11,7 +11,6 @@ dependencies { | |
} | ||
|
||
micronaut { | ||
version = '4.0.0-SNAPSHOT' | ||
testRuntime 'kotest5' | ||
} | ||
|
||
|
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.