Skip to content

Commit 51c87a2

Browse files
committed
HBX-3022: Create 5 Minute Tutorial for Gradle
- Add code types to the code sections for better readability (thx Marko B) Signed-off-by: Koen Aers <[email protected]>
1 parent 3f58ea7 commit 51c87a2

File tree

1 file changed

+4
-4
lines changed

1 file changed

+4
-4
lines changed

gradle/docs/5-minute-tutorial.md

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -28,14 +28,14 @@ Before tackling this tutorial, make sure you have the [Gradle](https://gradle.or
2828
Let’s assume in this case that we start off with a very simple default Gradle Java application
2929
that we create from a command-line window with the instruction below.
3030

31-
```
31+
```shell
3232
gradle init --type java-application --dsl groovy
3333
```
3434

3535
Gradle will ask you some details about your application. The conversation is shown below
3636
for completenes but of course you can make your own choices.
3737

38-
```
38+
```shell
3939
Enter target Java version (min: 7, default: 21):
4040

4141
Project name (default: 5-minute-tutorial):
@@ -79,7 +79,7 @@ of the `gradle.build` file.
7979

8080
The complete `gradle.build` file can look like the below.
8181

82-
```
82+
```groovy
8383
plugins {
8484
id('application')
8585
id('org.hibernate.tool.hibernate-tools-gradle') version '7.0.3.Final'
@@ -106,7 +106,7 @@ For the purpose of this tutorial introduction, let's assume that you have a data
106106

107107
With this set up, the `hibernate.properties` file should contain the properties as specified below.
108108

109-
```
109+
```properties
110110
hibernate.connection.driver_class=org.h2.Driver
111111
hibernate.connection.url=jdbc:h2:tcp://localhost/./sakila
112112
hibernate.connection.username=sa

0 commit comments

Comments
 (0)