-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
54 lines (44 loc) · 1.29 KB
/
build.gradle.kts
File metadata and controls
54 lines (44 loc) · 1.29 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
import java.util.*
plugins {
java
`maven-publish`
id("com.github.johnrengelman.shadow") version "5.2.0"
id("com.jfrog.bintray") version "1.8.5"
}
group = "me.nahu"
version = "1.1.2"
configure<JavaPluginConvention> {
sourceCompatibility = JavaVersion.VERSION_11
targetCompatibility = sourceCompatibility
}
repositories {
mavenCentral()
}
dependencies {
implementation("com.squareup.retrofit2:retrofit:2.6.2")
implementation("com.squareup.retrofit2:converter-scalars:2.9.0")
implementation("com.squareup.retrofit2:converter-gson:2.9.0")
implementation("com.google.code.gson:gson:2.8.6")
}
publishing.publications.create<MavenPublication> ("mavenJava") {
from(components["java"])
}
bintray {
user = System.getenv("BINTRAY_USER")
key = System.getenv("BINTRAY_API_KEY")
setPublications("mavenJava")
with(pkg) {
repo = "projects"
userOrg = user
name = "java-launch-library"
setLicenses("MIT")
vcsUrl = "https://github.com/NahuLD/java-launch-library.git"
with(version) {
name = project.version.toString()
desc = "Launch Library (launchlibrary.net) API wrapper for Java"
released = Date().toString()
}
}
override = true // just in case
publish = true
}