Skip to content

chore!: rename spring-transaction module into exposed-spring-transaction #2492

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

Open
wants to merge 1 commit into
base: main
Choose a base branch
from
Open
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
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ dependencies {
dokka(projects.exposed.exposedMigration)
dokka(projects.exposed.exposedMoney)
dokka(projects.exposed.exposedSpringBootStarter)
dokka(projects.exposed.springTransaction)
dokka(projects.exposed.exposedSpringTransaction)
}

repositories {
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -99,7 +99,7 @@ private fun Project.createDbTestTaskByDialect(db: TestDb, taskName: String, dial

if (db.ignoresSpringTests) {
filter {
// exclude all test classes in (spring-transaction, exposed-spring-boot-starter) modules
// exclude all test classes in (exposed-spring-transaction, exposed-spring-boot-starter) modules
exclude("org/jetbrains/exposed/spring/*", "org/jetbrains/exposed/jdbc-template/*")
isFailOnNoMatchingTests = false
}
Expand Down
2 changes: 1 addition & 1 deletion documentation-website/Writerside/topics/Exposed-Modules.md
Original file line number Diff line number Diff line change
Expand Up @@ -67,7 +67,7 @@ and date-time handling:
| `exposed-kotlin-datetime` | Date-time extensions based on the [`kotlinx-datetime`](https://kotlinlang.org/api/kotlinx-datetime/) library |
| `exposed-money` | Extensions to support [`MonetaryAmount`](https://javamoney.github.io/apidocs/java.money/javax/money/MonetaryAmount.html) from the [JavaMoney API](https://javamoney.github.io/) |
| `exposed-spring-boot-starter` | A starter for [Spring Boot](https://spring.io/projects/spring-boot) to utilize Exposed as the ORM instead of [Hibernate](https://hibernate.org/) |
| `spring-transaction` | Transaction manager that builds on top of Spring's standard transaction workflow |
| `exposed-spring-transaction` | Transaction manager that builds on top of Spring's standard transaction workflow |
| `exposed-migration` | Provides utilities to support database schema migrations |


Expand Down
2 changes: 1 addition & 1 deletion exposed-spring-boot-starter/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -3,7 +3,7 @@
This is a starter for [Spring Boot](https://spring.io/projects/spring-boot) to utilize [Exposed](https://github.com/JetBrains/Exposed) as the ORM instead of [Hibernate](https://hibernate.org/).

## Getting Started
This starter will give you the latest version of [Exposed](https://github.com/JetBrains/Exposed) and its `spring-transaction` library along with the [Spring Boot Starter JDBC](https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-jdbc).
This starter will give you the latest version of [Exposed](https://github.com/JetBrains/Exposed) and its `exposed-spring-transaction` library along with the [Spring Boot Starter JDBC](https://mvnrepository.com/artifact/org.springframework.boot/spring-boot-starter-jdbc).
### Maven
```mxml
<dependencies>
Expand Down
2 changes: 1 addition & 1 deletion exposed-spring-boot-starter/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -20,7 +20,7 @@ kotlin {
dependencies {
api(project(":exposed-core"))
api(project(":exposed-dao"))
api(project(":spring-transaction"))
api(project(":exposed-spring-transaction"))
// TODO how to avoid this
// Should we create r2dbc-spring-boot-starter module?
compileOnly(project(":exposed-jdbc"))
Expand Down
12 changes: 12 additions & 0 deletions exposed-spring-transaction/api/spring-transaction.api
Original file line number Diff line number Diff line change
@@ -0,0 +1,12 @@
public final class org/jetbrains/exposed/v1/spring/transaction/ExposedSpringTransactionAttributeSource : org/springframework/transaction/interceptor/TransactionAttributeSource {
public fun <init> ()V
public fun <init> (Lorg/springframework/transaction/interceptor/TransactionAttributeSource;Ljava/util/List;)V
public synthetic fun <init> (Lorg/springframework/transaction/interceptor/TransactionAttributeSource;Ljava/util/List;ILkotlin/jvm/internal/DefaultConstructorMarker;)V
public fun getTransactionAttribute (Ljava/lang/reflect/Method;Ljava/lang/Class;)Lorg/springframework/transaction/interceptor/TransactionAttribute;
}

public final class org/jetbrains/exposed/v1/spring/transaction/SpringTransactionManager : org/springframework/transaction/support/AbstractPlatformTransactionManager {
public fun <init> (Ljavax/sql/DataSource;Lorg/jetbrains/exposed/v1/core/DatabaseConfig;Z)V
public synthetic fun <init> (Ljavax/sql/DataSource;Lorg/jetbrains/exposed/v1/core/DatabaseConfig;ZILkotlin/jvm/internal/DefaultConstructorMarker;)V
}

2 changes: 1 addition & 1 deletion settings.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@ include("exposed-core")
include("exposed-dao")
include("exposed-jodatime")
include("exposed-java-time")
include("spring-transaction")
include("exposed-spring-transaction")
include("exposed-spring-boot-starter")
include("exposed-jdbc")
include("exposed-tests")
Expand Down
Loading