@@ -19,14 +19,12 @@ buildscript {
1919 mavenCentral()
2020 maven { url " https://repo.spring.io/plugins-release" }
2121 }
22- dependencies {
23- classpath ' org.asciidoctor:asciidoctorj-pdf:1.5.4'
24- }
2522}
2623plugins {
27- id ' org.asciidoctor.convert' version ' 1.5.12'
28- id ' me.champeau.gradle.jmh' version ' 0.4.7'
29- id " com.jfrog.artifactory" version " 4.15.2" apply false
24+ id ' org.asciidoctor.jvm.convert' version ' 3.3.2' apply false
25+ id ' org.asciidoctor.jvm.pdf' version ' 3.3.2' apply false
26+ // applied in setup.gradle, only if artifactory credentials are configured
27+ id " com.jfrog.artifactory" version " 4.24.20" apply false
3028}
3129
3230ext {
5553 " https://rabbitmq.github.io/rabbitmq-java-client/api/current/" ,] as String []
5654}
5755
58- apply from : " $gradleScriptDir /doc .gradle"
56+ apply from : " $gradleScriptDir /asciidoc .gradle"
5957apply from : " $gradleScriptDir /releaser.gradle"
6058
6159configurations. all {
@@ -71,7 +69,6 @@ configure(allprojects) { project ->
7169 maven { url ' https://repo.spring.io/snapshot' }
7270 }
7371
74- apply plugin : ' maven'
7572 apply plugin : ' eclipse'
7673 apply plugin : ' idea'
7774 apply plugin : ' java'
@@ -100,21 +97,21 @@ configure(allprojects) { project ->
10097 ]
10198
10299 dependencies {
103- compile " io.projectreactor:reactor-core:$reactorCoreVersion "
104- compile " com.rabbitmq:amqp-client:$rabbitMqJavaClientVersion "
100+ implementation " io.projectreactor:reactor-core:$reactorCoreVersion "
101+ implementation " com.rabbitmq:amqp-client:$rabbitMqJavaClientVersion "
105102
106103 // Testing
107104 // JUnit Jupiter API and TestEngine implementation
108- testCompile (" org.junit.jupiter:junit-jupiter-api:${ junitJupiterVersion} " )
109- testCompile (" org.junit.jupiter:junit-jupiter-params:${ junitJupiterVersion} " )
110- testRuntime (" org.junit.jupiter:junit-jupiter-engine:${ junitJupiterVersion} " )
111-
112- testCompile " io.projectreactor:reactor-test:$reactorCoreVersion "
113- testCompile " org.mockito:mockito-core:$mockitoVersion "
114- testCompile " org.assertj:assertj-core:${ assertjVersion} "
115- testRuntime " org.slf4j:jcl-over-slf4j:$slf4jVersion "
116- testRuntime " org.slf4j:slf4j-api:$slf4jVersion "
117- testRuntime " ch.qos.logback:logback-classic:$logbackVersion "
105+ testImplementation (" org.junit.jupiter:junit-jupiter-api:${ junitJupiterVersion} " )
106+ testImplementation (" org.junit.jupiter:junit-jupiter-params:${ junitJupiterVersion} " )
107+ testRuntimeOnly (" org.junit.jupiter:junit-jupiter-engine:${ junitJupiterVersion} " )
108+
109+ testImplementation " io.projectreactor:reactor-test:$reactorCoreVersion "
110+ testImplementation " org.mockito:mockito-core:$mockitoVersion "
111+ testImplementation " org.assertj:assertj-core:${ assertjVersion} "
112+ testRuntimeOnly " org.slf4j:jcl-over-slf4j:$slf4jVersion "
113+ testRuntimeOnly " org.slf4j:slf4j-api:$slf4jVersion "
114+ testRuntimeOnly " ch.qos.logback:logback-classic:$logbackVersion "
118115 }
119116
120117 // force test runs even when there are no test changes
@@ -124,6 +121,7 @@ configure(allprojects) { project ->
124121configure(rootProject) {
125122 archivesBaseName = ' reactor-rabbitmq'
126123 description = ' Reactor RabbitMQ: A reactive API for RabbitMQ'
124+ apply from : " $gradleScriptDir /javadoc.gradle"
127125
128126 jar {
129127 manifest {
@@ -146,27 +144,27 @@ project(':reactor-rabbitmq-samples') {
146144 description = ' Samples for Reactor RabbitMQ'
147145
148146 dependencies {
149- compile rootProject
150- runtime " ch.qos.logback:logback-classic:$logbackVersion "
147+ implementation rootProject
148+ runtimeOnly " ch.qos.logback:logback-classic:$logbackVersion "
151149 implementation " org.springframework.boot:spring-boot-starter:$springBootVersion "
152150 implementation " org.springframework.amqp:spring-rabbit:$springAmqpVersion "
153151
154- testCompile rootProject. sourceSets. test. output
155- testRuntime " org.springframework.boot:spring-boot-starter-test:$springBootVersion "
152+ testImplementation rootProject. sourceSets. test. output
153+ testRuntimeOnly " org.springframework.boot:spring-boot-starter-test:$springBootVersion "
156154 }
157155
158156 task sender(type :JavaExec ) {
159- main = ' reactor.rabbitmq.samples.SampleSender'
157+ mainClass = ' reactor.rabbitmq.samples.SampleSender'
160158 classpath = sourceSets. main. runtimeClasspath
161159 }
162160
163161 task receiver(type :JavaExec ) {
164- main = ' reactor.rabbitmq.samples.SampleReceiver'
162+ mainClass = ' reactor.rabbitmq.samples.SampleReceiver'
165163 classpath = sourceSets. main. runtimeClasspath
166164 }
167165
168166 task springboot(type :JavaExec ) {
169- main = ' reactor.rabbitmq.samples.SpringBootSample'
167+ mainClass = ' reactor.rabbitmq.samples.SpringBootSample'
170168 classpath = sourceSets. main. runtimeClasspath
171169 }
172170
0 commit comments