This repository has been archived by the owner on Oct 18, 2024. It is now read-only.
generated from bkbnio/sourdough-kt
-
Notifications
You must be signed in to change notification settings - Fork 0
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
Showing
8 changed files
with
138 additions
and
50 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,47 +1,53 @@ | ||
name: Publish to GitHub Packages | ||
name: Publish Release | ||
on: | ||
release: | ||
types: | ||
- prereleased | ||
- released | ||
#env: | ||
# ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SONATYPE_SIGNING_KEY }} | ||
# ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }} | ||
env: | ||
ORG_GRADLE_PROJECT_signingKey: ${{ secrets.SONATYPE_SIGNING_KEY }} | ||
ORG_GRADLE_PROJECT_signingPassword: ${{ secrets.SONATYPE_SIGNING_PASSWORD }} | ||
jobs: | ||
publish-to-github: | ||
publish-to-nexus: | ||
runs-on: ubuntu-latest | ||
steps: | ||
- uses: actions/checkout@v2 | ||
- uses: actions/setup-java@v2 | ||
- uses: actions/checkout@v3 | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
- name: Publish to GitHub Packages | ||
- name: Publish to Maven Central | ||
uses: burrunan/gradle-cache-action@v1 | ||
with: | ||
gradle-version: wrapper | ||
arguments: publishAllPublicationsToGithubPackagesRepository | ||
arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
properties: | | ||
release=true | ||
org.gradle.vfs.watch=false | ||
org.gradle.vfs.verbose=false | ||
env: | ||
GITHUB_TOKEN: ${{ secrets.GITHUB_TOKEN }} | ||
# publish-to-nexus: | ||
# runs-on: ubuntu-latest | ||
# steps: | ||
# - uses: actions/checkout@v2 | ||
# - uses: actions/setup-java@v2 | ||
# with: | ||
# distribution: 'adopt' | ||
# java-version: '17' | ||
# - name: Publlish to GithubPackages | ||
# uses: burrunan/gradle-cache-action@v1 | ||
# with: | ||
# gradle-version: wrapper | ||
# arguments: publishToSonatype closeAndReleaseSonatypeStagingRepository | ||
# properties: | | ||
# release=true | ||
# org.gradle.vfs.watch=false | ||
# org.gradle.vfs.verbose=false | ||
# | ||
ORG_GRADLE_PROJECT_sonatypeUsername: ${{ secrets.SONATYPE_USER }} | ||
ORG_GRADLE_PROJECT_sonatypePassword: ${{ secrets.SONATYPE_PASSWORD }} | ||
build-documentation: | ||
runs-on: ubuntu-latest | ||
needs: | ||
- publish-to-nexus | ||
steps: | ||
- uses: actions/checkout@v3 | ||
with: | ||
token: ${{ secrets.PERSONAL_ACCESS_TOKEN }} | ||
- uses: actions/setup-java@v3 | ||
with: | ||
distribution: 'adopt' | ||
java-version: '17' | ||
- name: Build New Documentation | ||
uses: burrunan/gradle-cache-action@v1 | ||
with: | ||
gradle-version: wrapper | ||
arguments: dokkaHtmlMultiModule | ||
properties: | | ||
release=true | ||
- name: Push New Documentation | ||
uses: EndBug/add-and-commit@v9 | ||
with: | ||
default_author: github_actions | ||
new_branch: main | ||
message: 'doc: Added Latest 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
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,38 @@ | ||
# Lerasium | ||
|
||
Welcome to Lerasium, a highly opinionated service generator for Kotlin | ||
|
||
## How to install | ||
|
||
Lerasium publishes all releases to Maven Central. As such, using the release versions of `Lerasium` is as simple as | ||
declaring the dependencies block of your `build.gradle.kts` | ||
|
||
```kotlin | ||
repositories { | ||
mavenCentral() | ||
} | ||
|
||
dependencies { | ||
ksp("io.bkbn:lerasium-api-processor:latest.release") | ||
implementation("io.bkbn:lerasium-api:latest.release") | ||
} | ||
``` | ||
|
||
In addition to publishing releases to Maven Central, a snapshot version gets published to GitHub Packages on every merge | ||
to `main`. These can be consumed by adding the repository to your gradle build file. Instructions can be | ||
found [here](https://docs.github.com/en/packages/working-with-a-github-packages-registry/working-with-the-gradle-registry#using-a-published-package) | ||
|
||
### Add the generated code as a source set | ||
|
||
TODO | ||
|
||
## Lerasium In a Nutshell | ||
|
||
TODO | ||
|
||
## The Playground | ||
|
||
In addition to the documentation available here, Lerasium has a working example available in the | ||
playground module. | ||
|
||
Go ahead and fork the repo and run it directly to get a sense of what Lerasium can do! |
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,3 +1,32 @@ | ||
# Lerasium | ||
|
||
TODO | ||
[![version](https://img.shields.io/maven-central/v/io.bkbn/lerasium-core?style=flat-square)](https://search.maven.org/search?q=io.bkbn%20lerasium-core) | ||
|
||
## Table of Contents | ||
|
||
- [What Is Lerasium](#what-is-lerasium) | ||
- [Library Details](#library-details) | ||
- [Local Development](#local-development) | ||
- [The Playground](#the-playground) | ||
|
||
## What is Lerasium | ||
|
||
In a sentence, Lerasium is a highly opinionated service generator for Kotlin. It takes in a domain definition, and | ||
generates | ||
the boilerplate for your ORM, DAO, and API. | ||
|
||
# Library Details | ||
|
||
Library documentation lives alongside the source code, and is generated into a static site via Dokka. Can be | ||
viewed [here](https://bkbnio.github.io/lerasium) | ||
|
||
## Local Development | ||
|
||
Lerasium should run locally right out of the box, no configuration necessary (assuming you have JDK 17+ installed). | ||
New features can be built locally and published to your local maven repository with the `./gradlew publishToMavenLocal` | ||
command! | ||
|
||
## The Playground | ||
|
||
This repo contains a `playground` module that contains a working example showcasing the power of Lerasium. Clone the | ||
repo and give it a spin! |
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,15 @@ | ||
{ | ||
"extends": [ | ||
"config:base" | ||
], | ||
"packageRules": [ | ||
{ | ||
"matchUpdateTypes": ["minor", "patch", "pin", "digest"], | ||
"automerge": true | ||
}, | ||
{ | ||
"matchPackagePatterns": ["ktor"], | ||
"groupName": "ktor" | ||
} | ||
] | ||
} |