-
Notifications
You must be signed in to change notification settings - Fork 4
/
Copy pathbuild.gradle
135 lines (111 loc) · 3.3 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
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
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
buildscript {
ext.kotlin_version = "1.3.20"
ext.dokka_version = "0.9.17"
repositories {
mavenCentral()
}
dependencies {
classpath "org.jetbrains.kotlin:kotlin-gradle-plugin:$kotlin_version"
classpath "org.jetbrains.dokka:dokka-gradle-plugin:$dokka_version"
}
}
plugins {
id "com.github.ben-manes.versions" version "0.20.0"
}
ext {
// compile
jackson_version = "2.9.8"
okhttp_version = "3.12.1"
slf4j_version = "1.7.25"
// test
junit_version = "5.3.2"
mockk_version = "1.9"
}
apply plugin: 'idea'
apply plugin: 'kotlin'
apply plugin: 'maven-publish'
apply plugin: 'signing'
version = "1.0.0"
archivesBaseName = 'pubg-api-wrapper'
group = 'de.kevcodez.pubg'
repositories {
mavenCentral()
}
dependencies {
compile "org.jetbrains.kotlin:kotlin-stdlib-jdk8:$kotlin_version"
compile "com.fasterxml.jackson.module:jackson-module-kotlin:$jackson_version"
compile "com.fasterxml.jackson.datatype:jackson-datatype-jsr310:$jackson_version"
compile "com.squareup.okhttp3:okhttp:$okhttp_version"
compile "org.slf4j:slf4j-api:$slf4j_version"
testImplementation "org.junit.jupiter:junit-jupiter-api:$junit_version"
testRuntimeOnly "org.junit.jupiter:junit-jupiter-engine:$junit_version"
testCompile "org.slf4j:slf4j-simple:$slf4j_version"
testImplementation "io.mockk:mockk:$mockk_version"
}
compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
test {
useJUnitPlatform()
}
task sourcesJar(type: Jar) {
from sourceSets.main.allSource
}
task javadocJar(type: Jar, dependsOn: project.javadoc) {
from javadoc.destinationDir
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
artifact sourcesJar {
classifier "sources"
}
artifact javadocJar {
classifier "javadoc"
}
pom {
name = 'PUBG-API-Wrapper'
description = 'Playerunknowns Battlegrounds API wrapper written in Kotlin. Requires Java 1.8+'
url = 'https://github.com/kevcodez/pubg-api-kotlin'
licenses {
license {
name = 'MIT License'
url = 'https://github.com/kevcodez/pubg-api-kotlin/blob/master/LICENSE'
}
}
scm {
url = 'https://github.com/kevcodez/pubg-api-kotlin'
connection = 'scm:https://github.com/kevcodez/pubg-api-kotlin.git'
developerConnection = 'scm:git://github.com/kevcodez/pubg-api-kotlin.git'
}
developers {
developer {
id = 'kevcodez'
name = 'Kevin Grüneberg'
email = 'k.grueneberg1994@gmail.com'
}
}
}
}
}
repositories {
maven {
url "https://oss.sonatype.org/service/local/staging/deploy/maven2"
credentials {
username nexusUsername
password nexusPassword
}
}
}
}
signing {
sign publishing.publications.mavenJava
}