-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle.kts
67 lines (56 loc) · 1.63 KB
/
build.gradle.kts
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
import com.novoda.gradle.release.PublishExtension
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
buildscript {
repositories {
jcenter()
}
dependencies {
classpath("com.novoda:bintray-release:0.9")
}
}
apply {
plugin("com.novoda.bintray-release")
}
plugins {
kotlin("jvm") version "1.3.21"
}
val siteUrl = "https://github.com/Tlaster/KotlinPGP"
val gitUrl = "https://github.com/Tlaster/KotlinPGP.git"
val issueUrl = "https://github.com/Tlaster/KotlinPGP/issues"
val groupID = "moe.tlaster"
val artifactID = "kotlinpgp"
val buildNum = System.getenv("TRAVIS_BUILD_NUMBER") ?: 0
group = groupID
version = "1.0.$buildNum"
repositories {
mavenCentral()
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
implementation("org.bouncycastle:bcpg-jdk15on:1.61")
implementation("org.bouncycastle:bcprov-jdk15on:1.61")
testImplementation("io.kotlintest:kotlintest-runner-junit5:3.3.2")
testImplementation(group = "org.slf4j", name = "slf4j-simple", version = "1.7.26")
testImplementation("com.google.guava:guava:27.1-jre")
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = "1.8"
}
val test by tasks.getting(Test::class) {
useJUnitPlatform { }
}
val user = System.getenv("BINTRAY_USERNAME")
val key = System.getenv("BINTRAY_KEY")
configure<PublishExtension> {
userOrg = "tlaster"
repoName = "KotlinPGP"
groupId = "moe.tlaster"
artifactId = "kotlinpgp"
uploadName = "KotlinPGP"
publishVersion = version.toString()
desc = "Kotlin PGP"
bintrayUser = user
bintrayKey = key
website = "https://github.com/Tlaster/KotlinPGP"
dryRun = false
}