-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
129 lines (114 loc) · 3.63 KB
/
build.gradle
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
64
65
66
67
68
69
70
71
72
73
74
75
76
77
78
79
80
81
82
83
84
85
86
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
buildscript {
repositories {
jcenter()
}
dependencies {
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.+'
}
}
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.50'
id "com.github.johnrengelman.shadow" version "2.0.2"
id 'maven-publish'
id "com.jfrog.bintray" version "1.8.0"
}
repositories {
jcenter()
maven { url 'https://oss.jfrog.org/artifactory/oss-snapshot-local' }
maven { url 'https://dl.bintray.com/jannis/kotlin-pretty' }
maven { url 'https://dl.bintray.com/jannis/kparsec' }
}
apply plugin: 'kotlin-kapt'
group 'propCheck'
version '0.10.0'
def arrow_version = "0.10.5-SNAPSHOT"
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
kapt "io.arrow-kt:arrow-meta:$arrow_version" // auto generation for @extension and @higherkind
implementation "io.arrow-kt:arrow-fx:$arrow_version" // IO and arrow fx
implementation "io.arrow-kt:arrow-free:$arrow_version" // Trampoline for stacksafety tests
implementation "io.arrow-kt:arrow-optics:$arrow_version" // lenses and @optics
implementation "io.arrow-kt:arrow-syntax:$arrow_version" // helper functions like curried...
implementation "io.arrow-kt:arrow-mtl:$arrow_version" // StateT, Reader, Writer...
implementation "io.arrow-kt:arrow-recursion:$arrow_version" // Recursion schemes
implementation "kotlin-pretty:kotlin-pretty:0.5.0" // Pretty printing diffs
implementation "kotlin-pretty:kotlin-pretty-ansi:0.5.0" // Ansi terminal support with colors
implementation "kparsec:kparsec:0.2.1" // Parser combinators to create toString-output parser
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.4.2") {
exclude group: "io.arrow-kt"
}
testImplementation("io.arrow-kt:arrow-test:$arrow_version") { // test helpers and laws
exclude group: "io.kotlintest"
}
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
def pomConfig = {
licenses {
license {
name "BSD 3-Clause"
url "https://github.com/1Jajen1/propCheck/blob/master/LICENSE"
distribution "repo"
}
}
developers {
developer {
id "jannis"
name "Jannis Overesch"
email "[email protected]"
}
}
scm {
url "https://github.com/1Jajen1/propCheck"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
groupId 'propCheck'
artifactId 'propCheck-kt'
version '0.10.0'
pom.withXml {
def root = asNode()
root.appendNode('description', 'Property based testing for kotlin')
root.appendNode('name', 'propCheck-kt')
root.appendNode('url', 'https://github.com/1Jajen1/propCheck')
root.children().last() + pomConfig
}
}
}
}
bintray {
publish = true
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['mavenPublication']
pkg {
repo = 'propCheck-kt'
name = 'propCheck-kt'
licenses = ['BSD 3-Clause']
vcsUrl = 'https://github.com/1Jajen1/propCheck'
version {
name = '0.10.0'
released = new Date()
}
}
}