Skip to content

Commit f278728

Browse files
committed
Add compileOnly dependencies to fix usage issue.
1 parent e396aaa commit f278728

File tree

2 files changed

+11
-0
lines changed

2 files changed

+11
-0
lines changed

src/main/groovy/org.mvplugins.jpms.spigot-api.gradle

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -2,6 +2,15 @@ plugins {
22
id 'org.gradlex.extra-java-module-info'
33
}
44

5+
repositories {
6+
mavenCentral()
7+
}
8+
9+
dependencies {
10+
compileOnly 'com.google.guava:listenablefuture'
11+
compileOnly 'com.google.code.findbugs:jsr305'
12+
}
13+
514
extraJavaModuleInfo {
615
module('com.google.code.findbugs:jsr305', 'javax.annotation')
716
module('com.google.guava:failureaccess', 'com.google.guava.failureaccess') {

src/test/groovy/org/mvplugins/gradle/jpms/SpigotModuleInfoTest.groovy

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -37,6 +37,8 @@ class SpigotModuleInfoTest extends Specification {
3737
}
3838
3939
dependencies {
40+
compileOnly 'com.google.guava:listenablefuture'
41+
compileOnly 'com.google.code.findbugs:jsr305'
4042
implementation 'org.spigotmc:spigot-api:${spigotVersion}'
4143
}
4244
"""

0 commit comments

Comments
 (0)