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

Rm entity manager #21

Merged
merged 16 commits into from
Aug 22, 2024
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.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,4 @@
.gradle
build
.idea
.DS_store
5 changes: 3 additions & 2 deletions gradle/libs.versions.toml
Original file line number Diff line number Diff line change
@@ -1,12 +1,13 @@
[versions]
testcontainers = "1.20.0"

quarkus = "3.12.3"
jdbi = "3.45.4"

[libraries]
testcontainers-postgresql = { module = "org.testcontainers:postgresql", version.ref = "testcontainers" }

quarkus-platform-bom = { module = "io.quarkus.platform:quarkus-bom", version.ref = "quarkus" }
jdbi-core = { module = "org.jdbi:jdbi3-core", version.ref = "jdbi" }


[plugins]
quarkus = { id = "io.quarkus", version.ref = "quarkus" }
2 changes: 1 addition & 1 deletion http/test.http
Original file line number Diff line number Diff line change
@@ -1,4 +1,4 @@
POST http://localhost:8080/module/create
POST http://localhost:8080/api/module/create
Content-Type: application/json

{
Expand Down
8 changes: 7 additions & 1 deletion my-boot/build.gradle
Original file line number Diff line number Diff line change
Expand Up @@ -4,16 +4,22 @@ plugins {
alias libs.plugins.quarkus
}

tasks.named('compileJava').configure {
dependsOn 'compileQuarkusGeneratedSourcesJava'
}

dependencies {
implementation enforcedPlatform(libs.quarkus.platform.bom)
implementation project(":my-core")
implementation project(":my-platform")
implementation project(':my-database-std')
// implementation project(":my-msg")

implementation 'io.quarkus:quarkus-smallrye-openapi'

testImplementation 'io.quarkus:quarkus-junit5'
testImplementation 'io.rest-assured:rest-assured'

testImplementation "io.quarkus:quarkus-agroal"
testImplementation "io.quarkus:quarkus-jdbc-postgresql"
testImplementation libs.testcontainers.postgresql
}
4 changes: 4 additions & 0 deletions my-boot/src/main/resources/application.properties
Original file line number Diff line number Diff line change
Expand Up @@ -8,5 +8,9 @@ quarkus.datasource.username=postgres
quarkus.datasource.password=muyun2024
quarkus.datasource.jdbc.url= jdbc:postgresql://localhost:54324/muyun

quarkus.datasource.reactive.url = vertx-reactive:postgresql://localhost:54324/muyun

quarkus.datasource.jdbc=true

quarkus.hibernate-orm.database.generation=drop-and-create
quarkus.hibernate-orm.log.sql=true

This file was deleted.

Loading
Loading