Skip to content

Commit

Permalink
Upgrade gradle guide and examples (#7910)
Browse files Browse the repository at this point in the history
Signed-off-by: tvallin <[email protected]>
  • Loading branch information
tvallin authored Oct 30, 2023
1 parent 77936c6 commit 9c317a8
Show file tree
Hide file tree
Showing 3 changed files with 12 additions and 10 deletions.
8 changes: 4 additions & 4 deletions docs/includes/guides/gradle-build.adoc
Original file line number Diff line number Diff line change
Expand Up @@ -21,7 +21,7 @@ ifndef::rootdir[:rootdir: {docdir}/../..]
== Introduction
While most of Helidon's examples use Maven, you can also use Helidon
with a Gradle project. We recommend Gradle 7+.
with a Gradle project. Gradle 8.4+ is required to build Helidon 4 projects.
== Gradle Example
Expand All @@ -43,13 +43,13 @@ without providing a version.
----
dependencies {
// import Helidon dependency management
implementation platform("io.helidon:helidon-dependencies:${project.helidonversion}")
implementation enforcedPlatform("io.helidon:helidon-dependencies:${project.helidonversion}")
implementation 'io.helidon.microprofile.bundles:helidon-microprofile'
implementation 'org.glassfish.jersey.media:jersey-media-json-binding'
runtimeOnly 'org.jboss:jandex'
runtimeOnly 'javax.activation:javax.activation-api'
runtimeOnly 'io.smallrye:jandex'
runtimeOnly 'jakarta.activation:jakarta.activation-api'
testCompileOnly 'org.junit.jupiter:junit-jupiter-api:'
}
Expand Down
7 changes: 4 additions & 3 deletions examples/quickstarts/helidon-quickstart-mp/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -25,8 +25,8 @@ version = '1.0-SNAPSHOT'

description = """helidon-quickstart-mp"""

sourceCompatibility = 17
targetCompatibility = 17
sourceCompatibility = 21
targetCompatibility = 21
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand All @@ -48,11 +48,12 @@ dependencies {
implementation 'io.helidon.microprofile.bundles:helidon-microprofile'
implementation 'org.glassfish.jersey.media:jersey-media-json-binding'

runtimeOnly 'org.jboss:jandex'
runtimeOnly 'io.smallrye:jandex'
runtimeOnly 'jakarta.activation:jakarta.activation-api'

testImplementation 'io.helidon.microprofile.testing:helidon-microprofile-testing-junit5'
testImplementation 'org.junit.jupiter:junit-jupiter-api'
testImplementation 'org.hamcrest:hamcrest-all'
testRuntimeOnly 'org.junit.jupiter:junit-jupiter-engine'
}

Expand Down
7 changes: 4 additions & 3 deletions examples/quickstarts/helidon-quickstart-se/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -24,8 +24,8 @@ version = '1.0-SNAPSHOT'

description = """helidon-quickstart-se"""

sourceCompatibility = 20
targetCompatibility = 20
sourceCompatibility = 21
targetCompatibility = 21
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
}
Expand All @@ -49,7 +49,8 @@ dependencies {
implementation enforcedPlatform("io.helidon:helidon-dependencies:${project.helidonversion}")
implementation 'io.helidon.webserver:helidon-webserver'
implementation 'io.helidon.http.media:helidon-http-media-jsonp'
implementation 'io.helidon.webserver.observe:helidon-observe-health'
implementation 'io.helidon.webserver.observe:helidon-webserver-observe-health'
implementation 'io.helidon.webserver.observe:helidon-webserver-observe-metrics'
implementation 'io.helidon.config:helidon-config-yaml'
implementation 'io.helidon.health:helidon-health-checks'

Expand Down

0 comments on commit 9c317a8

Please sign in to comment.