Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension


Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
8 changes: 5 additions & 3 deletions .github/SECURITY.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,9 +6,11 @@ Use this section to tell people about which versions of your project are
currently being supported with security updates.

| Version | Supported |
| ------- | ------------------ |
| 1.0.x | ❌ |
| 2.0.x | :white_check_mark: |
|---------|--------------------|
| 1.0.x | ❌ |
| 2.0.x | ❌ |
| 3.0.x | ❌ |
| 4.0.x | :white_check_mark: |

## Reporting a Vulnerability

Expand Down
6 changes: 3 additions & 3 deletions .github/workflows/gradle.yml
Original file line number Diff line number Diff line change
Expand Up @@ -21,10 +21,10 @@ jobs:
runs-on: ubuntu-latest
steps:
- uses: actions/checkout@v3
- name: Set up JDK 17
- name: Set up JDK 21
uses: actions/setup-java@v3
with:
java-version: '17'
java-version: '21'
distribution: 'temurin'

- name: Setup Gradle
Expand All @@ -37,4 +37,4 @@ jobs:
run: ./gradlew build

- name: Build the Jar
run: ./gradlew clean shadowJar
run: ./gradlew shadowJar
3 changes: 2 additions & 1 deletion .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -3,6 +3,7 @@ build/
!gradle/wrapper/gradle-wrapper.jar
!**/src/main/**/build/
!**/src/test/**/build/
/doublejump-plugin/run/

### IntelliJ IDEA ###
.idea/
Expand Down Expand Up @@ -36,4 +37,4 @@ bin/
.vscode/

### Mac OS ###
.DS_Store
.DS_Store
46 changes: 0 additions & 46 deletions build.gradle.kts

This file was deleted.

26 changes: 26 additions & 0 deletions buildSrc/build.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
plugins {
`kotlin-dsl`
}

repositories {
gradlePluginPortal()
}

dependencies {
implementation("com.gradleup.shadow:shadow-gradle-plugin:9.3.2")
implementation("net.minecrell:plugin-yml:0.6.0")
}

sourceSets {
main {
java.setSrcDirs(emptyList<String>())
groovy.setSrcDirs(emptyList<String>())
resources.setSrcDirs(emptyList<String>())
}
test {
java.setSrcDirs(emptyList<String>())
kotlin.setSrcDirs(emptyList<String>())
groovy.setSrcDirs(emptyList<String>())
resources.setSrcDirs(emptyList<String>())
}
}
28 changes: 28 additions & 0 deletions buildSrc/src/main/kotlin/Versions.kt
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
object Versions {

const val SPIGOT_API = "1.21.11-R0.1-SNAPSHOT"

const val ETERNAL_COMBAT = "2.4.0"
const val WORLDGUARD_API = "7.0.9"
const val WORLDEDIT = "3ISh7ADm"
Comment thread
imDMK marked this conversation as resolved.
const val WORLDGUARD = "7.0.15-beta-01"
const val PACKETEVENTS = "2.11.2"

const val PANDA_DI = "1.8.0"
const val CLASSGRAPH = "4.8.184"

const val KYORI_PLATFORM_BUKKIT = "4.4.1"
const val KYORI_TEXT_MINIMESSAGE = "4.21.0"

const val MULTIFICATION_BUKKIT = "1.2.4"
const val MULTIFICATION_OKAERI = "1.2.4"

const val OKAERI_SNAKEYAML = "5.0.9"
const val OKAERI_SERDES_COMMONS = "5.0.5"

const val TRIUMPH_GUI = "3.1.13"
const val BSTATS_BUKKIT = "3.1.0"
const val LITECOMMANDS = "3.10.9"

const val LIBBY_BUKKIT = "2.0.0-SNAPSHOT"
}
16 changes: 16 additions & 0 deletions buildSrc/src/main/kotlin/doublejump-java-test.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
plugins {
`java-library`
}

dependencies {
testImplementation("org.junit.jupiter:junit-jupiter:6.0.2")
testImplementation("org.assertj:assertj-core:3.27.6")
testImplementation("org.mockito:mockito-core:5.21.0")
testImplementation("org.mockito:mockito-junit-jupiter:5.21.0")
testImplementation("org.mockito:mockito-inline:5.2.0")
testRuntimeOnly("org.junit.platform:junit-platform-launcher")
}

tasks.getByName<Test>("test") {
useJUnitPlatform()
}
16 changes: 16 additions & 0 deletions buildSrc/src/main/kotlin/doublejump-java.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,16 @@
plugins {
`java-library`
}

group = "com.github.imdmk"
version = "4.0.0"

java {
toolchain.languageVersion.set(JavaLanguageVersion.of(21))
}

tasks.compileJava {
options.compilerArgs = listOf("-Xlint:deprecation", "-parameters")
options.encoding = "UTF-8"
options.release = 21
}
15 changes: 15 additions & 0 deletions buildSrc/src/main/kotlin/doublejump-repositories.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,15 @@
plugins {
`java-library`
}

repositories {
mavenCentral()
maven("https://hub.spigotmc.org/nexus/content/repositories/snapshots/")
maven("https://repo.papermc.io/repository/maven-public/")
maven("https://repo.eternalcode.pl/releases")
maven("https://storehouse.okaeri.eu/repository/maven-public/")
maven("https://repo.panda-lang.org/releases")
maven("https://repo.alessiodp.com/releases/")
maven("https://repo.alessiodp.com/snapshots/")
maven("https://maven.enginehub.org/repo/")
}
39 changes: 39 additions & 0 deletions buildSrc/src/main/kotlin/doublejump-shadow.gradle.kts
Original file line number Diff line number Diff line change
@@ -0,0 +1,39 @@
import com.github.jengelman.gradle.plugins.shadow.tasks.ShadowJar
import net.minecrell.pluginyml.bukkit.BukkitPluginDescription

plugins {
`java-library`
id("net.minecrell.plugin-yml.bukkit")
id("com.gradleup.shadow")
}

open class DoubleJumpShadowExtension {

internal var bukkitAction: Action<BukkitPluginDescription>? = null
internal var shadowAction: Action<ShadowJar>? = null

fun pluginYml(action: Action<BukkitPluginDescription>) {
bukkitAction = action
}

fun shadowJar(action: Action<ShadowJar>) {
shadowAction = action
}
}

extensions.create("doubleJumpShadow", DoubleJumpShadowExtension::class.java)

afterEvaluate {

val ext = extensions.getByType(DoubleJumpShadowExtension::class.java)

ext.bukkitAction?.let { action ->
extensions.configure<BukkitPluginDescription>("bukkit") {
action.execute(this)
}
}

tasks.withType<ShadowJar>().configureEach {
ext.shadowAction?.execute(this)
}
}
Loading
Loading