-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathbuild.gradle
More file actions
67 lines (57 loc) · 1.48 KB
/
build.gradle
File metadata and controls
67 lines (57 loc) · 1.48 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
55
56
57
58
59
60
61
62
63
64
65
66
67
plugins {
id 'java'
id 'com.github.johnrengelman.shadow' version '6.1.0'
id 'org.jetbrains.kotlin.jvm' version '1.4.31'
id 'maven-publish'
}
repositories {
mavenLocal()
jcenter()
mavenCentral()
}
shadowJar {
dependencies {
exclude(dependency('org.jetbrains.kotlin:kotlin-stdlib.*'))
}
}
defaultTasks("shadowjar")
dependencies {
api 'com.squareup.retrofit2:retrofit:2.9.0'
api 'com.squareup.retrofit2:converter-jackson:2.9.0'
api 'com.squareup.okhttp3:logging-interceptor:4.9.0'
api "com.fasterxml.jackson.module:jackson-module-kotlin:2.12.1"
}
group 'me.lovesasuna'
version '1.3.8'
tasks.withType(JavaCompile) {
options.encoding = 'UTF-8'
options.compilerArgs.add('-Xlint:deprecation')
options.compilerArgs.add('-Xlint:unchecked')
}
java {
withSourcesJar()
}
publishing {
publications {
plugin(MavenPublication) {
from components.java
description 'Library for Lanzou'
pom {
developers {
developer {
name = 'LovesAsuna'
}
}
licenses {
license {
name = 'AGPL-3.0'
url = 'https://github.com/LovesAsuna/Lanzou/raw/master/LICENSE'
}
}
scm {
url = 'https://github.com/LovesAsuna/Lanzou'
}
}
}
}
}