-
Notifications
You must be signed in to change notification settings - Fork 1
/
build.gradle.kts
61 lines (52 loc) · 1.39 KB
/
build.gradle.kts
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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.3.21"
id("com.jfrog.bintray") version "1.8.4"
`maven-publish`
publishing
}
group = "growatt"
version = "1.0.3"
val sourcesJar by tasks.registering(Jar::class) {
classifier = "sources"
from(sourceSets["main"].allSource)
}
publishing {
publications {
register<MavenPublication>("mavenJava") {
from(components["java"])
}
}
}
bintray {
user = System.getenv("bintrayUser")
key = System.getenv("bintrayApiKey")
setPublications("mavenJava")
with(pkg) {
repo = "maven"
name = "growatt-api"
desc = "Growatt API written for the JVM in Kotlin"
userOrg = "szantogab"
setLicenses("MIT")
vcsUrl = "https://github.com/szantogab/growatt4j.git"
with(version) {
name = project.version.toString()
}
}
}
repositories {
mavenCentral()
maven(url = "https://jitpack.io") {
name = "jitpack"
}
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("com.github.kittinunf.fuel:fuel:2.2.1")
implementation("com.github.kittinunf.fuel:fuel-coroutines:2.2.1")
implementation("com.github.kittinunf.fuel:fuel-gson:2.2.1")
implementation("com.google.code.gson:gson:2.8.5")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}