File tree Expand file tree Collapse file tree 2 files changed +7
-4
lines changed
spring-rabbit/src/test/kotlin/org/springframework/amqp/rabbit/annotation Expand file tree Collapse file tree 2 files changed +7
-4
lines changed Original file line number Diff line number Diff line change 1
1
buildscript {
2
- ext. kotlinVersion = ' 1.2.40 '
2
+ ext. kotlinVersion = ' 1.2.41 '
3
3
repositories {
4
4
maven { url ' https://repo.spring.io/plugins-release' }
5
5
}
@@ -8,6 +8,7 @@ buildscript {
8
8
classpath ' org.asciidoctor:asciidoctor-gradle-plugin:1.5.3'
9
9
classpath ' me.champeau.gradle:gradle-javadoc-hotfix-plugin:0.1'
10
10
classpath " org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlinVersion "
11
+ classpath " org.jetbrains.kotlin:kotlin-allopen:$kotlinVersion "
11
12
}
12
13
}
13
14
@@ -236,6 +237,7 @@ project('spring-rabbit') {
236
237
description = ' Spring RabbitMQ Support'
237
238
238
239
apply plugin : ' kotlin'
240
+ apply plugin : ' kotlin-spring'
239
241
240
242
dependencies {
241
243
Original file line number Diff line number Diff line change @@ -57,7 +57,7 @@ class EnableRabbitKotlinTests {
57
57
58
58
@Configuration
59
59
@EnableRabbit
60
- open class Config {
60
+ class Config {
61
61
62
62
val latch = CountDownLatch (1 )
63
63
@@ -67,17 +67,18 @@ class EnableRabbitKotlinTests {
67
67
}
68
68
69
69
@Bean
70
- open fun rabbitListenerContainerFactory (cf : CachingConnectionFactory ): SimpleRabbitListenerContainerFactory {
70
+ fun rabbitListenerContainerFactory (cf : CachingConnectionFactory ): SimpleRabbitListenerContainerFactory {
71
71
val factory = SimpleRabbitListenerContainerFactory ()
72
72
factory.setConnectionFactory(cf)
73
73
return factory
74
74
}
75
75
76
76
@Bean
77
- open fun cf (): CachingConnectionFactory {
77
+ fun cf (): CachingConnectionFactory {
78
78
return CachingConnectionFactory (
79
79
RabbitAvailableCondition .getBrokerRunning().connectionFactory)
80
80
}
81
+
81
82
}
82
83
83
84
}
You can’t perform that action at this time.
0 commit comments