-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle
57 lines (49 loc) · 1.31 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
plugins {
id 'java'
id 'org.jetbrains.kotlin.jvm' version '1.4.32'
id 'org.jetbrains.kotlin.plugin.serialization' version '1.5.0'
id 'maven-publish'
}
group 'ru.kinjalik'
version '0.2.15'
repositories {
mavenCentral()
}
configurations {
ktlint
runtimeClasspaht
}
dependencies {
implementation "org.jetbrains.kotlinx:kotlinx-serialization-json:1.2.0"
testImplementation 'org.junit.jupiter:junit-jupiter-engine:5.7.0'
ktlint "com.pinterest:ktlint:0.41.0"
}
task lint(type: JavaExec, group: "verification") {
description = "Kotlin code style check."
classpath = configurations.ktlint
main = "com.pinterest.ktlint.Main"
args "src/**/*.kt --disabled-rules=import-ordering"
}
test {
useJUnitPlatform()
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/kinjalik/AlmostSecureStorageCore")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
}
publications {
gpr(MavenPublication) {
groupId = "ru.kinjalik"
artifactId = "almost-secure-storage-core"
version = project.version
from(components.java)
}
}
}