forked from sol4k/sol4k
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
109 lines (95 loc) · 3.07 KB
/
build.gradle
File metadata and controls
109 lines (95 loc) · 3.07 KB
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
plugins {
id 'org.jetbrains.kotlin.jvm' version '2.2.10'
id 'org.jetbrains.dokka' version '2.0.0'
id 'com.vanniktech.maven.publish' version '0.34.0'
id 'org.jetbrains.kotlin.plugin.serialization' version '2.2.10'
id 'org.jlleitschuh.gradle.ktlint' version '12.3.0'
}
group = 'org.sol4k'
version = "$currentVersion"
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
implementation 'org.jetbrains.kotlinx:kotlinx-serialization-json:1.9.0'
implementation 'org.sol4k:tweetnacl:0.1.6'
implementation 'org.sol4k:utilities:0.1.0'
testImplementation 'org.jetbrains.kotlin:kotlin-test'
}
test {
useJUnitPlatform()
testLogging.showStandardStreams = true
}
compileKotlin {
compilerOptions {
jvmTarget = org.jetbrains.kotlin.gradle.dsl.JvmTarget.JVM_1_8
languageVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_8
apiVersion = org.jetbrains.kotlin.gradle.dsl.KotlinVersion.KOTLIN_1_8
}
}
kotlin {
jvmToolchain(8)
}
sourceSets {
integrationTest {
kotlin {
compileClasspath += main.output + test.output
runtimeClasspath += main.output + test.output
srcDir file('src/integration-test/kotlin')
}
resources.srcDir file('src/integration-test/resources')
}
}
configurations {
integrationTestImplementation.extendsFrom testImplementation
integrationTestRuntime.extendsFrom testRuntime
}
task integrationTest(type: Test) {
useJUnitPlatform()
group = LifecycleBasePlugin.VERIFICATION_GROUP
description = 'Runs the integration tests.'
testClassesDirs = sourceSets.integrationTest.output.classesDirs
classpath = sourceSets.integrationTest.runtimeClasspath
testLogging.showStandardStreams = true
mustRunAfter tasks.test
systemProperty "E2E_RPC_URL", System.env.E2E_RPC_URL
systemProperty "E2E_SECRET_KEY", System.env.E2E_SECRET_KEY
}
mavenPublishing {
publishToMavenCentral(true)
if (!project.gradle.startParameter.taskNames.any { it.contains("publishToMavenLocal") }) {
signAllPublications()
}
coordinates('org.sol4k', 'sol4k', "$currentVersion")
pom {
name = 'sol4k'
description = 'Kotlin, JVM, and Android client for Solana'
inceptionYear = '2023'
url = 'https://sol4k.org'
licenses {
license {
name = 'The Apache License, Version 2.0'
url = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
distribution = 'http://www.apache.org/licenses/LICENSE-2.0.txt'
}
}
developers {
developer {
id = 'shpota'
name = 'Sasha Shpota'
url = 'https://github.com/shpota/'
}
}
scm {
url = 'https://github.com/sol4k/sol4k/'
connection = 'scm:git:git://github.com/sol4k/sol4k.git'
developerConnection = 'scm:git:ssh://git@github.com/sol4k/sol4k.git'
}
}
}
ktlint {
additionalEditorconfig = [
'ktlint_code_style': 'intellij_idea'
]
}