-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
69 lines (54 loc) · 1.52 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
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import fe.buildsrc.Package.relocatePackages
plugins {
kotlin("jvm") version "1.9.24"
`java-library`
`maven-publish`
id("net.nemerosa.versioning") version "3.1.0"
id("com.github.johnrengelman.shadow") version "8.1.1"
}
group = "fe.fastforwardkt"
version = versioning.info.tag ?: versioning.info.full
repositories {
mavenCentral()
maven(url = "https://jitpack.io")
}
val implementation by configurations
val shadowImplementation = configurations.create("shadowImplementation") {
implementation.extendsFrom(this)
isTransitive = false
}
dependencies {
api(kotlin("stdlib"))
api(platform("com.github.1fexd:super"))
api("com.github.1fexd:uriparser")
// bundledDependency("com.gitlab.grrfe:gson-ext:11.0.0")
// bundledDependency("com.google.code.gson:gson:2.10.1")
// bundledDependency("com.github.1fexd:uriparser:0.0.7")
testImplementation(kotlin("test"))
}
kotlin {
jvmToolchain(17)
}
//tasks.named("jar").configure {
// enabled = false
//}
tasks.test {
useJUnitPlatform()
}
publishing {
publications {
create<MavenPublication>("maven") {
groupId = project.group.toString()
version = project.version.toString()
from(components["java"])
}
// create<MavenPublication>("shadow") {
// groupId = project.group.toString()
// version = project.version.toString()
//
//
// shadow.component(this)
// }
}
}