-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
118 lines (96 loc) · 2.87 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.4.32'
}
apply plugin: 'maven-publish'
apply plugin: 'signing'
task sourcesJar(type: Jar) {
archiveClassifier = 'sources'
from sourceSets.main.allSource
}
task javadocJar(type: Jar) {
archiveClassifier = 'javadoc'
from javadoc.destinationDir
}
group = 'com.zachary-moore'
version = '0.0.1'
ext.isReleaseVersion = !version.endsWith("SNAPSHOT")
publishing {
publications {
mavenJava(MavenPublication) {
pom {
name = 'huekontrollr'
description = 'Kotlin wrapper around the Hue api to provide convenience functions and data objects'
url = 'https://github.com/zsmoore/huekontrollr'
organization {
name = 'com.zachary-moore'
url = 'https://www.zachary-moore.com'
}
issueManagement {
system = 'GitHub'
url = 'https://github.com/zsmoore/huekontrollr/issues'
}
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'https://github.com/zsmoore/huekontrollr/blob/main/LICENSE'
distribution = 'repo'
}
}
developers {
developer {
id = 'zsmoore'
name = 'Zachary Moore'
email = '[email protected]'
}
}
scm {
connection = 'scm:git:git://github.com/zsmoore/huekontrollr.git'
developerConnection = 'scm:git:ssh://[email protected]:zsmoore/huekontrollr.git'
url = 'https://github.com/zsmoore/huekontrollr'
}
}
from components.kotlin
artifact sourcesJar
artifact javadocJar
}
}
repositories {
maven {
url 'https://oss.sonatype.org/service/local/staging/deploy/maven2'
credentials {
username = sonatypeUsername
password = sonatypePassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}
tasks.withType(Sign) {
onlyIf { isReleaseVersion }
}
repositories {
mavenCentral()
jcenter()
}
java {
withJavadocJar()
withSourcesJar()
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test-junit'
implementation("com.github.kittinunf.fuel:fuel:2.3.1")
implementation("org.json:json:20210307")
implementation 'io.github.microutils:kotlin-logging-jvm:2.0.6'
implementation 'org.slf4j:slf4j-simple:1.7.29'
}
test {
useJUnit()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '1.8'
}