-
Notifications
You must be signed in to change notification settings - Fork 293
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
introduce common-deps module for classpath isolation
- Loading branch information
Showing
12 changed files
with
90 additions
and
13 deletions.
There are no files selected for viewing
10 changes: 10 additions & 0 deletions
10
api/src/main/kotlin/com/google/devtools/ksp/processing/ExitCode.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,10 @@ | ||
package com.google.devtools.ksp.processing | ||
|
||
enum class ExitCode(code: Int) { | ||
OK(0), | ||
|
||
// Whenever there are some error messages. | ||
PROCESSING_ERROR(1), | ||
|
||
// Let exceptions pop through to the caller. Don't catch and convert them to, e.g., INTERNAL_ERROR. | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,59 @@ | ||
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile | ||
|
||
description = "Kotlin Symbol Processor" | ||
|
||
val kotlinBaseVersion: String by project | ||
val junitVersion: String by project | ||
val googleTruthVersion: String by project | ||
val agpBaseVersion: String by project | ||
val signingKey: String? by project | ||
val signingPassword: String? by project | ||
|
||
tasks.withType<KotlinCompile> { | ||
compilerOptions.freeCompilerArgs.add("-Xjvm-default=all-compatibility") | ||
} | ||
|
||
plugins { | ||
kotlin("jvm") | ||
`maven-publish` | ||
signing | ||
id("org.jetbrains.dokka") | ||
} | ||
|
||
dependencies { | ||
compileOnly(project(":api")) | ||
} | ||
|
||
tasks { | ||
val sourcesJar by creating(Jar::class) { | ||
archiveClassifier.set("sources") | ||
from(project.sourceSets.main.get().allSource) | ||
} | ||
} | ||
|
||
val dokkaJavadocJar by tasks.register<Jar>("dokkaJavadocJar") { | ||
dependsOn(tasks.dokkaJavadoc) | ||
from(tasks.dokkaJavadoc.flatMap { it.outputDirectory }) | ||
archiveClassifier.set("javadoc") | ||
} | ||
|
||
publishing { | ||
publications { | ||
create<MavenPublication>("default") { | ||
artifactId = "symbol-processing-common-deps" | ||
from(components["java"]) | ||
artifact(tasks["sourcesJar"]) | ||
artifact(tasks["dokkaJavadocJar"]) | ||
pom { | ||
name.set("com.google.devtools.ksp:symbol-processing-common-deps") | ||
description.set("Kotlin Symbol processing Gradle Utils") | ||
} | ||
} | ||
} | ||
} | ||
|
||
signing { | ||
isRequired = hasProperty("signingKey") | ||
useInMemoryPgpKeys(signingKey, signingPassword) | ||
sign(extensions.getByType<PublishingExtension>().publications) | ||
} |
2 changes: 1 addition & 1 deletion
2
...com/google/devtools/ksp/impl/KSPConfig.kt → ...tlin/com/google/devtools/ksp/KSPConfig.kt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters