@@ -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,7 @@ configure(allprojects) { project ->
7068 maven { url ' https://repo.spring.io/snapshot' }
7169 }
7270
73- apply plugin : ' maven'
71+ apply plugin : ' maven-publish '
7472 apply plugin : ' eclipse'
7573 apply plugin : ' idea'
7674 apply plugin : ' java'
@@ -99,21 +97,21 @@ configure(allprojects) { project ->
9997 ]
10098
10199 dependencies {
102- compile " io.projectreactor:reactor-core:$reactorCoreVersion "
103- compile " com.rabbitmq:amqp-client:$rabbitMqJavaClientVersion "
100+ implementation " io.projectreactor:reactor-core:$reactorCoreVersion "
101+ implementation " com.rabbitmq:amqp-client:$rabbitMqJavaClientVersion "
104102
105103 // Testing
106104 // 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 "
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 "
117115 }
118116
119117 // force test runs even when there are no test changes
@@ -123,6 +121,7 @@ configure(allprojects) { project ->
123121configure(rootProject) {
124122 archivesBaseName = ' reactor-rabbitmq'
125123 description = ' Reactor RabbitMQ: A reactive API for RabbitMQ'
124+ apply from : " $gradleScriptDir /javadoc.gradle"
126125
127126 jar {
128127 manifest {
@@ -145,27 +144,27 @@ project(':reactor-rabbitmq-samples') {
145144 description = ' Samples for Reactor RabbitMQ'
146145
147146 dependencies {
148- compile rootProject
149- runtime " ch.qos.logback:logback-classic:$logbackVersion "
147+ implementation rootProject
148+ runtimeOnly " ch.qos.logback:logback-classic:$logbackVersion "
150149 implementation " org.springframework.boot:spring-boot-starter:$springBootVersion "
151150 implementation " org.springframework.amqp:spring-rabbit:$springAmqpVersion "
152151
153- testCompile rootProject. sourceSets. test. output
154- 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 "
155154 }
156155
157156 task sender(type :JavaExec ) {
158- main = ' reactor.rabbitmq.samples.SampleSender'
157+ mainClass = ' reactor.rabbitmq.samples.SampleSender'
159158 classpath = sourceSets. main. runtimeClasspath
160159 }
161160
162161 task receiver(type :JavaExec ) {
163- main = ' reactor.rabbitmq.samples.SampleReceiver'
162+ mainClass = ' reactor.rabbitmq.samples.SampleReceiver'
164163 classpath = sourceSets. main. runtimeClasspath
165164 }
166165
167166 task springboot(type :JavaExec ) {
168- main = ' reactor.rabbitmq.samples.SpringBootSample'
167+ mainClass = ' reactor.rabbitmq.samples.SpringBootSample'
169168 classpath = sourceSets. main. runtimeClasspath
170169 }
171170
0 commit comments