Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Upgrading Micronaut to 3.1.1 Adding Micronaut+GraalVM CE test #6864

Merged
merged 2 commits into from
Oct 27, 2021
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
1 change: 0 additions & 1 deletion frameworks/Java/micronaut/.mvn/jvm.config

This file was deleted.

110 changes: 0 additions & 110 deletions frameworks/Java/micronaut/.mvn/wrapper/MavenWrapperDownloader.java

This file was deleted.

Binary file not shown.

This file was deleted.

3 changes: 2 additions & 1 deletion frameworks/Java/micronaut/README.md
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
# [Micronaut](http://micronaut.io) Benchmarking Test (2.3.1)
# [Micronaut](http://micronaut.io) Benchmarking Test (3.1.1)

### Test Type Implementation Source Code

Expand All @@ -12,6 +12,7 @@
## Important Libraries
The tests were run with:
* [OpenJDK Java 11](http://jdk.java.net/11/)
* [GraalVM CE 21.3.0 (Java 11)](https://www.graalvm.org)

## Test URLs
### JSON
Expand Down
23 changes: 23 additions & 0 deletions frameworks/Java/micronaut/benchmark_config.json
Original file line number Diff line number Diff line change
Expand Up @@ -24,6 +24,29 @@
"display_name": "Micronaut",
"notes": "",
"versus": "None"
},
"native": {
"json_url": "/json",
"plaintext_url": "/plaintext",
"db_url": "/db",
"query_url": "/queries?queries=",
"fortune_url": "/fortunes",
"update_url": "/updates?queries=",
"port": 8080,
"approach": "Realistic",
"classification": "Micro",
"database": "Postgres",
"framework": "Micronaut",
"language": "Java",
"flavor": "None",
"orm": "raw",
"platform": "Netty",
"webserver": "None",
"os": "Linux",
"database_os": "Linux",
"display_name": "micronaut-graalvm",
"notes": "",
"versus": "None"
}
}
]
Expand Down
88 changes: 88 additions & 0 deletions frameworks/Java/micronaut/build.gradle
Original file line number Diff line number Diff line change
@@ -0,0 +1,88 @@
plugins {
id 'java'
id "io.micronaut.application" version "2.0.6"
id "com.fizzed.rocker" version "1.3.0"
}

group 'org.example'
version '1.0-SNAPSHOT'

repositories {
mavenLocal()
mavenCentral()
}

micronaut {
version '3.1.1'
processing {
incremental true
}
}

nativeImage {
args "--initialize-at-build-time=" +
"views," +
"io.vertx.core.logging.LoggerFactory," +
"io.vertx.core.logging.SLF4JLogDelegateFactory," +
"io.vertx.core.logging.SLF4JLogDelegate," +
"io.vertx.pgclient.impl.codec.DataTypeCodec"
}

sourceSets {
main {
rocker {
srcDir('src/main/resources')
}
}
}

rocker {
skip false
// Base directory for generated java sources, actual target is sub directory
// with the name of the source set. The value is passed through project.file().
outputBaseDirectory = "$buildDir/generated/rocker"
// Base directory for the directory where the hot reload feature
// will (re)compile classes to at runtime (and where `rocker-compiler.conf`
// is generated, which is used by RockerRuntime.getInstance().setReloading(true)).
// The actual target is a sub directory with the name of the source set.
// The value is passed through project.file().
classBaseDirectory = "$buildDir/classes"
failOnError true
skipTouch true
// must not be empty when skipTouch is equal to false
touchFile ""
javaVersion '11'
optimize true
}

mainClassName = 'benchmark.Application'

ext {
set('vertxVersion', '4.1.5')
set('micronautVersion', '3.1.1')
set('javaxAnnotationApi', '1.3.2')
set('rockerVersion', '1.3.0')
}

dependencies {
implementation("io.micronaut:micronaut-inject:${micronautVersion}")
implementation("io.micronaut:micronaut-management:${micronautVersion}")
implementation("io.micronaut:micronaut-http-server-netty:${micronautVersion}")
implementation("io.micronaut.rxjava3:micronaut-rxjava3")
implementation("io.micronaut.sql:micronaut-vertx-pg-client")
implementation("io.micronaut.sql:micronaut-jdbc-hikari:4.0.2")
implementation("io.micronaut.views:micronaut-views-rocker")
implementation("com.fizzed:rocker-runtime:${rockerVersion}")
implementation("io.vertx:vertx-core:${vertxVersion}")
implementation("io.vertx:vertx-rx-java2:${vertxVersion}")
implementation("io.vertx:vertx-rx-java3:${vertxVersion}")
implementation("io.vertx:vertx-pg-client:${vertxVersion}")

runtimeOnly("ch.qos.logback:logback-classic")
testImplementation("io.micronaut.test:micronaut-test-junit5")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}

test {
useJUnitPlatform()
}
19 changes: 19 additions & 0 deletions frameworks/Java/micronaut/config.toml
Original file line number Diff line number Diff line change
Expand Up @@ -12,8 +12,27 @@ approach = "Realistic"
classification = "Micro"
database = "Postgres"
database_os = "Linux"
display_name = "micronaut"
os = "Linux"
orm = "raw"
platform = "Netty"
webserver = "None"
versus = "None"

[native]
urls.plaintext = "/plaintext"
urls.json = "/json"
urls.db = "/db"
urls.query = "/queries?queries="
urls.update = "/updates?queries="
urls.fortune = "/fortunes"
approach = "Realistic"
classification = "Micro"
database = "Postgres"
database_os = "Linux"
display_name = "micronaut-graalvm"
os = "Linux"
orm = "raw"
platform = "Netty"
webserver = "None"
versus = "micronaut"
Binary file not shown.
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-6.9.1-bin.zip
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists