Skip to content

Commit 7142c0b

Browse files
authored
remove wkt reference from local build (#78)
1 parent c5f2a4b commit 7142c0b

File tree

2 files changed

+8
-3
lines changed

2 files changed

+8
-3
lines changed

buildSrc/src/main/kotlin/LocalProtoktBuild.kt

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -27,7 +27,7 @@ val Project.buildSrcClasses
2727

2828
fun Project.localProtokt() {
2929
configureProtokt(this) {
30-
if (name !in setOf("protokt-wkt", "protokt-core")) {
30+
if (name != "protokt-core") {
3131
dependencies {
3232
add(EXTENSIONS, project(":protokt-core"))
3333
}

protokt-gradle-plugin/src/main/kotlin/com/toasttab/protokt/gradle/plugin/BinaryInstaller.kt

Lines changed: 7 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -36,7 +36,10 @@ private fun installBinary(project: Project, artifact: Dependency) {
3636
targetDir.mkdirs()
3737

3838
val toolsArchive = project.zipTree(
39-
project.configurations.getByName(CODEGEN_CONFIGURATION).fileCollection(artifact).singleFile
39+
project.configurations
40+
.getByName(CODEGEN_CONFIGURATION)
41+
.fileCollection(artifact)
42+
.singleFile
4043
)
4144

4245
project.copy {
@@ -62,4 +65,6 @@ private fun configureArtifact(project: Project): Dependency {
6265
}
6366

6467
private fun getTargetDirectory(project: Project) =
65-
project.file("${project.rootDir}/.gradle/tools/$CODEGEN_NAME-$protoktVersion")
68+
project.file(
69+
"${project.rootDir}/.gradle/tools/$CODEGEN_NAME-$protoktVersion"
70+
)

0 commit comments

Comments
 (0)