Skip to content

Commit

Permalink
initial commit
Browse files Browse the repository at this point in the history
  • Loading branch information
kitlangton committed Mar 2, 2023
0 parents commit c8d2f34
Show file tree
Hide file tree
Showing 21 changed files with 1,161 additions and 0 deletions.
19 changes: 19 additions & 0 deletions .github/workflows/release.yml
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 }}
6 changes: 6 additions & 0 deletions .gitignore
Original file line number Diff line number Diff line change
@@ -0,0 +1,6 @@
.bsp
.idea
project/target
target
.DS_Store
.DS_Store
9 changes: 9 additions & 0 deletions .scalafmt.conf
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
19 changes: 19 additions & 0 deletions README.md
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..._
68 changes: 68 additions & 0 deletions build.sbt
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)
Loading

0 comments on commit c8d2f34

Please sign in to comment.