-
Notifications
You must be signed in to change notification settings - Fork 20
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
0 parents
commit c8d2f34
Showing
21 changed files
with
1,161 additions
and
0 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
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,19 @@ | ||
name: Release | ||
on: | ||
push: | ||
branches: [master, main] | ||
tags: ["*"] | ||
jobs: | ||
publish: | ||
runs-on: ubuntu-20.04 | ||
steps: | ||
- uses: actions/[email protected] | ||
with: | ||
fetch-depth: 0 | ||
- uses: olafurpg/setup-scala@v10 | ||
- run: sbt ci-release | ||
env: | ||
PGP_PASSPHRASE: ${{ secrets.PGP_PASSPHRASE }} | ||
PGP_SECRET: ${{ secrets.PGP_SECRET }} | ||
SONATYPE_PASSWORD: ${{ secrets.SONATYPE_PASSWORD }} | ||
SONATYPE_USERNAME: ${{ secrets.SONATYPE_USERNAME }} |
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,6 @@ | ||
.bsp | ||
.idea | ||
project/target | ||
target | ||
.DS_Store | ||
.DS_Store |
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 @@ | ||
version = 3.7.2 | ||
runner.dialect = scala3 | ||
|
||
maxColumn = 120 | ||
align.preset = most | ||
align.multiline = false | ||
rewrite.rules = [RedundantBraces, RedundantParens] | ||
rewrite.scala3.convertToNewSyntax = true | ||
rewrite.scala3.removeOptionalBraces = true |
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 @@ | ||
# neotype | ||
|
||
[![Release Artifacts][Badge-SonatypeReleases]][Link-SonatypeReleases] | ||
[![Snapshot Artifacts][Badge-SonatypeSnapshots]][Link-SonatypeSnapshots] | ||
|
||
[Badge-SonatypeReleases]: https://img.shields.io/nexus/r/https/oss.sonatype.org/io.github.kitlangton/neotype.svg "Sonatype Releases" | ||
[Badge-SonatypeSnapshots]: https://img.shields.io/nexus/s/https/oss.sonatype.org/io.github.kitlangton/neotype.svg "Sonatype Snapshots" | ||
[Link-SonatypeSnapshots]: https://oss.sonatype.org/content/repositories/snapshots/io/github/kitlangton/neotype/ "Sonatype Snapshots" | ||
[Link-SonatypeReleases]: https://oss.sonatype.org/content/repositories/releases/io/github/kitlangton/neotype/ "Sonatype Releases" | ||
|
||
A friendly newtype library for Scala 3. | ||
|
||
```scala | ||
"io.github.kitlangton" %% "neotype" % "0.0.1" | ||
``` | ||
|
||
## Overview | ||
|
||
_Coming Very Soon..._ |
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,68 @@ | ||
inThisBuild( | ||
List( | ||
name := "neotype", | ||
normalizedName := "neotype", | ||
organization := "io.github.kitlangton", | ||
scalaVersion := "3.2.2", | ||
homepage := Some(url("https://github.com/kitlangton/neotype")), | ||
licenses := List("Apache-2.0" -> url("https://www.apache.org/licenses/LICENSE-2.0")), | ||
developers := List( | ||
Developer("kitlangton", "Kit Langton", "[email protected]", url("https://github.com/kitlangton")) | ||
) | ||
) | ||
) | ||
|
||
Global / onChangedBuildSource := ReloadOnSourceChanges | ||
|
||
val zioVersion = "2.0.9" | ||
|
||
val sharedSettings = Seq( | ||
scalacOptions ++= Seq( | ||
"-deprecation", | ||
// "-explain" | ||
"-Xcheck-macros" | ||
// "-Ycheck:all" | ||
), | ||
libraryDependencies ++= Seq( | ||
"dev.zio" %% "zio-test" % zioVersion % Test, | ||
"dev.zio" %% "zio-test-sbt" % zioVersion % Test | ||
) | ||
) | ||
|
||
lazy val root = (project in file(".")) | ||
.settings( | ||
name := "neotype" | ||
) | ||
.aggregate( | ||
core, | ||
zioJson, | ||
zioQuill | ||
) | ||
|
||
lazy val core = (project in file("modules/core")) | ||
.settings( | ||
name := "neotype", | ||
sharedSettings | ||
) | ||
|
||
lazy val zioJson = (project in file("modules/neotype-zio-json")) | ||
.settings( | ||
name := "neotype-zio-json", | ||
sharedSettings, | ||
libraryDependencies ++= Seq( | ||
"dev.zio" %% "zio-json" % "0.4.2" | ||
) | ||
) | ||
.dependsOn(core) | ||
|
||
lazy val zioQuill = (project in file("modules/neotype-zio-quill")) | ||
.settings( | ||
name := "neotype-zio-quill", | ||
sharedSettings, | ||
libraryDependencies ++= Seq( | ||
"io.getquill" %% "quill-jdbc-zio" % "4.6.0.1", | ||
"org.postgresql" % "postgresql" % "42.5.4" % Test, | ||
"com.h2database" % "h2" % "2.1.214" % Test | ||
) | ||
) | ||
.dependsOn(core) |
Oops, something went wrong.