-
Notifications
You must be signed in to change notification settings - Fork 6
/
build.gradle
120 lines (94 loc) · 3.27 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.6.20'
id 'com.adarshr.test-logger' version '2.1.0'
id 'org.jetbrains.dokka' version "1.4.32"
id 'maven'
id 'signing'
}
group 'ee.nx-01.tonclient'
sourceCompatibility = 8
targetCompatibility = 8
repositories {
mavenCentral()
}
def ossrhPassword = System.getenv('OSSRH_PASSWORD')
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
test {
useJUnitPlatform()
}
task javadocJar(type: Jar, dependsOn: javadoc) {
classifier = 'javadoc'
from 'build/dokka/javadoc'
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
classifier = 'sources'
}
artifacts {
archives javadocJar, sourcesJar
}
signing {
def gpgKey = findProperty("gpgKey")
def gpgPassword = System.getenv('GPG_PASSWORD')
useInMemoryPgpKeys(gpgKey, gpgPassword)
sign configurations.archives
}
uploadArchives {
repositories {
mavenDeployer {
beforeDeployment { MavenDeployment deployment -> signing.signPom(deployment) }
repository(url: "https://s01.oss.sonatype.org/service/local/staging/deploy/maven2/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
snapshotRepository(url: "https://s01.oss.sonatype.org/content/repositories/snapshots/") {
authentication(userName: ossrhUsername, password: ossrhPassword)
}
pom.project {
name 'ton-client-kotlin'
packaging 'jar'
description 'A application used as an example on how to set up pushing its components to the Central Repository.'
url 'https://github.com/mdorofeev/ton-client-kotlin'
scm {
connection 'https://github.com/mdorofeev/ton-client-kotlin.git'
developerConnection 'https://github.com/mdorofeev/ton-client-kotlin.git'
url 'https://github.com/mdorofeev/ton-client-kotlin'
}
licenses {
license {
name 'The Apache License, Version 2.0'
url 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id 'mdorofeev'
name 'Maxim Dorofeev'
email 'mdorofeev@gmail.com'
}
}
}
}
}
}
dependencies {
implementation "org.jetbrains.kotlin:kotlin-stdlib"
implementation 'org.jetbrains.kotlinx:kotlinx-coroutines-core:1.6.4'
implementation 'org.scijava:native-lib-loader:2.4.0'
implementation 'org.jetbrains.kotlin:kotlin-reflect:1.7.20'
implementation 'com.fasterxml.jackson.module:jackson-module-kotlin:2.14.0'
implementation('io.github.microutils:kotlin-logging:3.0.4')
testImplementation 'io.kotest:kotest-runner-junit5:5.5.4'
testImplementation 'io.kotest:kotest-assertions-core:5.5.4'
testImplementation 'io.kotest:kotest-property:5.5.4'
testImplementation 'io.mockk:mockk:1.13.2'
testImplementation group: 'org.slf4j', name: 'slf4j-simple', version: '1.7.29'
}