-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathbuild.gradle.kts
90 lines (82 loc) · 2.5 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
plugins {
java
idea
`maven-publish`
}
allprojects {
group = "de.exlll"
version = "3.4.0"
}
subprojects {
apply(plugin = "java")
apply(plugin = "idea")
apply(plugin = "maven-publish")
java.sourceCompatibility = JavaVersion.VERSION_11
java.targetCompatibility = JavaVersion.VERSION_11
repositories {
mavenCentral()
maven { url = uri("https://papermc.io/repo/repository/maven-public/") }
maven {
url = uri("https://maven.pkg.github.com/Exlll/ConfigLib")
credentials {
username = project.findProperty("github.actor") as String?
?: System.getenv("GITHUB_ACTOR")
password = project.findProperty("github.token") as String?
?: System.getenv("GITHUB_TOKEN")
}
}
}
dependencies {
compileOnly("de.exlll:configlib-core:2.2.0")
testImplementation("org.junit.jupiter:junit-jupiter-api:5.6.0")
testImplementation("org.mockito:mockito-core:3.6.28")
testImplementation("org.hamcrest:hamcrest:2.2")
testRuntimeOnly("org.junit.jupiter:junit-jupiter-engine")
}
publishing {
repositories {
maven {
name = "GitHubPackages"
url = uri("https://maven.pkg.github.com/Exlll/DatabaseLib")
credentials {
username = System.getenv("GITHUB_ACTOR")
password = System.getenv("GITHUB_TOKEN")
}
}
publications {
register<MavenPublication>("gpr") {
from(components["java"])
}
}
}
}
}
project(":databaselib-core") {
dependencies {
implementation("com.zaxxer:HikariCP:3.4.5")
}
}
project(":databaselib-bukkit") {
repositories {
maven(url = uri("https://hub.spigotmc.org/nexus/content/repositories/snapshots/"))
}
dependencies {
compileOnly("org.spigotmc:spigot-api:1.16.4-R0.1-SNAPSHOT")
}
}
project(":databaselib-bungee") {
repositories {
maven(url = uri("https://oss.sonatype.org/content/repositories/snapshots/"))
}
dependencies {
compileOnly("net.md-5:bungeecord-api:1.16-R0.3")
}
}
configure(listOf(project(":databaselib-bukkit"), project(":databaselib-bungee"))) {
dependencies {
implementation(project(":databaselib-core"))
}
tasks.jar {
from(project(":databaselib-core").sourceSets["main"].output)
}
}