-
Notifications
You must be signed in to change notification settings - Fork 2
/
build.gradle
127 lines (102 loc) · 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
plugins {
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
id 'org.jetbrains.dokka' version '1.7.10'
id 'maven-publish'
id 'java-library'
id 'signing'
id 'jacoco'
}
group = 'dev.roava'
sourceCompatibility = JavaVersion.VERSION_1_8
ext {
slf4jVersion = '2.0.0'
junitVersion = '5.9.0'
jacksonVersion = '2.13.3'
retrofitVersion = '2.9.0'
isReleaseVersion = !version.endsWith("SNAPSHOT")
}
repositories {
mavenCentral()
}
dependencies {
testImplementation 'org.jetbrains.kotlin:kotlin-test'
implementation "org.slf4j:slf4j-log4j12:$slf4jVersion"
implementation "org.slf4j:slf4j-api:$slf4jVersion"
implementation "com.fasterxml.jackson.core:jackson-databind:$jacksonVersion"
implementation "com.squareup.retrofit2:retrofit:$retrofitVersion"
implementation "com.squareup.retrofit2:converter-jackson:$retrofitVersion"
compileOnly 'org.jetbrains.dokka:dokka-base:1.7.10'
}
publishing {
publications {
mavenJava(MavenPublication) {
from components.java
pom {
name = 'roava'
description = 'A unique Roblox API wrapper written in Java'
url = 'https://github.com/RoavaDev/Roava'
licenses {
license {
name = 'MIT'
url = 'https://mit-license.org/'
distribution = 'repo'
}
}
issueManagement {
system = 'github'
url = 'https://github.com/StayBlueee/Roava/issues'
}
scm {
url = 'https://github.com/RoavaDev/Roava'
connection = 'scm:git:git://github.com/RoavaDev/Roava.git'
developerConnection = 'scm:git:git://github.com:Roava/Roava.git'
}
developers {
developer {
name = 'Roava Development Team'
}
}
}
}
}
repositories {
maven {
def mavenUsername = findProperty('mavenUsername')
def mavenPassword = findProperty('mavenPassword')
if(isReleaseVersion) {
url = uri("https://m.cpy.wtf/releases")
} else {
url = uri("https://m.cpy.wtf/snapshots")
}
if (mavenUsername != null && mavenPassword != null) {
credentials {
username = mavenUsername
password = mavenPassword
}
}
}
}
}
test {
useJUnitPlatform()
}
compileKotlin {
kotlinOptions.jvmTarget = '1.8'
}
compileTestKotlin {
kotlinOptions.jvmTarget = '1.8'
}
tasks.named("dokkaHtml") {
suppressInheritedMembers.set(true)
}
java {
withJavadocJar()
withSourcesJar()
}
jacocoTestReport() {
reports {
xml.required = true
html.required = true
}
}
test.finalizedBy(jacocoTestReport)