-
Notifications
You must be signed in to change notification settings - Fork 6
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
* Reorganize the project in convention scripts * Managed to get the aggregated javadocs * Dokka now works!
- Loading branch information
1 parent
74cab53
commit b0afbe1
Showing
25 changed files
with
191 additions
and
137 deletions.
There are no files selected for viewing
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,43 @@ | ||
|
||
import net.ltgt.gradle.errorprone.errorprone | ||
|
||
plugins { | ||
java | ||
id("net.ltgt.errorprone") | ||
id("com.diffplug.spotless") | ||
} | ||
|
||
dependencies { errorprone("com.google.errorprone:error_prone_core:2.28.0") } | ||
|
||
// Configure the java toolchain to use. If not found, it will be downloaded automatically | ||
java { | ||
toolchain { languageVersion = JavaLanguageVersion.of(11) } | ||
|
||
withJavadocJar() | ||
withSourcesJar() | ||
} | ||
|
||
tasks.withType<JavaCompile>().configureEach { | ||
options.errorprone.disableWarningsInGeneratedCode.set(true) | ||
options.errorprone.disable( | ||
// We use toString() in proto messages for debugging reasons. | ||
"LiteProtoToString", | ||
// This check is proposing to use a guava API instead... | ||
"StringSplitter", | ||
// This is conflicting with a javadoc warn lint | ||
"MissingSummary" | ||
) | ||
options.errorprone.excludedPaths.set(".*/build/generated/.*") | ||
} | ||
|
||
tasks.withType<Test> { useJUnitPlatform() } | ||
|
||
configure<com.diffplug.gradle.spotless.SpotlessExtension> { | ||
java { | ||
targetExclude("build/**/*.java") | ||
|
||
googleJavaFormat() | ||
|
||
licenseHeaderFile("$rootDir/config/license-header") | ||
} | ||
} |
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,19 @@ | ||
plugins { | ||
kotlin("jvm") | ||
kotlin("plugin.serialization") | ||
id("com.diffplug.spotless") | ||
} | ||
|
||
kotlin { | ||
jvmToolchain(11) | ||
} | ||
|
||
tasks.withType<Test> { useJUnitPlatform() } | ||
|
||
configure<com.diffplug.gradle.spotless.SpotlessExtension> { | ||
kotlin { | ||
targetExclude("build/generated/**/*.kt") | ||
ktfmt() | ||
licenseHeaderFile("$rootDir/config/license-header") | ||
} | ||
} |
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,9 @@ | ||
configurations { register("testArchive") } | ||
|
||
tasks.register<Jar>("testJar") { | ||
archiveClassifier.set("tests") | ||
|
||
from(project.the<SourceSetContainer>()["test"].output) | ||
} | ||
|
||
artifacts { add("testArchive", tasks["testJar"]) } |
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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,17 @@ | ||
plugins { id("io.freefair.aggregate-javadoc") version "8.6" } | ||
|
||
rootProject.subprojects | ||
.filter { it.name != "examples" } | ||
.forEach { | ||
it.plugins.withId("java") { | ||
// Add dependency | ||
dependencies.javadoc(it) | ||
|
||
tasks.javadoc { classpath += it.configurations["compileClasspath"] } | ||
} | ||
} | ||
|
||
tasks.javadoc { | ||
title = "Restate SDK-Java documentation" | ||
options.windowTitle = "Restate SDK-Java documentation" | ||
} |
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 |
---|---|---|
@@ -1,4 +1,5 @@ | ||
plugins { | ||
`java-conventions` | ||
`java-library` | ||
`library-publishing-conventions` | ||
} | ||
|
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
Oops, something went wrong.