-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle
62 lines (51 loc) · 1.58 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.3.72'
id "com.jfrog.bintray" version "1.8.5"
id 'maven-publish'
}
repositories {
jcenter()
maven {
url = "https://dl.bintray.com/jhonnold/maven"
}
}
dependencies {
implementation group: "org.jetbrains.kotlin", name: "kotlin-stdlib-jdk8"
testImplementation group: "me.honnold", name: "mpq", version: "1.0.1"
testImplementation group: "org.jetbrains.kotlin", name: "kotlin-test"
testImplementation group: "org.jetbrains.kotlin", name: "kotlin-test-junit"
}
compileKotlin {
kotlinOptions.jvmTarget = "1.8"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "1.8"
}
group 'me.honnold'
version '1.0.6'
publishing {
publications {
s2protocol(MavenPublication) {
from components.java
}
}
repositories {
maven {
name = "GithubPackages"
url = "https://maven.pkg.github.com/jhonnold/s2protocol"
credentials {
username = project.hasProperty("github.user") ? project.property("github.user") : System.getenv("GITHUB_USER")
password = project.hasProperty("github.key") ? project.property("github.key") : System.getenv("GITHUB_KEY")
}
}
}
}
bintray {
user = project.hasProperty("bintray.user") ? project.property("bintray.user") : System.getenv("BINTRAY_USER")
key = project.hasProperty("bintray.key") ? project.property("bintray.key") : System.getenv("BINTRAY_KEY")
publications = ['s2protocol']
pkg {
repo = 'maven'
name = 's2protocol'
}
}