zio-macros-mock


License

License

GroupId

GroupId

dev.zio
ArtifactId

ArtifactId

zio-macros-mock_sjs0.6_2.11
Last Version

Last Version

0.4.0
Release Date

Release Date

Type

Type

jar
Description

Description

zio-macros-mock
zio-macros-mock
Project URL

Project URL

https://github.com/zio/zio-macros
Project Organization

Project Organization

dev.zio
Source Code Management

Source Code Management

https://github.com/zio/zio-macros

Download zio-macros-mock_sjs0.6_2.11

How to add to project

<!-- https://jarcasting.com/artifacts/dev.zio/zio-macros-mock_sjs0.6_2.11/ -->
<dependency>
    <groupId>dev.zio</groupId>
    <artifactId>zio-macros-mock_sjs0.6_2.11</artifactId>
    <version>0.4.0</version>
</dependency>
// https://jarcasting.com/artifacts/dev.zio/zio-macros-mock_sjs0.6_2.11/
implementation 'dev.zio:zio-macros-mock_sjs0.6_2.11:0.4.0'
// https://jarcasting.com/artifacts/dev.zio/zio-macros-mock_sjs0.6_2.11/
implementation ("dev.zio:zio-macros-mock_sjs0.6_2.11:0.4.0")
'dev.zio:zio-macros-mock_sjs0.6_2.11:jar:0.4.0'
<dependency org="dev.zio" name="zio-macros-mock_sjs0.6_2.11" rev="0.4.0">
  <artifact name="zio-macros-mock_sjs0.6_2.11" type="jar" />
</dependency>
@Grapes(
@Grab(group='dev.zio', module='zio-macros-mock_sjs0.6_2.11', version='0.4.0')
)
libraryDependencies += "dev.zio" % "zio-macros-mock_sjs0.6_2.11" % "0.4.0"
[dev.zio/zio-macros-mock_sjs0.6_2.11 "0.4.0"]

Dependencies

compile (4)

Group / Artifact Type Version
org.scala-lang : scala-library jar 2.11.12
dev.zio : zio-macros-core_sjs0.6_2.11 jar 0.4.0
org.scala-js : scalajs-library_2.11 jar 0.6.28
dev.zio : zio-test_2.11 jar 1.0.0-RC14

provided (3)

Group / Artifact Type Version
org.scala-lang : scala-compiler jar 2.11.12
com.github.ghik : silencer-lib_2.11 jar 1.4.2
org.scala-lang : scala-reflect jar 2.11.12

test (2)

Group / Artifact Type Version
org.scala-js : scalajs-test-interface_2.11 jar 0.6.28
org.scalatest : scalatest_2.11 jar 3.0.8

Project Modules

There are no modules declared in this project.

ZIO-MACROS

CI Release Issues Discord
Build Status Release Artifacts Average time to resolve an issue badge-discord

Zio-macros has been moved into ZIO Core. This repo will no longer be maintained.


Scrap boilerplate in your ZIO projects. Learn more about ZIO at:

This project is a loose collection of different macro-based solutions to simplify your code. Head to the specific docs to learn more about the ones that interest you.

  • accessible - Generate public accessors for ZIO services.
  • mockable - Automatically derive mockable implementations for your services.

Installation

The macros have been split into two subprojects.

  • zio-macros-core has no dependencies other than zio, it contains accessible, delegate and mix
"dev.zio" %% "zio-macros-core" % "<version>"
  • zio-macros-test depends on zio-test and zio-macros-core, it contains mockable
"dev.zio" %% "zio-macros-test" % "<version>"

As this project is heavily using macros you will need to enable them:

  • If using a scala version < 2.13 you need to add the macro paradise compiler plugin.
compilerPlugin(("org.scalamacros" % "paradise"  % "2.1.1") cross CrossVersion.full)
  • If using scala 2.13 you need to add the macro annotation compiler options.
scalacOptions += "-Ymacro-annotations"
dev.zio

ZIO

ZIO — Real World Functional Programming

Versions

Version
0.4.0
0.3.0
0.2.0
0.1.1-2
0.1.1-1
0.1.1
0.1.0