Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
39 changes: 39 additions & 0 deletions .github/workflows/Docs.yml
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
name: Docs

on:
release:
types: [ created ]
workflow_dispatch:

concurrency:
group: "docs"
cancel-in-progress: false

env:
GRADLE_OPTS: -Dorg.gradle.caching=true

jobs:
build:
runs-on: ubuntu-latest
permissions:
contents: read
pages: write
id-token: write

environment:
name: github-pages
url: ${{ steps.deployment.outputs.page_url }}

steps:
- uses: actions/configure-pages@v3
- uses: actions/checkout@v3
- uses: gradle/wrapper-validation-action@v1
- uses: gradle/gradle-build-action@v2
- name: Generate Docs
run: ./gradlew :dokkaHtmlMultiModule
- uses: actions/upload-pages-artifact@v1
with:
path: build/dokka/htmlMultiModule
- name: Deploy to GitHub Pages
id: deployment
uses: actions/deploy-pages@main
16 changes: 2 additions & 14 deletions build-logic/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -9,19 +9,7 @@ dependencies {
implementation("org.jetbrains.kotlinx:binary-compatibility-validator:0.13.1")
implementation("app.cash.sqldelight:gradle-plugin:2.0.0-alpha05")
implementation("app.cash.licensee:licensee-gradle-plugin:1.6.0")
implementation("org.jetbrains.dokka:dokka-gradle-plugin:1.8.10")
}

kotlin {
jvmToolchain {
languageVersion.set(JavaLanguageVersion.of(17))
}
}

gradlePlugin {
plugins {
register("MyRepos") {
id = "MyRepos"
implementationClass = "MyRepos"
}
}
}
kotlin.jvmToolchain(17)
16 changes: 2 additions & 14 deletions build-logic/src/main/kotlin/MyRepos.kt
Original file line number Diff line number Diff line change
@@ -1,17 +1,5 @@
import org.gradle.api.*
import org.gradle.api.artifacts.dsl.*
import org.gradle.api.initialization.*
import org.gradle.kotlin.dsl.*

class MyRepos : Plugin<Settings> {
override fun apply(settings: Settings) {
settings.dependencyResolutionManagement {
repositories {
repos()
}
}
}
}
import org.gradle.api.artifacts.dsl.RepositoryHandler
import org.gradle.kotlin.dsl.maven

fun RepositoryHandler.repos() {
mavenCentral()
Expand Down
5 changes: 5 additions & 0 deletions build-logic/src/main/kotlin/MyRepos.settings.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,5 @@
dependencyResolutionManagement {
repositories {
repos()
}
}
5 changes: 5 additions & 0 deletions build.gradle.kts
Original file line number Diff line number Diff line change
@@ -1,5 +1,10 @@
plugins {
io.github.`gradle-nexus`.`publish-plugin`
org.jetbrains.dokka
}

tasks.dokkaHtmlMultiModule {
includes.from("README.md")
}

nexusPublishing {
Expand Down
Binary file modified gradle/wrapper/gradle-wrapper.jar
Binary file not shown.
2 changes: 1 addition & 1 deletion gradle/wrapper/gradle-wrapper.properties
Original file line number Diff line number Diff line change
@@ -1,6 +1,6 @@
distributionBase=GRADLE_USER_HOME
distributionPath=wrapper/dists
distributionUrl=https\://services.gradle.org/distributions/gradle-8.0-rc-2-bin.zip
distributionUrl=https\://services.gradle.org/distributions/gradle-8.1.1-bin.zip
networkTimeout=10000
zipStoreBase=GRADLE_USER_HOME
zipStorePath=wrapper/dists
7 changes: 4 additions & 3 deletions gradlew
Original file line number Diff line number Diff line change
Expand Up @@ -85,9 +85,6 @@ done
APP_BASE_NAME=${0##*/}
APP_HOME=$( cd "${APP_HOME:-./}" && pwd -P ) || exit

# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Use the maximum available, or set MAX_FD != -1 to use that value.
MAX_FD=maximum

Expand Down Expand Up @@ -197,6 +194,10 @@ if "$cygwin" || "$msys" ; then
done
fi


# Add default JVM options here. You can also use JAVA_OPTS and GRADLE_OPTS to pass JVM options to this script.
DEFAULT_JVM_OPTS='"-Xmx64m" "-Xms64m"'

# Collect all arguments for the java command;
# * $DEFAULT_JVM_OPTS, $JAVA_OPTS, and $GRADLE_OPTS can contain fragments of
# shell script including quotes and variable substitutions, so put them in
Expand Down
1 change: 1 addition & 0 deletions postgres-native-sqldelight-dialect/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -6,6 +6,7 @@ plugins {
repos
publish
exclude
org.jetbrains.dokka
}

java {
Expand Down
1 change: 1 addition & 0 deletions postgres-native-sqldelight-driver/build.gradle.kts
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ plugins {
app.cash.licensee
repos
publish
org.jetbrains.dokka
}

kotlin {
Expand Down