@@ -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 {
5452 " https://rabbitmq.github.io/rabbitmq-java-client/api/current/" ,] as String []
5553}
5654
57- apply from : " $gradleScriptDir /doc .gradle"
55+ apply from : " $gradleScriptDir /asciidoc .gradle"
5856apply from : " $gradleScriptDir /releaser.gradle"
5957
6058configurations. all {
@@ -70,7 +68,6 @@ configure(allprojects) { project ->
7068 maven { url ' https://repo.spring.io/snapshot' }
7169 }
7270
73- apply plugin : ' maven'
7471 apply plugin : ' eclipse'
7572 apply plugin : ' idea'
7673 apply plugin : ' java'
@@ -99,21 +96,21 @@ configure(allprojects) { project ->
9996 ]
10097
10198 dependencies {
102- compile " io.projectreactor:reactor-core:$reactorCoreVersion "
103- compile " com.rabbitmq:amqp-client:$rabbitMqJavaClientVersion "
99+ implementation " io.projectreactor:reactor-core:$reactorCoreVersion "
100+ implementation " com.rabbitmq:amqp-client:$rabbitMqJavaClientVersion "
104101
105102 // Testing
106103 // JUnit Jupiter API and TestEngine implementation
107- testCompile (" org.junit.jupiter:junit-jupiter-api:${ junitJupiterVersion} " )
108- testCompile (" org.junit.jupiter:junit-jupiter-params:${ junitJupiterVersion} " )
109- testRuntime (" org.junit.jupiter:junit-jupiter-engine:${ junitJupiterVersion} " )
110-
111- testCompile " io.projectreactor:reactor-test:$reactorCoreVersion "
112- testCompile " org.mockito:mockito-core:$mockitoVersion "
113- testCompile " org.assertj:assertj-core:${ assertjVersion} "
114- testRuntime " org.slf4j:jcl-over-slf4j:$slf4jVersion "
115- testRuntime " org.slf4j:slf4j-api:$slf4jVersion "
116- testRuntime " ch.qos.logback:logback-classic:$logbackVersion "
104+ testImplementation (" org.junit.jupiter:junit-jupiter-api:${ junitJupiterVersion} " )
105+ testImplementation (" org.junit.jupiter:junit-jupiter-params:${ junitJupiterVersion} " )
106+ testRuntimeOnly (" org.junit.jupiter:junit-jupiter-engine:${ junitJupiterVersion} " )
107+
108+ testImplementation " io.projectreactor:reactor-test:$reactorCoreVersion "
109+ testImplementation " org.mockito:mockito-core:$mockitoVersion "
110+ testImplementation " org.assertj:assertj-core:${ assertjVersion} "
111+ testRuntimeOnly " org.slf4j:jcl-over-slf4j:$slf4jVersion "
112+ testRuntimeOnly " org.slf4j:slf4j-api:$slf4jVersion "
113+ testRuntimeOnly " ch.qos.logback:logback-classic:$logbackVersion "
117114 }
118115
119116 // force test runs even when there are no test changes
@@ -123,6 +120,7 @@ configure(allprojects) { project ->
123120configure(rootProject) {
124121 archivesBaseName = ' reactor-rabbitmq'
125122 description = ' Reactor RabbitMQ: A reactive API for RabbitMQ'
123+ apply from : " $gradleScriptDir /javadoc.gradle"
126124
127125 jar {
128126 manifest {
@@ -145,27 +143,27 @@ project(':reactor-rabbitmq-samples') {
145143 description = ' Samples for Reactor RabbitMQ'
146144
147145 dependencies {
148- compile rootProject
149- runtime " ch.qos.logback:logback-classic:$logbackVersion "
146+ implementation rootProject
147+ runtimeOnly " ch.qos.logback:logback-classic:$logbackVersion "
150148 implementation " org.springframework.boot:spring-boot-starter:$springBootVersion "
151149 implementation " org.springframework.amqp:spring-rabbit:$springAmqpVersion "
152150
153- testCompile rootProject. sourceSets. test. output
154- testRuntime " org.springframework.boot:spring-boot-starter-test:$springBootVersion "
151+ testImplementation rootProject. sourceSets. test. output
152+ testRuntimeOnly " org.springframework.boot:spring-boot-starter-test:$springBootVersion "
155153 }
156154
157155 task sender(type :JavaExec ) {
158- main = ' reactor.rabbitmq.samples.SampleSender'
156+ mainClass = ' reactor.rabbitmq.samples.SampleSender'
159157 classpath = sourceSets. main. runtimeClasspath
160158 }
161159
162160 task receiver(type :JavaExec ) {
163- main = ' reactor.rabbitmq.samples.SampleReceiver'
161+ mainClass = ' reactor.rabbitmq.samples.SampleReceiver'
164162 classpath = sourceSets. main. runtimeClasspath
165163 }
166164
167165 task springboot(type :JavaExec ) {
168- main = ' reactor.rabbitmq.samples.SpringBootSample'
166+ mainClass = ' reactor.rabbitmq.samples.SpringBootSample'
169167 classpath = sourceSets. main. runtimeClasspath
170168 }
171169
0 commit comments