Skip to content
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
15 changes: 8 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -16,12 +16,13 @@ It also requires a Spring Boot **MVC** web application.

| Spring Boot | starter-errors | Kotlin |
|:-----------:|:--------------:|:------:|
| 2.6 | 7.x | 1.6 |
| 2.5 | 5.x | 1.5 |
| 2.4 | 4.x | 1.4 |
| 2.3 | 3.x | 1.3 |
| 2.2 | 2.x | 1.3 |
| 2.1 | 1.x | 1.3 |
| 2.7 | 8.x | 1.6 |
| 2.6 | 7.x | 1.6 |
| 2.5 | 5.x | 1.5 |
| 2.4 | 4.x | 1.4 |
| 2.3 | 3.x | 1.3 |
| 2.2 | 2.x | 1.3 |
| 2.1 | 1.x | 1.3 |

Other combinations might work, but they're not supported.

Expand All @@ -30,7 +31,7 @@ Other combinations might work, but they're not supported.
For example with Gradle Kotlin DSL :

```kotlin
implementation("com.ekino.oss.spring:ekino-spring-boot-starter-errors:6.0.0")
implementation("com.ekino.oss.spring:ekino-spring-boot-starter-errors:8.0.0")
```

NB : if you want to use snapshots you need to add the following configuration to your Gradle build script :
Expand Down
2 changes: 1 addition & 1 deletion build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -4,7 +4,7 @@ plugins {
id("ekino.oss.test")
}

version = "7.0.1-SNAPSHOT"
version = "8.0.0-SNAPSHOT"

repositories {
mavenCentral()
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -66,5 +66,6 @@ publishing {
}

signing {
setRequired { gradle.taskGraph.hasTask("publish") }
sign(publishing.publications[publicationName])
}
Original file line number Diff line number Diff line change
Expand Up @@ -7,7 +7,7 @@ import com.ekino.oss.errors.handler.SecurityExceptionHandler
import com.ekino.oss.errors.handler.TxExceptionHandler
import com.ekino.oss.errors.property.ErrorsProperties
import org.springframework.beans.factory.annotation.Value
import org.springframework.boot.autoconfigure.AutoConfigureBefore
import org.springframework.boot.autoconfigure.AutoConfiguration
import org.springframework.boot.autoconfigure.condition.ConditionalOnClass
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication
import org.springframework.boot.autoconfigure.condition.ConditionalOnWebApplication.Type.SERVLET
Expand All @@ -19,9 +19,8 @@ import org.springframework.context.annotation.Configuration
/**
* We have inner class for some config because using [ConditionalOnClass] on [Bean] methods is not recommended.
*/
@Configuration(proxyBeanMethods = false)
@AutoConfiguration(before = [ErrorMvcAutoConfiguration::class])
@ConditionalOnWebApplication(type = SERVLET)
@AutoConfigureBefore(ErrorMvcAutoConfiguration::class)
@EnableConfigurationProperties(ErrorsProperties::class)
class ErrorsAutoConfiguration(
@param:Value("\${spring.application.name}") private val applicationName: String,
Expand Down
2 changes: 0 additions & 2 deletions src/main/resources/META-INF/spring.factories

This file was deleted.

Original file line number Diff line number Diff line change
@@ -0,0 +1 @@
com.ekino.oss.errors.ErrorsAutoConfiguration