Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
- Loading branch information
1 parent
9e10884
commit b965407
Showing
62 changed files
with
687 additions
and
895 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 was deleted.
Oops, something went wrong.
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,40 @@ | ||
import org.jetbrains.kotlin.gradle.get | ||
|
||
plugins { | ||
id("java-gradle-plugin") | ||
alias(libs.plugins.arrowGradleConfig.jvm) | ||
alias(libs.plugins.arrowGradleConfig.publishJvm) | ||
} | ||
|
||
sourceSets { | ||
main { | ||
java.srcDirs("src/main/kotlin") | ||
} | ||
test { | ||
java.srcDirs("src/test/kotlin") | ||
} | ||
} | ||
|
||
tasks { | ||
withType<ProcessResources> { | ||
filesMatching("**/plugin.properties") { | ||
filter { it.replace("%CURRENT_VERSION%", properties["projects.version"].toString()) } | ||
filter { it.replace("%KOTLIN_VERSION%", libs.versions.kotlin.get()) } | ||
} | ||
} | ||
} | ||
|
||
gradlePlugin { | ||
plugins { | ||
create("ank") { | ||
id = "ank-gradle-plugin" | ||
implementationClass = "arrow.ank.AnkPlugin" | ||
} | ||
} | ||
} | ||
|
||
tasks.whenTaskAdded { | ||
if (name.matches(".*Plugin.*MavenPublication.*".toRegex())) { | ||
enabled = false | ||
} | ||
} |
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,5 +1,3 @@ | ||
# Maven publishing configuration | ||
POM_NAME=Arrow Ank Gradle Plugin | ||
POM_ARTIFACT_ID=arrow-ank-gradle | ||
POM_PACKAGING=jar | ||
POM_DESCRIPTION=Compile time docs verification and evaluation for Kotlin and Java | ||
pom.name=Arrow Ank Gradle Plugin | ||
pom.description=Compile time docs verification and evaluation for Kotlin and Java |
This file was deleted.
Oops, something went wrong.
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,16 @@ | ||
plugins { | ||
alias(libs.plugins.arrowGradleConfig.jvm) | ||
alias(libs.plugins.arrowGradleConfig.publishJvm) | ||
} | ||
|
||
apply(from = property("DOC_CREATION")) | ||
|
||
dependencies { | ||
implementation(projects.arrowFxCoroutines) | ||
implementation(libs.kotlin.stdlibJDK8) | ||
|
||
implementation(libs.kotlin.compiler) | ||
implementation(libs.kotlin.scriptUtil) | ||
runtimeOnly(libs.kotlin.reflect) | ||
runtimeOnly(libs.kotlin.scriptingCompiler) | ||
} |
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,6 +1,4 @@ | ||
# Maven publishing configuration | ||
POM_NAME=Arrow Ank | ||
POM_ARTIFACT_ID=arrow-ank | ||
POM_PACKAGING=jar | ||
POM_DESCRIPTION=Compile time docs verification and evaluation for Kotlin and Java | ||
pom.name=Arrow Ank | ||
pom.description=Compile time docs verification and evaluation for Kotlin and Java | ||
kapt.incremental.apt=false |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
buildscript { | ||
apply(from = "gradle/setup.gradle") | ||
} | ||
|
||
plugins { | ||
alias(libs.plugins.ktlint) apply false | ||
alias(libs.plugins.dokka) apply false | ||
alias(libs.plugins.animalSniffer) apply false | ||
alias(libs.plugins.kotest.multiplatform) apply false | ||
alias(libs.plugins.kotlin.multiplatform) apply false | ||
alias(libs.plugins.kotlin.binaryCompatibilityValidator) | ||
alias(libs.plugins.arrowGradleConfig.nexus) | ||
} | ||
|
||
apply(from = "gradle/main.gradle") | ||
|
||
tasks { | ||
val generateDoc by creating(Exec::class) { | ||
group = "documentation" | ||
commandLine("sh", "gradlew", "dokkaGfm") | ||
} | ||
val runValidation by creating(Exec::class) { | ||
group = "documentation" | ||
workingDir = file("../arrow-site") | ||
commandLine("sh", "gradlew", "dokkaGfm") | ||
} | ||
val buildDoc by creating(Exec::class) { | ||
group = "documentation" | ||
description = "Generates and validates the documentation" | ||
dependsOn(generateDoc) | ||
dependsOn(runValidation) | ||
} | ||
|
||
runValidation.mustRunAfter(generateDoc) | ||
} | ||
|
||
apiValidation { | ||
ignoredProjects.add("jekyll") | ||
} |
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 +1 @@ | ||
../.editorconfig | ||
../.editorconfig |
This file was deleted.
Oops, something went wrong.
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,32 @@ | ||
plugins { | ||
alias(libs.plugins.arrowGradleConfig.multiplatform) | ||
alias(libs.plugins.arrowGradleConfig.publishMultiplatform) | ||
} | ||
|
||
kotlin { | ||
sourceSets { | ||
commonMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlibCommon) | ||
} | ||
} | ||
jvmMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlibJDK8) | ||
} | ||
} | ||
jvmTest { | ||
dependencies { | ||
runtimeOnly(libs.kotest.runnerJUnit5) | ||
} | ||
} | ||
jsMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlibJS) | ||
} | ||
} | ||
} | ||
} | ||
|
||
apply(from = property("DOC_CREATION")) | ||
apply(from = property("ANIMALSNIFFER_MPP")) |
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,2 @@ | ||
# Maven publishing configuration | ||
POM_NAME=Arrow Annotations | ||
POM_ARTIFACT_ID=arrow-annotations | ||
POM_PACKAGING=jar | ||
pom.name=Arrow Annotations |
This file was deleted.
Oops, something went wrong.
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,39 @@ | ||
plugins { | ||
alias(libs.plugins.arrowGradleConfig.multiplatform) | ||
alias(libs.plugins.arrowGradleConfig.publishMultiplatform) | ||
} | ||
|
||
apply(from = property("TEST_COVERAGE")) | ||
apply(from = property("DOC_CREATION")) | ||
apply(from = property("ANIMALSNIFFER_MPP")) | ||
apply(plugin = "io.kotest.multiplatform") | ||
|
||
kotlin { | ||
sourceSets { | ||
commonMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlibCommon) | ||
} | ||
} | ||
commonTest { | ||
dependencies { | ||
implementation(projects.arrowCoreTest) | ||
} | ||
} | ||
jvmMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlibJDK8) | ||
} | ||
} | ||
jvmTest { | ||
dependencies { | ||
runtimeOnly(libs.kotest.runnerJUnit5) | ||
} | ||
} | ||
jsMain { | ||
dependencies { | ||
implementation(libs.kotlin.stdlibJS) | ||
} | ||
} | ||
} | ||
} |
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,6 +1,4 @@ | ||
# Maven publishing configuration | ||
POM_NAME=Arrow Continuations | ||
POM_ARTIFACT_ID=arrow-continuations | ||
POM_PACKAGING=jar | ||
pom.name=Arrow Continuations | ||
# Build configuration | ||
kapt.incremental.apt=false |
Oops, something went wrong.