-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
97 lines (81 loc) · 2.71 KB
/
build.gradle.kts
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
@file:Suppress("ConvertLambdaToReference")
import org.jetbrains.kotlin.gradle.plugin.getKotlinPluginVersion
plugins {
idea
`maven-publish`
kotlin("jvm")
id("org.jetbrains.dokka")
id("com.github.hierynomus.license")
}
group = "io.guthix"
version = "0.1-SNAPSHOT"
description = "A library for modifying OldScape caches"
val licenseHeader: File by extra(file("gradle/LICENSE_HEADER"))
val jagexByteBufVersion: String by extra("555807fda4")
val jagexCacheVersion: String by extra("b95030a6f6")
val kotlinLoggingVersion: String by extra("1.7.6")
val licensePluginVersion: String by extra("0.15.0")
val logbackVersion: String by extra("1.2.3")
val kotlinVersion: String by extra(project.getKotlinPluginVersion()!!)
allprojects {
apply(plugin = "kotlin")
apply(plugin = "com.github.hierynomus.license")
repositories {
mavenCentral()
jcenter()
maven("https://dl.bintray.com/kotlin/kotlin-eap")
maven("https://jitpack.io")
}
dependencies {
implementation(kotlin("stdlib-jdk8"))
}
tasks {
compileKotlin {
kotlinOptions.jvmTarget = "11"
}
compileTestKotlin {
kotlinOptions.jvmTarget = "11"
}
}
license {
header = licenseHeader
}
}
kotlin { explicitApi() }
dependencies {
api(group = "com.github.guthix", name = "Jagex-Store-5", version = jagexCacheVersion)
implementation(group = "com.github.guthix", name = "Jagex-ByteBuf", version = jagexByteBufVersion)
implementation(group = "io.github.microutils", name = "kotlin-logging", version = kotlinLoggingVersion)
implementation(group = "ch.qos.logback", name = "logback-classic", version = logbackVersion)
}
tasks.dokka {
outputFormat = "html"
outputDirectory = "$buildDir/javadoc"
}
val dokkaJar: Jar by tasks.creating(Jar::class) {
group = JavaBasePlugin.DOCUMENTATION_GROUP
description = "Assembles Kotlin docs with Dokka"
archiveClassifier.set("javadoc")
from(tasks.dokka)
}
publishing {
publications {
create<MavenPublication>("default") {
from(components["java"])
artifact(dokkaJar)
pom {
url.set("https://github.com/guthix/OldScape-Cache")
licenses {
license {
name.set("GNU Lesser General Public License v3.0")
url.set("https://www.gnu.org/licenses/lgpl-3.0.txt")
}
}
scm {
connection.set("scm:git:git://github.com/guthix/OldScape-Cache.git")
developerConnection.set("scm:git:ssh://github.com/guthix/OldScape-Cache.git")
}
}
}
}
}