Skip to content

Commit 496386e

Browse files
committed
Take another shot at using api properly.
1 parent fedd724 commit 496386e

File tree

2 files changed

+8
-7
lines changed

2 files changed

+8
-7
lines changed

build.gradle

+3-2
Original file line numberDiff line numberDiff line change
@@ -13,6 +13,7 @@ apply from: 干.file('spotless/freshmark.gradle')
1313
apply from: 干.file('helper/javadoc-markdown.gradle')
1414

1515
subprojects { subProject ->
16+
apply plugin: 'java-library'
1617
apply from: 干.file('base/java8.gradle')
1718
apply from: 干.file('spotless/java.gradle')
1819

@@ -47,11 +48,11 @@ subprojects { subProject ->
4748
String platformCode = project.name.substring('durian-swt.'.length())
4849
eclipseMavenCentral {
4950
release SWT_VERSION, {
50-
implementation "org.eclipse.swt.$platformCode"
51+
api "org.eclipse.swt.$platformCode"
5152
}
5253
}
5354
dependencies {
54-
implementation project(':durian-swt')
55+
api project(':durian-swt')
5556
}
5657
configurations.all {
5758
resolutionStrategy.eachDependency { DependencyResolveDetails details ->

durian-swt/build.gradle

+5-5
Original file line numberDiff line numberDiff line change
@@ -1,15 +1,15 @@
11
apply plugin: 'com.diffplug.gradle.eclipse.mavencentral'
22
eclipseMavenCentral {
33
release SWT_VERSION, {
4-
implementation 'org.eclipse.swt'
5-
implementation 'org.eclipse.jface'
4+
api 'org.eclipse.swt'
5+
api 'org.eclipse.jface'
66
useNativesForRunningPlatform()
77
}
88
}
99
dependencies {
10-
implementation project(':durian-swt.os')
11-
implementation "com.diffplug.durian:durian-rx:$VER_DURIAN_RX"
12-
implementation "io.reactivex.rxjava2:rxjava:$VER_RXJAVA"
10+
api project(':durian-swt.os')
11+
api "com.diffplug.durian:durian-rx:$VER_DURIAN_RX"
12+
api "io.reactivex.rxjava2:rxjava:$VER_RXJAVA"
1313
implementation "com.diffplug.durian:durian-core:$VER_DURIAN"
1414
implementation "com.diffplug.durian:durian-collect:$VER_DURIAN"
1515
implementation "com.diffplug.durian:durian-concurrent:$VER_DURIAN"

0 commit comments

Comments
 (0)