Skip to content

Commit 7d7e002

Browse files
Update to 1.20.6
1 parent 0fca82a commit 7d7e002

File tree

8 files changed

+54
-42
lines changed

8 files changed

+54
-42
lines changed

build.gradle

Lines changed: 24 additions & 17 deletions
Original file line numberDiff line numberDiff line change
@@ -1,16 +1,24 @@
11
import org.apache.tools.ant.filters.ReplaceTokens
22

33
plugins {
4-
id 'org.jetbrains.kotlin.jvm' version '1.7.0'
5-
id 'com.github.johnrengelman.shadow' version '7.1.2' apply false
4+
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
5+
id 'io.github.goooler.shadow' version '8.1.7' apply false
66
}
77

88
allprojects {
99
apply plugin: 'org.jetbrains.kotlin.jvm'
1010

1111
archivesBaseName = 'VoteParty'
1212
group 'me.clip'
13-
version '2.34-DEV-Parallel'
13+
version '2.35-DEV-Parallel'
14+
15+
java {
16+
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
17+
}
18+
19+
kotlin {
20+
jvmToolchain(21)
21+
}
1422

1523
repositories {
1624
mavenCentral()
@@ -27,25 +35,24 @@ allprojects {
2735
implementation "org.jetbrains.kotlin:kotlin-stdlib-jdk8"
2836

2937
// spigot
30-
compileOnly "org.spigotmc:spigot-api:1.19-R0.1-SNAPSHOT"
38+
compileOnly "org.spigotmc:spigot-api:1.20.6-R0.1-SNAPSHOT"
3139
}
3240

33-
sourceCompatibility = JavaVersion.VERSION_1_8
34-
targetCompatibility = JavaVersion.VERSION_1_8
41+
sourceCompatibility = 21
42+
targetCompatibility = 21
43+
3544

3645
compileJava {
37-
options.compilerArgs += ["-parameters"]
38-
options.fork = true
39-
options.forkOptions.executable = 'javac'
46+
47+
options.release.set(21)
4048
}
4149

4250
compileKotlin {
43-
kotlinOptions.jvmTarget = JavaVersion.VERSION_1_8
44-
kotlinOptions.javaParameters = true
51+
4552
}
4653
}
4754

48-
apply plugin: 'com.github.johnrengelman.shadow'
55+
apply plugin: 'io.github.goooler.shadow'
4956

5057
shadowJar {
5158
minimize()
@@ -63,10 +70,10 @@ shadowJar {
6370
dependencies {
6471

6572
// config
66-
implementation "ch.jalu:configme:1.3.0"
73+
implementation "ch.jalu:configme:1.4.1"
6774

6875
// placeholderapi
69-
compileOnly "me.clip:placeholderapi:2.11.1"
76+
compileOnly "me.clip:placeholderapi:2.11.6"
7077

7178
// NuVotifier hook
7279
compileOnly files("libs/nuvotifier-2.7.3.jar")
@@ -75,16 +82,16 @@ dependencies {
7582
implementation "co.aikar:acf-paper:0.5.1-SNAPSHOT"
7683

7784
// Support for materials across all versions
78-
implementation 'com.github.cryptomorin:XSeries:9.0.0'
85+
implementation 'com.github.cryptomorin:XSeries:10.0.0'
7986

8087
// json stuff
8188
implementation 'net.kyori:adventure-platform-bukkit:4.1.1'
8289
implementation 'net.kyori:adventure-api:4.11.0'
8390
implementation 'net.kyori:adventure-text-minimessage:4.11.0'
91+
implementation project(':version')
8492

85-
implementation project(":version")
86-
implementation project(":version_old")
8793
implementation project(":version_new")
94+
implementation project(":version_old")
8895
}
8996

9097
processResources {
Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
distributionBase=GRADLE_USER_HOME
22
distributionPath=wrapper/dists
3-
distributionUrl=https\://services.gradle.org/distributions/gradle-7.4.2-bin.zip
3+
distributionUrl=https\://services.gradle.org/distributions/gradle-8.7-bin.zip
44
zipStoreBase=GRADLE_USER_HOME
55
zipStorePath=wrapper/dists

settings.gradle

Lines changed: 1 addition & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,3 @@
11
rootProject.name = "VP"
2-
include 'version'
3-
include 'version_old'
4-
include 'version_new'
2+
include 'version', 'version_new', 'version_old'
53

src/main/kotlin/me/clip/voteparty/conf/mapper/SingleValueToCollectionMapper.kt

Lines changed: 2 additions & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -12,7 +12,8 @@ import java.util.Collections
1212
*/
1313
class SingleValueToCollectionMapper : MapperImpl()
1414
{
15-
override fun createCollection(context: MappingContext, value: Any): Collection<*>?
15+
16+
override fun createCollection(context: MappingContext, value: Any?): Collection<*>?
1617
{
1718
if (value !is Iterable<*>)
1819
{

version/build.gradle

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -1,3 +1,6 @@
1-
group 'me.clip'
2-
version '2.0'
1+
plugins {
2+
id 'org.jetbrains.kotlin.jvm' version '2.0.0'
3+
}
34

5+
group 'me.clip'
6+
version '2.35-DEV-Parallel'

version_new/build.gradle

Lines changed: 4 additions & 4 deletions
Original file line numberDiff line numberDiff line change
@@ -1,6 +1,6 @@
1+
dependencies {
2+
implementation project(':version')
3+
}
14
group 'me.clip'
2-
version '2.0'
5+
version '2.35-DEV-Parallel'
36

4-
dependencies {
5-
implementation project(":version")
6-
}

version_new/src/main/kotlin/me/clip/voteparty/version/VersionHookNew.kt

Lines changed: 8 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -72,25 +72,24 @@ class VersionHookNew : VersionHook
7272
private val OPTION = DustOptions(Color.RED, 0.8F)
7373

7474
private val SPELLS = setOf(
75-
Particle.SPELL_MOB,
76-
Particle.SPELL_MOB_AMBIENT
75+
Particle.EFFECT,
76+
Particle.ENTITY_EFFECT
7777
)
7878

7979
private val SINGLE = setOf(
80-
Particle.WATER_BUBBLE,
81-
Particle.WATER_WAKE,
80+
Particle.BUBBLE,
81+
Particle.FISHING,
8282
Particle.CRIT,
83-
Particle.CRIT_MAGIC,
84-
Particle.SMOKE_NORMAL,
85-
Particle.SMOKE_LARGE,
83+
Particle.SMOKE,
84+
Particle.LARGE_SMOKE,
8685
Particle.PORTAL,
87-
Particle.ENCHANTMENT_TABLE,
86+
Particle.ENCHANT,
8887
Particle.FLAME,
8988
Particle.CLOUD,
9089
Particle.DRAGON_BREATH,
9190
Particle.END_ROD,
9291
Particle.DAMAGE_INDICATOR,
93-
Particle.TOTEM,
92+
Particle.TOTEM_OF_UNDYING,
9493
Particle.SPIT,
9594
Particle.SQUID_INK,
9695
Particle.BUBBLE_POP,

version_old/build.gradle

Lines changed: 9 additions & 5 deletions
Original file line numberDiff line numberDiff line change
@@ -1,5 +1,5 @@
11
group 'me.clip'
2-
version '2.0'
2+
version '2.35-DEV-Parallel'
33

44

55
repositories {
@@ -8,11 +8,15 @@ repositories {
88
}
99
}
1010

11+
configurations.configureEach {
12+
resolutionStrategy {
13+
force "org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT"
14+
}
15+
}
16+
1117
dependencies {
12-
implementation project(":version")
1318
implementation "org.inventivetalent:particleapi:+"
1419

15-
compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT") {
16-
force = true
17-
}
20+
compileOnly("org.spigotmc:spigot-api:1.8.8-R0.1-SNAPSHOT")
21+
implementation project(':version')
1822
}

0 commit comments

Comments
 (0)