-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle
95 lines (80 loc) · 2.44 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
group 'io.github.aedans'
version '0.7.0'
buildscript {
ext.kotlin_version = '1.2.31'
repositories {
mavenCentral()
jcenter()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath 'com.jfrog.bintray.gradle:gradle-bintray-plugin:1.7.3'
}
}
apply plugin: 'java'
apply plugin: 'kotlin'
apply plugin: 'kotlin-kapt'
apply plugin: 'com.jfrog.bintray'
apply plugin: 'maven-publish'
apply from: rootProject.file('gradle/generated-kotlin-sources.gradle')
sourceCompatibility = 1.8
repositories {
mavenCentral()
jcenter()
maven { url 'https://kotlin.bintray.com/kotlinx' }
maven { url 'https://dl.bintray.com/kategory/maven' }
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
def arrow_version = '0.7.0'
compile "io.arrow-kt:arrow-core:$arrow_version"
compile "io.arrow-kt:arrow-data:$arrow_version"
compile "io.arrow-kt:arrow-syntax:$arrow_version"
compile "io.arrow-kt:arrow-typeclasses:$arrow_version"
compile "io.arrow-kt:arrow-instances-core:$arrow_version"
compile "io.arrow-kt:arrow-instances-data:$arrow_version"
compile "io.arrow-kt:arrow-free:$arrow_version"
kapt "io.arrow-kt:arrow-annotations-processor:$arrow_version"
testCompile "io.arrow-kt:arrow-core:$arrow_version"
testCompile "io.arrow-kt:arrow-data:$arrow_version"
testCompile "io.arrow-kt:arrow-syntax:$arrow_version"
testCompile "io.arrow-kt:arrow-typeclasses:$arrow_version"
testCompile "io.arrow-kt:arrow-instances-core:$arrow_version"
testCompile "io.arrow-kt:arrow-instances-data:$arrow_version"
testCompile "io.arrow-kt:arrow-test:$arrow_version"
kaptTest "io.arrow-kt:arrow-annotations-processor:$arrow_version"
}
kotlin {
experimental {
coroutines "enable"
}
}
task sourcesJar(type: Jar, dependsOn: classes) {
classifier = 'sources'
from sourceSets.main.allSource
}
artifacts {
archives sourcesJar
}
publishing {
publications {
publishToBintray(MavenPublication) {
from components.java
artifact sourcesJar
}
}
}
bintray {
user = System.getenv('BINTRAY_USER')
key = System.getenv('BINTRAY_KEY')
publications = ['publishToBintray']
publish = true
pkg {
repo = 'maven'
name = 'katalyst'
userOrg = user
version {
name = project.version
}
}
}