@@ -3,61 +3,52 @@ plugins {
3
3
4
4
`maven- publish`
5
5
signing
6
- alias(libs.plugins.nexuspublish )
6
+ alias(libs.plugins.nmcp )
7
7
}
8
8
9
9
group = " dev.hollowcube"
10
10
version = System .getenv(" TAG_VERSION" ) ? : " dev"
11
11
description = " Fast and small world format for Minestom"
12
12
13
13
repositories {
14
- mavenLocal()
15
14
mavenCentral()
16
- maven(url = " https://jitpack.io" )
17
15
}
18
16
19
17
dependencies {
20
- val minestom = libs.minestom
21
-
22
- compileOnly(minestom)
18
+ compileOnly(libs.minestom)
23
19
implementation(libs.zstd)
24
- // Fastutil is only included because minestom already uses it, otherwise it is a crazy dependency
25
- // for how it is used in this project.
20
+ // Fastutil is only included because minestom already uses it,
21
+ // otherwise it is a crazy dependency for how it is used in this project.
26
22
implementation(libs.fastutil)
27
23
28
24
testImplementation(" ch.qos.logback:logback-core:1.4.7" )
29
25
testImplementation(" ch.qos.logback:logback-classic:1.4.7" )
30
26
31
27
testImplementation(platform(" org.junit:junit-bom:5.9.1" ))
32
28
testImplementation(" org.junit.jupiter:junit-jupiter" )
33
- testImplementation(minestom)
29
+ testImplementation(libs. minestom)
34
30
}
35
31
36
32
java {
37
33
withSourcesJar()
38
34
withJavadocJar()
39
35
40
- sourceCompatibility = JavaVersion .VERSION_21
41
- targetCompatibility = JavaVersion .VERSION_21
36
+ toolchain.languageVersion = JavaLanguageVersion .of(21 )
42
37
}
43
38
44
39
tasks.test {
45
40
maxHeapSize = " 2g"
46
41
useJUnitPlatform()
47
42
}
48
43
49
- nexusPublishing {
50
- this .packageGroup.set(" dev.hollowcube" )
51
-
52
- repositories.sonatype {
53
- nexusUrl.set(uri(" https://s01.oss.sonatype.org/service/local/" ))
54
- snapshotRepositoryUrl.set(uri(" https://s01.oss.sonatype.org/content/repositories/snapshots/" ))
55
-
56
- if (System .getenv(" SONATYPE_USERNAME" ) != null ) {
57
- username.set(System .getenv(" SONATYPE_USERNAME" ))
58
- password.set(System .getenv(" SONATYPE_PASSWORD" ))
59
- }
44
+ nmcpAggregation {
45
+ centralPortal {
46
+ username = System .getenv(" SONATYPE_USERNAME" )
47
+ password = System .getenv(" SONATYPE_PASSWORD" )
48
+ publishingType = if (" dev" in project.version.toString()) " USER_MANAGED" else " AUTOMATIC"
60
49
}
50
+
51
+ publishAllProjectsProbablyBreakingProjectIsolation()
61
52
}
62
53
63
54
publishing.publications.create<MavenPublication >(" maven" ) {
0 commit comments