This repository has been archived by the owner on Nov 7, 2023. It is now read-only.
-
Notifications
You must be signed in to change notification settings - Fork 3
/
build.gradle
132 lines (105 loc) · 3.24 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
130
131
132
plugins {
// Apply the org.jetbrains.kotlin.jvm Plugin to add support for Kotlin.
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
// Apply the java-library plugin for API and implementation separation.
id 'java-library'
id "com.github.ben-manes.versions" version "0.42.0"
id "maven-publish"
id "com.jfrog.bintray" version "1.8.5"
}
String currentVersion = '0.4.0'
group = 'io.supabase'
version = currentVersion
repositories {
mavenCentral()
}
dependencies {
implementation "org.apache.httpcomponents.client5:httpclient5:5.1.3"
// Align versions of all Kotlin components
implementation platform('org.jetbrains.kotlin:kotlin-bom')
implementation 'org.jetbrains.kotlin:kotlin-stdlib-jdk8'
implementation "com.fasterxml.jackson.module:jackson-module-kotlin:2.13.3"
implementation "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:2.13.3"
testImplementation 'org.junit.jupiter:junit-jupiter:5.8.2'
testImplementation "io.mockk:mockk:1.12.4"
testImplementation 'com.willowtreeapps.assertk:assertk-jvm:0.25'
testImplementation "com.github.tomakehurst:wiremock-jre8:2.33.2"
}
compileKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = '1.8'
}
}
test {
useJUnitPlatform()
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: project.javadoc) {
from javadoc.destinationDir
}
def pomConfig = {
licenses {
license {
name "The MIT License"
url "https://opensource.org/licenses/MIT"
distribution "repo"
}
}
developers {
developer {
id "kevcodez"
name "Kevin Grüneberg"
email "[email protected]"
}
}
scm {
url "https://github.com/supabase/gotrue-kt"
}
}
publishing {
publications {
mavenPublication(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
groupId 'io.supabase'
artifactId 'gotrue-kt'
pom.withXml {
def root = asNode()
root.appendNode('description', 'Kotlin JVM client for Netlify\'s GoTrue API.')
root.appendNode('name', 'GoTrue Kotlin')
root.appendNode('url', 'https://github.com/supabase/gotrue-kt')
root.children().last() + pomConfig
}
}
}
}
bintray {
user = System.getenv("bintray_user") ?: findProperty("bintray_user")
key = System.getenv("bintray_key") ?: findProperty("bintray_key")
publications = ['mavenPublication']
publish = true
pkg {
repo = 'supabase'
name = 'gotrue-kt'
userOrg = 'supabase'
licenses = ['MIT']
vcsUrl = 'https://github.com/supabase/gotrue-kt.git'
version {
name = currentVersion
desc = currentVersion
released = new Date()
}
}
}