forked from TribotRS/tribot-gradle-plugin
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
67 lines (59 loc) · 1.98 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
import org.jetbrains.kotlin.gradle.tasks.KotlinCompile
plugins {
kotlin("jvm") version "1.5.31"
`java-gradle-plugin`
`maven-publish`
id("org.openjfx.javafxplugin") version "0.0.10"
}
group = "org.tribot"
version = project.version
repositories {
mavenCentral()
gradlePluginPortal()
}
dependencies {
implementation(kotlin("stdlib"))
implementation(kotlin("reflect"))
implementation("net.lingala.zip4j:zip4j:2.6.4")
implementation("com.google.code.gson:gson:2.8.9")
compileOnly("org.jetbrains.kotlin:kotlin-gradle-plugin:1.4.10")
implementation("org.openjfx.javafxplugin:org.openjfx.javafxplugin.gradle.plugin:0.0.10")
implementation("com.squareup.okhttp3:okhttp:4.9.3")
implementation("io.freefair.gradle:lombok-plugin:6.3.0")
}
javafx {
version = "15"
modules = listOf("javafx.controls", "javafx.fxml",
"javafx.graphics", "javafx.media", "javafx.swing", "javafx.web")
configuration = "compileOnly" // We need to be able to compile LoginPrompt
}
tasks.withType<KotlinCompile> {
kotlinOptions.jvmTarget = org.gradle.api.JavaVersion.VERSION_11.toString()
}
gradlePlugin {
plugins {
create("Tribot Plugin") {
id = "tribot-gradle-plugin"
displayName = "Tribot Scripting Gradle Plugin"
implementationClass = "org.tribot.gradle.plugin.TribotPlugin"
description = ("Tribot's official scripting grade plugin")
}
}
}
publishing {
repositories {
maven {
name = "GitLab"
url = uri("https://gitlab.com/api/v4/projects/20741387/packages/maven")
credentials(HttpHeaderCredentials::class.java) {
name = "Deploy-Token"
value = if (project.hasProperty("tribotDeployToken"))
project.property("tribotDeployToken") as String
else ""
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}