-
Notifications
You must be signed in to change notification settings - Fork 0
/
library.gradle
86 lines (70 loc) · 2.07 KB
/
library.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
apply plugin: 'kotlin'
apply plugin: 'org.jetbrains.dokka'
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
testImplementation "org.jetbrains.kotlin:kotlin-test"
testImplementation "org.jetbrains.kotlin:kotlin-test-junit"
}
compileKotlin {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
kotlinOptions {
jvmTarget = "1.8"
apiVersion = "1.6"
languageVersion = "1.7"
}
}
compileTestKotlin {
sourceCompatibility = JavaVersion.VERSION_1_8
targetCompatibility = JavaVersion.VERSION_1_8
kotlinOptions {
jvmTarget = "1.8"
apiVersion = "1.6"
languageVersion = "1.7"
}
}
java {
withSourcesJar()
}
publishing {
repositories {
maven {
name = "OSSRH"
url = "https://oss.sonatype.org/service/local/staging/deploy/maven2/"
credentials {
username = System.getenv("MAVEN_USERNAME")
password = System.getenv("MAVEN_PASSWORD")
}
}
}
publications {
mavenJava(MavenPublication) {
from(components.java)
pom {
name = 'Kohmon'
description = 'Collection of kotlin common helper'
url = 'https://github.com/mailtarget/kohmon'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'mtarget'
name = 'MTARGET Dev'
email = 'dev@mtarget.co'
}
}
scm {
connection = 'scm:git:git://github.com//mailtarget/kohmon.git'
url = 'https://github.com/mailtarget/kohmon'
}
}
}
}
}
signing {
sign publishing.publications.mavenJava
}