mirror of
https://github.com/jlengrand/geospatial-messenger.git
synced 2026-03-10 08:21:17 +00:00
Upgrade to Exposed 0.4.2 and Spring Framework 4.3.0.RC1
This commit is contained in:
14
build.gradle
14
build.gradle
@@ -21,8 +21,9 @@ apply plugin: 'spring-boot'
|
||||
|
||||
repositories {
|
||||
mavenCentral()
|
||||
maven { url 'http://repo.spring.io/snapshot' }
|
||||
maven { url 'https://dl.bintray.com/sdeleuze/maven/' }
|
||||
maven { url 'http://repo.spring.io/milestone' }
|
||||
maven { url 'https://dl.bintray.com/kotlin/exposed' } // exposed
|
||||
maven { url 'https://dl.bintray.com/sdeleuze/maven/' } // postgis-geojson
|
||||
}
|
||||
|
||||
jar {
|
||||
@@ -35,8 +36,8 @@ jar {
|
||||
}
|
||||
|
||||
ext['snippetsDir'] = file('build/generated-snippets')
|
||||
ext['spring.version'] = '4.3.0.BUILD-SNAPSHOT'
|
||||
ext['jackson.version'] = '2.7.1'
|
||||
ext['spring.version'] = '4.3.0.RC1'
|
||||
ext['jackson.version'] = '2.7.3'
|
||||
|
||||
configurations {
|
||||
all*.exclude group: 'postgresql', module: 'postgresql'
|
||||
@@ -51,9 +52,10 @@ dependencies {
|
||||
|
||||
|
||||
compile("org.jetbrains.kotlin:kotlin-stdlib:${kotlinVersion}")
|
||||
compile('com.fasterxml.jackson.module:jackson-module-kotlin:2.7.1-2')
|
||||
compile("org.jetbrains.kotlin:kotlin-reflect:${kotlinVersion}")
|
||||
compile("com.fasterxml.jackson.module:jackson-module-kotlin:${project.ext['jackson.version']}")
|
||||
|
||||
compile('org.jetbrains.exposed:exposed:0.4-M1') { // https://github.com/sdeleuze/Exposed
|
||||
compile('org.jetbrains.exposed:exposed:0.4.2') {
|
||||
exclude module: 'h2'
|
||||
exclude module: 'joda-time'
|
||||
}
|
||||
|
||||
@@ -2,7 +2,6 @@ package io.spring.messenger
|
||||
|
||||
import com.fasterxml.jackson.annotation.JsonInclude.Include
|
||||
import com.fasterxml.jackson.databind.ObjectMapper
|
||||
import com.fasterxml.jackson.module.kotlin.KotlinModule
|
||||
import io.spring.messenger.domain.Message
|
||||
import io.spring.messenger.domain.User
|
||||
import io.spring.messenger.repository.MessageRepository
|
||||
@@ -20,7 +19,7 @@ import javax.sql.DataSource
|
||||
open class Application {
|
||||
|
||||
@Bean open fun objectMapper(): ObjectMapper {
|
||||
val mapper:ObjectMapper = Jackson2ObjectMapperBuilder().modulesToInstall(PostGISModule(), KotlinModule()).build()
|
||||
val mapper:ObjectMapper = Jackson2ObjectMapperBuilder().modulesToInstall(PostGISModule()).build()
|
||||
mapper.setSerializationInclusion(Include.NON_NULL)
|
||||
return mapper
|
||||
}
|
||||
|
||||
Reference in New Issue
Block a user