Skip to content

Commit

Permalink
Move KSP into ftl-plugin
Browse files Browse the repository at this point in the history
  • Loading branch information
alecthomas committed Sep 6, 2023
1 parent b07bf86 commit d809c31
Show file tree
Hide file tree
Showing 13 changed files with 12 additions and 106 deletions.
3 changes: 3 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -1,3 +1,6 @@
.git/
.idea/
.gradle/
.hermit/
.vscode/
.idea/
Expand Down
4 changes: 2 additions & 2 deletions examples/echo-kotlin/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -13,8 +13,8 @@ repositories {

dependencies {
implementation("xyz.block.ftl:ftl-runtime")
implementation("xyz.block.ftl:ftl-schema")
ksp("xyz.block.ftl:ftl-schema")
implementation("com.google.devtools.ksp:symbol-processing-api:1.9.0-1.0.11")
ksp(project("xyz.block.ftl:ftl-plugin"))
}

ftl {
Expand Down
1 change: 1 addition & 0 deletions examples/echo-kotlin/gradle.properties
Original file line number Diff line number Diff line change
@@ -1 +1,2 @@
kotlin.code.style=official
org.gradle.caching=true
7 changes: 2 additions & 5 deletions examples/echo-kotlin/settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,3 @@
plugins {}

rootProject.name = "echo"

includeBuild("../../kotlin-runtime/ftl-runtime") {
Expand All @@ -9,9 +7,8 @@ includeBuild("../../kotlin-runtime/ftl-runtime") {
}

includeBuild("../../kotlin-runtime/ftl-plugin")

includeBuild("../../kotlin-runtime/ftl-schema") {
includeBuild("../../kotlin-runtime/ftl-plugin") {
dependencySubstitution {
substitute(module("xyz.block.ftl:ftl-schema")).using(project(":"))
substitute(module("xyz.block.ftl:ftl-plugin")).using(project(":"))
}
}
3 changes: 3 additions & 0 deletions kotlin-runtime/ftl-plugin/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,6 @@
buildscript {
dependencies {
classpath(kotlin("gradle-plugin", version = "1.9.0"))
classpath("com.squareup.wire:wire-gradle-plugin:4.7.2")
}
}
Expand All @@ -8,6 +9,7 @@ plugins {
kotlin("jvm") version "1.9.0"
id("java-gradle-plugin")
id("com.squareup.wire") version "4.7.2"
id("com.google.devtools.ksp") version "1.9.0-1.0.11"
}

repositories {
Expand All @@ -31,6 +33,7 @@ gradlePlugin {

dependencies {
compileOnly(gradleApi())
implementation(libs.kspApi)
implementation(project(":ftl-runtime"))

// Use the Kotlin JUnit 5 integration.
Expand Down
File renamed without changes.
42 changes: 0 additions & 42 deletions kotlin-runtime/ftl-schema/.gitignore

This file was deleted.

1 change: 0 additions & 1 deletion kotlin-runtime/ftl-schema/bin

This file was deleted.

41 changes: 0 additions & 41 deletions kotlin-runtime/ftl-schema/build.gradle.kts

This file was deleted.

15 changes: 0 additions & 15 deletions kotlin-runtime/ftl-schema/settings.gradle.kts

This file was deleted.

1 change: 1 addition & 0 deletions kotlin-runtime/gradle/libs.versions.toml
Original file line number Diff line number Diff line change
Expand Up @@ -25,6 +25,7 @@ grpcNetty = { module = "io.grpc:grpc-netty", version.ref = "grpc" }
grpcProtobuf = { module = "io.grpc:grpc-protobuf", version.ref = "grpc" }
grpcStub = { module = "io.grpc:grpc-stub", version.ref = "grpc" }
kotlinGradlePlugin = { module = "org.jetbrains.kotlin:kotlin-gradle-plugin" }
kspApi = { module = "com.google.devtools.ksp:symbol-processing-api", version = "1.9.0-1.0.11" }

[plugins]
wire = { id = "com.squareup.wire", version.ref = "wire" }

0 comments on commit d809c31

Please sign in to comment.