Skip to content

Commit bb85203

Browse files
committed
[Java] Remove compile and testCompile dependencies
1 parent ce5e58a commit bb85203

File tree

1 file changed

+10
-10
lines changed

1 file changed

+10
-10
lines changed

build.gradle

Lines changed: 10 additions & 10 deletions
Original file line numberDiff line numberDiff line change
@@ -20,7 +20,7 @@ buildscript {
2020
}
2121

2222
plugins {
23-
id 'java'
23+
id 'java-library'
2424
id 'idea'
2525
id 'io.freefair.javadoc-links' version '4.1.6' apply false
2626
id 'com.github.johnrengelman.shadow' version '5.2.0' apply false
@@ -133,7 +133,7 @@ configurations {
133133
jar.enabled = false
134134

135135
subprojects {
136-
apply plugin: 'java'
136+
apply plugin: 'java-library'
137137
apply plugin: 'maven'
138138
apply plugin: 'signing'
139139
apply plugin: 'checkstyle'
@@ -146,7 +146,7 @@ subprojects {
146146
jar.enabled = true
147147

148148
dependencies {
149-
compile "org.agrona:agrona:${agronaVersion}"
149+
api "org.agrona:agrona:${agronaVersion}"
150150

151151
testImplementation "org.hamcrest:hamcrest:${hamcrestVersion}"
152152
testImplementation "org.mockito:mockito-junit-jupiter:${mockitoVersion}"
@@ -216,7 +216,7 @@ def validationXsdPath = project(':sbe-tool').projectDir.toString() + '/src/main/
216216

217217
project(':sbe-tool') {
218218
dependencies {
219-
testCompile files('build/classes/java/generated')
219+
testImplementation files('build/classes/java/generated')
220220
}
221221

222222
sourceSets {
@@ -307,7 +307,7 @@ project(':sbe-all') {
307307
apply plugin: 'com.github.johnrengelman.shadow'
308308

309309
dependencies {
310-
compile project(':sbe-tool')
310+
implementation project(':sbe-tool')
311311
}
312312

313313
task sourcesJar(type: Jar) {
@@ -389,8 +389,8 @@ project(':sbe-all') {
389389

390390
project(':sbe-samples') {
391391
dependencies {
392-
compile project(':sbe-tool')
393-
compile files('build/classes/java/generated')
392+
api project(':sbe-tool')
393+
api files('build/classes/java/generated')
394394
}
395395

396396
sourceSets {
@@ -485,10 +485,10 @@ project(':sbe-benchmarks') {
485485
apply plugin: 'com.github.johnrengelman.shadow'
486486

487487
dependencies {
488-
compile "org.openjdk.jmh:jmh-core:${jmhVersion}"
488+
implementation "org.openjdk.jmh:jmh-core:${jmhVersion}"
489489
annotationProcessor "org.openjdk.jmh:jmh-generator-annprocess:${jmhVersion}"
490-
compile project(':sbe-tool')
491-
compile files('build/classes/java/generated')
490+
implementation project(':sbe-tool')
491+
implementation files('build/classes/java/generated')
492492
}
493493

494494
sourceSets {

0 commit comments

Comments
 (0)