-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
89 lines (78 loc) · 2.3 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
plugins {
id 'java-library'
id 'maven-publish'
id 'org.jetbrains.kotlin.jvm' version '1.5.31'
id 'ru.kontur.kinfra.presets' version '1.5'
id 'signing'
}
ext {
versions = [
assertj : '3.14.0',
coroutines: '1.4.3',
]
}
group = "ru.kontur.kinfra"
version = "1.7"
archivesBaseName = "kinfra-commons"
dependencies {
implementation platform("org.jetbrains.kotlinx:kotlinx-coroutines-bom:${versions.coroutines}")
implementation "org.jetbrains.kotlinx:kotlinx-coroutines-jdk8"
testImplementation "org.assertj:assertj-core:${versions.assertj}"
}
kotlin {
explicitApi()
}
signing {
sign publishing.publications
}
java {
withJavadocJar()
withSourcesJar()
}
jar {
manifest.attributes "Automatic-Module-Name": "ru.kontur.kinfra.commons"
}
publishing {
publications{
maven(MavenPublication) {
pom {
name = 'kinfra-commons'
group = 'ru.kontur.kinfra'
artifactId = 'kinfra-commons'
description = 'Common utils for kinfra'
url = 'https://github.com/kinfra/kinfra-commons'
licenses {
license {
name = 'MIT License'
url = 'http://www.opensource.org/licenses/mit-license.php'
}
}
developers {
developer {
id = 'frost13it'
name = 'Vladimir Petrakovich'
email = '[email protected]'
}
}
scm {
connection = "scm:git:git://github.com:kinfra/kinfra-commons.git"
developerConnection = 'scm:git:ssh://github.com:kinfra/kinfra-commons.git'
url = 'https://github.com/kinfra/kinfra-commons'
}
}
}
}
repositories {
def properties = project.properties
def repoUrl = properties["publishing.repo.url"]
if (repoUrl) {
maven {
url = repoUrl
credentials {
username = properties["publishing.repo.username"]
password = properties["publishing.repo.password"]
}
}
}
}
}