Skip to content

Commit 61a6089

Browse files
authored
change core-runtime dependencies from impl to api (#13)
1 parent fccf255 commit 61a6089

File tree

5 files changed

+9
-5
lines changed

5 files changed

+9
-5
lines changed

README.md

Lines changed: 5 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -82,6 +82,10 @@ The plugin can be called from the Gradle protobuf plugin via additional configur
8282

8383
```groovy
8484
protobuf {
85+
protoc {
86+
artifact = "com.google.protobuf:protoc:$protocVersion"
87+
}
88+
8589
plugins {
8690
flit {
8791
path = "${projectDir}/script/protoc-gen-flit"
@@ -104,7 +108,7 @@ protobuf {
104108

105109
DIR=$(dirname "$0")
106110

107-
JAR=$(ls -c ${DIR}/plugin-*-all.jar | head -1)
111+
JAR=$(ls -c ${DIR}/flit-plugin-*.jar | head -1)
108112
java ${FLIT_JAVA_OPTS} -jar $JAR $@
109113
```
110114
Where the plugin jar is located in the same directly as the script.

runtime/jakarta/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
implementation(project(':runtime:core'))
2+
api(project(':runtime:core'))
33
implementation("jakarta.servlet:jakarta.servlet-api:$jakartaservletapiVersion")
44
implementation("jakarta.ws.rs:jakarta.ws.rs-api:$jakartawsrsapiVersion")
55
implementation("org.slf4j:slf4j-api:$slf4jVersion")

runtime/jaxrs/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
implementation(project(':runtime:core'))
2+
api(project(':runtime:core'))
33
implementation("javax.servlet:javax.servlet-api:$javaxservletapiVersion")
44
implementation("javax.ws.rs:javax.ws.rs-api:$javaxwsrsapiVersion")
55
implementation("org.slf4j:slf4j-api:$slf4jVersion")

runtime/spring/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
compileOnly(project(':runtime:core'))
2+
api(project(':runtime:core'))
33
compileOnly("org.slf4j:slf4j-api:$slf4jVersion")
44
compileOnly("javax.servlet:javax.servlet-api:$javaxservletapiVersion")
55
compileOnly("org.springframework:spring-webmvc:$springVersion")

runtime/undertow/build.gradle

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
dependencies {
2-
implementation(project(':runtime:core'))
2+
api(project(':runtime:core'))
33
compileOnly("org.slf4j:slf4j-api:$slf4jVersion")
44
compileOnly("io.undertow:undertow-core:$undertowVersion")
55
}

0 commit comments

Comments
 (0)