-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathbuild.gradle.kts
78 lines (65 loc) · 1.86 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
plugins {
id("java")
id("maven-publish")
}
group = "org.github.fastnoise"
version = "0.0.1"
java.toolchain {
languageVersion.set(JavaLanguageVersion.of(23))
}
repositories {
mavenCentral()
}
dependencies {
testImplementation(platform("org.junit:junit-bom:5.10.0"))
testImplementation("org.junit.jupiter:junit-jupiter")
}
tasks.wrapper {
gradleVersion = "8.10.1"
}
tasks.jar {
manifest {
attributes(
"Enable-Native-Access" to "ALL-UNNAMED"
)
}
}
tasks.test {
useJUnitPlatform()
jvmArgs("--enable-native-access=ALL-UNNAMED")
}
publishing {
publications {
create<MavenPublication>("mavenJava") {
from(components["java"])
pom {
name.set("FastNoise2Bindings-Java")
description.set("Bindings for FastNoise2 in Java.")
url.set("https://github.com/CoolLoong/FastNoise2Bindings-Java") // 替换为您的项目 URL
licenses {
license {
name.set("The MIT License")
url.set("https://opensource.org/licenses/MIT")
}
}
developers {
developer {
id.set("CoolLoong")
name.set("CoolLoong")
email.set("wingdon@foxmail.com")
}
}
scm {
connection.set("scm:git:git:/github.com/CoolLoong/FastNoise2Bindings-Java.git")
developerConnection.set("scm:git:ssh://git@github.com/CoolLoong/FastNoise2Bindings-Java.git")
url.set("https://github.com/CoolLoong/FastNoise2Bindings-Java")
}
}
}
}
repositories {
maven {
url = uri("https://jitpack.io")
}
}
}