-
Notifications
You must be signed in to change notification settings - Fork 5
Expand file tree
/
Copy pathbuild.gradle.kts
More file actions
55 lines (44 loc) · 1.15 KB
/
build.gradle.kts
File metadata and controls
55 lines (44 loc) · 1.15 KB
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
plugins {
id("luau.java-library")
id("luau.jextract")
}
group = "dev.hollowcube"
version = System.getenv("TAG_VERSION") ?: "dev"
description = "Java bindings for Luau"
dependencies {
testImplementation(project(":native"))
}
sourceSets {
main {
java.srcDir(file("src/main/java"))
java.srcDir(file("src/generated/java"))
}
}
tasks.withType<Jar> {
archiveBaseName = "luau"
duplicatesStrategy = DuplicatesStrategy.EXCLUDE
}
publishing.publications.create<MavenPublication>("luau") {
groupId = project.group.toString()
artifactId = "luau"
version = project.version.toString()
from(project.components["java"])
pom {
name.set(artifactId)
configureMavenPom(this)
}
}
// Multi publishing setup
nmcpAggregation {
centralPortal {
username = System.getenv("SONATYPE_USERNAME")
password = System.getenv("SONATYPE_PASSWORD")
publishingType = "AUTOMATIC"
}
}
dependencies {
if (System.getenv("LUAU_PUBLISH_ROOT") != null)
nmcpAggregation(rootProject)
if (System.getenv("LUAU_PUBLISH_NATIVES") != null)
nmcpAggregation(project(":native"))
}