forked from itsdax/Runescape-Web-Walker-Engine
-
Notifications
You must be signed in to change notification settings - Fork 0
/
build.gradle.kts
61 lines (54 loc) · 1.67 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
plugins {
java
`maven-publish`
id("io.freefair.lombok") version "5.3.0"
}
group = "org.tribot"
version = project.version
val baseDir = projectDir
repositories {
mavenCentral()
// Tribot Central
maven {
setUrl("https://gitlab.com/api/v4/projects/20741387/packages/maven")
}
}
dependencies {
compileOnly("org.tribot:tribot-script-sdk:+")
compileOnly("org.tribot:tribot-client:+")
compileOnly(files("${baseDir.absolutePath}/allatori-annotations-7.5.jar"))
}
publishing {
publications {
val mavenJava by publications.creating(MavenPublication::class) {
from(components.getByName("java"))
pom {
artifactId = "tribot-dax-walker"
name.set("Tribot Dax Walker Engine")
description.set("The original DaxWalker Engine, built for Tribot")
url.set("https://tribot.org/")
licenses {
license {
name.set("Apache License 2.0")
url.set("https://www.apache.org/licenses/LICENSE-2.0")
}
}
}
}
}
repositories {
// Tribot Central
maven {
setUrl("https://gitlab.com/api/v4/projects/20741387/packages/maven")
credentials(HttpHeaderCredentials::class) {
name = "Deploy-Token"
value = if (project.hasProperty("tribotDeployToken"))
project.property("tribotDeployToken") as String
else ""
}
authentication {
create<HttpHeaderAuthentication>("header")
}
}
}
}