-
Notifications
You must be signed in to change notification settings - Fork 14
/
build.gradle.kts
77 lines (66 loc) · 1.68 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
plugins {
`maven-publish`
id("groovy")
id("maven-publish")
id("java-gradle-plugin")
id("com.gradle.plugin-publish") version "0.12.0"
kotlin("jvm") version "1.7.10"
}
group = "io.izzel.taboolib"
version = "2.0.22"
configurations {
create("embed") {
implementation.get().extendsFrom(this)
}
}
repositories {
mavenLocal()
mavenCentral()
}
dependencies {
compileOnly("org.codehaus.groovy:groovy:3.0.11")
compileOnly(gradleApi())
compileOnly(localGroovy())
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.7.10")
"embed"("org.ow2.asm:asm:9.7")
"embed"("org.ow2.asm:asm-commons:9.7")
"embed"("com.google.code.gson:gson:2.9.0")
"embed"(kotlin("stdlib"))
}
tasks.jar {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
from(configurations.getByName("embed").map { if (it.isDirectory) it else zipTree(it) })
}
pluginBundle {
website = "https://github.com/TabooLib/taboolib-gradle-plugin"
vcsUrl = "https://github.com/TabooLib/taboolib-gradle-plugin"
tags = listOf("taboolib", "bukkit", "minecraft")
}
gradlePlugin {
plugins {
create("taboolib") {
id = "io.izzel.taboolib"
displayName = "TabooLib Gradle Plugin"
description = "TabooLib Gradle Plugin"
implementationClass = "io.izzel.taboolib.gradle.TabooLibPlugin"
}
}
}
publishing {
repositories {
maven("/Users/sky/Desktop/repo")
}
}
tasks.compileKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.compileTestKotlin {
kotlinOptions {
jvmTarget = "1.8"
}
}
tasks.processResources {
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}